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: name must not be falsy when opening .mcdefinitions file #458

Closed
stirante opened this issue Feb 27, 2023 · 1 comment
Closed

Error: name must not be falsy when opening .mcdefinitions file #458

stirante opened this issue Feb 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@stirante
Copy link
Contributor

Describe the bug
When opening .mcdefinitions file like this one:

## Generated by mcdef_gen
entity=namespace:entity
entity=gds:wither_copy
## mcdef_gen end

There is an error

[Error - 1:40:04 PM] Request textDocument/documentSymbol failed.
Error: name must not be falsy
    at Function.validate (c:\Users\brzoz\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:94:25472)
    at new n (c:\Users\brzoz\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:94:25710)
    at B (c:\Users\brzoz\.vscode\extensions\blockceptionltd.blockceptionvscodeminecraftbedrockdevelopmentextension-5.0.8\client\out\extension.js:2:312886)
    at c (c:\Users\brzoz\.vscode\extensions\blockceptionltd.blockceptionvscodeminecraftbedrockdevelopmentextension-5.0.8\client\out\extension.js:2:137029)
    at Object.t.map (c:\Users\brzoz\.vscode\extensions\blockceptionltd.blockceptionvscodeminecraftbedrockdevelopmentextension-5.0.8\client\out\extension.js:2:137115)
    at Object.asSymbolInformations (c:\Users\brzoz\.vscode\extensions\blockceptionltd.blockceptionvscodeminecraftbedrockdevelopmentextension-5.0.8\client\out\extension.js:2:320755)
    at i (c:\Users\brzoz\.vscode\extensions\blockceptionltd.blockceptionvscodeminecraftbedrockdevelopmentextension-5.0.8\client\out\extension.js:2:102843)
    at i.provideDocumentSymbols (c:\Users\brzoz\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:98:32441)

To Reproduce
Steps to reproduce the behavior:

  1. Open .mcdefinitions file like the one above
  2. See error

Expected behavior
No error.

Desktop (please complete the following information):

  • OS: Windows
  • Version v5.0.8
@stirante stirante added the bug Something isn't working label Feb 27, 2023
@DaanV2 DaanV2 closed this as completed Mar 20, 2023
@DaanV2
Copy link
Contributor

DaanV2 commented Mar 20, 2023

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants