Request textDocument/documentSymbol failed. Error: name must not be falsy #1530
Replies: 2 comments 11 replies
-
Should have added, version of the ObjectScript extension is 3.0.1 and of the Language Server is 2.7.2 (we've got the extensions set to auto update). |
Beta Was this translation helpful? Give feedback.
-
Thanks for that Colin! That is exactly what I needed. This is really strange. I am able to create the same behavior on my Mac (a Property with no name), but I don't see an error! VS Code happily accepts a document symbol with a single space for a name. This is independent of the ISC server version and should be independent of platform. I tested this on VS Code 1.99.2 and today's build of VS Code Insiders. I am going to open a Language Server issue for this, link it to this discussion, and add some defensive code so it doesn't return a symbol with an invalid name. |
Beta Was this translation helpful? Give feedback.
-
Tried to compile some legacy ObjectScript code via Import/Compile in VS Code using the vscode-objectscript extension. Getting an error, and the content of the file is left changed on the filesystem.
We think the error occurs when you have a commented out Property line, with no space after the '//' comment starter. But we've not completed isolated the situations where it occurs. Couple of screenshots attached - first is a before compilation / after compilation of a simple test file, showing what state the extension leaves the file in after an attempt to compile. Second is of the Output tab in VS Code for the extension detailing the error. We only stumbled into this yesterday, so still gather information about when it occurs / doesn't occur. We will be continuing to try and narrow down exactly what combination of syntax triggers the problem, and try and post any clarifying updates here.


Beta Was this translation helpful? Give feedback.
All reactions