Copy link to clipboard
Copied
My VS Code extension is functioning OK, but recently I have noticed that as I type each character or move the mouse focus, errors are streamed to the output window under Adobe-CFML Language.
It is not the end of the world, but I don't understand it and would like to address it.
What is the last thing I changed in my VS Code environment. Probably the monthly VS Code version auto-update. And before that I think I installed a Python extension ot play around with.
Has anyone seen this before?
Do you have a way to address it?
Will dropping re-installing the extension help? I'd hate to lose everything about my workspace.
[Error - 11:58:37 AM] Request textDocument/documentSymbol failed.
Message: Internal error.
Code: -32603
java.util.concurrent.CompletionException: java.lang.StackOverflowError
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
Caused by: java.lang.StackOverflowError
at java.base/java.util.zip.GZIPInputStream.read(GZIPInputStream.java:118)
at java.base/java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2915)
at java.base/java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:3352)
at java.base/java.io.ObjectInputStream$BlockDataInputStream.readFully(ObjectInputStream.java:3376)
at java.base/java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2506)
at java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2412)
at java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2250)
at java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1709)
at java.base/java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2518)
Copy link to clipboard
Copied
I don't know what is causing the problem, but does it occur on any document you edit or only on some documents?
I also hope you don't have to remove and re-install the extension. It might be worth installing VS Code on another computer and see if you get the same problem there.
Copy link to clipboard
Copied
It occurs on all documents. Or at least all documents of CFML type (cfm, cfc). I just tried to re-create the issue and its not happening at the moment. I have seen this before. Eventually something fails (literally says "request failed"), as if an HTML request failed. But this is simply during regular editing.
Copy link to clipboard
Copied
I haven't seen that before. Which other CFML extensions have you enabled on VS Code besides Adobe ColdFusion Builder?
What I would do is:
Copy link to clipboard
Copied
I do not have other CFML extension. Regardless, I have uninstalled and re-installed the Adobe CF Builder. I must now re-setup my connections to servers and update all my workspace projects to re-attach the servers to them. I will monitor to see if the errors re-appear. I notice the output window has a filter(?) selector for which extension (Git, Prettier, SFTP, etc) to view. When I have the error it says Adobe-ColdFusion Builder, but now that I have re-installed I don't see it in the list. I think this is something I do not understand about how VS Code works.
Copy link to clipboard
Copied
Any joy, @Greg Campbell ?
Copy link to clipboard
Copied
Alas, no. I uninstalled my recent extentions (Jupyter note books because I was experimnenting with Python, then I uninstalled and re-installed the Adobe ColdFusion Builder extension. The errors did not come back immediately. Sometimes I feel is a network issue though my company's firewall/VPN but I don't know how to prove that. See here, as soon as I click to some cfc's this pops up and sometime keeps extending with each character and space typed. I notice the the output window filter (upper right) of Adobe-CFML Language does not alway appear available to select from drop down. But this is where the messsages appear. I suppose I can just close the output window and ignore that something odd is going on.
Copy link to clipboard
Copied
In my experience, the CF extension does not like UNC paths, so avoid using those and only use mapped drives.
I don't know if you have also bumped into that issue before or not, but it is worth knowing.
Copy link to clipboard
Copied
A search on the web shows that:
You should report a Visual Studio Code bug (GitHub login required). When you do, remember to include the full stacktrace
Copy link to clipboard
Copied
As soon as I placed my issue a person and triage bot closed it. It says to file it under the extension.
/causedByExtension
Closed #189196 as not planned
Copy link to clipboard
Copied
@Greg Campbell , Following your last message, I also had a look. I found a possible reason why you couldn't create a Visual Studio Code bug ticket. It seems it is the responsibility of the Adobe ColdFusion Builder team to handle the bug. You can verify what I saw.
Follow the menu Help > Report Issue and select Adobe Coldfusion Builder. You will get the message:
"The issue reporter is unable to create issues for this extension. Please visit https://www.adobe.com/go/cfb_ext_gs_vscode to report an issue."
Hence, I would suggest that you report a ColdFusion bug. When you do, the entries would be something like:
Product: ColdFusion,
Version: VSCode 1.0,
Component: CF Builder,
Found In Build: 1.0.469
I have assumed that you are using the current Adobe CF Builder version, which is 1.0.469. If you are using an older version, then that is probably the cause of the error.
Copy link to clipboard
Copied
In your bug report, remember to include the stacktrace in full. Preferably as a text-file attachment.
Copy link to clipboard
Copied
I belive I have reproduced this error and narrowed it down to cfscripts where there are more than 345 lines of actual code (whitespce not included) ... it will throw the java stackoverflow error. I have business logic functions in a separate CFM file within a cfscript tag and then cfinclude on the main files. The Ctrl/Click functionality and such stops working when this happens within VSCode CfBuilder. You can convert to a component and include it and it seems to work with more than 345 lines of code ... or break the CFM file into multiple files with cfscript and then multiple cfincludes on the main CFM file. It is easier to convert to component. I have submitted a ticket with a test file that repeats for me on 3 computers. https://tracker.adobe.com/#/view/CF-4219340
Copy link to clipboard
Copied
Thank you. It's been driving me nuts.