Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request textDocument/documentSymbol failed. Error: name must not be falsy #1731

Closed
misode opened this issue Jan 26, 2025 · 0 comments · Fixed by #1732
Closed

Request textDocument/documentSymbol failed. Error: name must not be falsy #1731

misode opened this issue Jan 26, 2025 · 0 comments · Fixed by #1732
Labels
🐛 bug Something isn't working 🚑 crash-freeze

Comments

@misode
Copy link
Member

misode commented Jan 26, 2025

This error notification has been appearing in mcdoc files for a while, but now also appears in language files. To reproduce, create the following file in assets/minecraft/lang/en_us.json:

{
  ""
}

Stack trace

Request textDocument/documentSymbol failed.
Error: name must not be falsy
	at Gd.validate (file:///c:/Users/<USER>/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:109:33647)
	at new Gd (file:///c:/Users/<USER>/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:109:33936)
	at asDocumentSymbol (c:\Users\<USER>\Documents\projects\spyglass\packages\vscode-extension\dist\extension.js:8230:22)
	at convertBatch (c:\Users\<USER>\Documents\projects\spyglass\packages\vscode-extension\dist\extension.js:6565:23)
	at Object.map (c:\Users\<USER>\Documents\projects\spyglass\packages\vscode-extension\dist\extension.js:6573:19)
	at Object.asDocumentSymbols (c:\Users\<USER>\Documents\projects\spyglass\packages\vscode-extension\dist\extension.js:8227:22)
	at _provideDocumentSymbols (c:\Users\<USER>\Documents\projects\spyglass\packages\vscode-extension\dist\extension.js:12550:65)
	at async uI.provideDocumentSymbols (file:///c:/Users/<USER>/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:138:126457)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🚑 crash-freeze
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant