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

Error "Request textDocument/documentSymbol failed." when creating new group in locale file #118

Open
Bilka2 opened this issue May 5, 2024 · 0 comments

Comments

@Bilka2
Copy link
Contributor

Bilka2 commented May 5, 2024

When I type [ to create a new group in a locale file in a tutorial scenario, the extension errors with Request textDocument/documentSymbol failed.

Output:

[Error - 11:55:59 AM] Request textDocument/documentSymbol failed.
Error: name must not be falsy
	at r.validate (c:\Users\Erik\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:151:17855)
	at new r (c:\Users\Erik\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:151:18150)
	at Jr (c:\Users\Erik\.vscode\extensions\justarandomgeek.factoriomod-debug-1.1.42\dist\fmtk.js:168:73657)
	at s (c:\Users\Erik\.vscode\extensions\justarandomgeek.factoriomod-debug-1.1.42\dist\fmtk.js:168:48779)
	at Object.H6e [as map] (c:\Users\Erik\.vscode\extensions\justarandomgeek.factoriomod-debug-1.1.42\dist\fmtk.js:168:48865)
	at Object.zn [as asDocumentSymbols] (c:\Users\Erik\.vscode\extensions\justarandomgeek.factoriomod-debug-1.1.42\dist\fmtk.js:168:73624)
	at u (c:\Users\Erik\.vscode\extensions\justarandomgeek.factoriomod-debug-1.1.42\dist\fmtk.js:172:56093)
	at async r.provideDocumentSymbols (c:\Users\Erik\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:153:90654)

Locale file where this happens is https://github.com/Bilka2/tutorial-demo/blob/master/tutorials/demo-tut/locale/en/en.cfg. I opened the tutorial control.lua file first to make sumneko load, not sure if relevant.

Code_iXIO8EX8hh

VsCode 1.89.0
FMTK 1.1.42
sumneko Lua 3.7.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant