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

Code completion: /execute does not work #475

Closed
Icy9ptcl opened this issue May 22, 2020 · 3 comments
Closed

Code completion: /execute does not work #475

Icy9ptcl opened this issue May 22, 2020 · 3 comments
Assignees
Labels
*released The changes has been released

Comments

@Icy9ptcl
Copy link

Since I got the newest version of Datapack Helper Plus -- v2.0.4 (since 2020-05-21) code completion of /execute seems to be no longer working properly.

Reproducing

  1. Create an .mcfunction file
  2. Type "execute"
  3. Get some error.

The error says:

A request has failed. See the output for more information.
The source is Datapack Helper Plus (MCF) (Extension)

Environment

On:

  • Windows 10 64-bit
  • Visual Studio Code, version 1.44.2 and 1.45.1 (64bit version)
  • Electron: 7.2.4
  • Chrome: 78.0.3904.130
  • Node.js: 12.8.1
  • V8: 7.8.279.23
    ( My VSCode was old so I updated it, but nothing had changed )

With extensions:

  • Datapack Helper Plus(JSON) - 2.0.11
  • Datapack Helper Plus(MCF) - 2.0.4
  • language-mcfunction - 0.16.0
    Note: This extension is by Arcensoth, but disabling this plugin did not change anything.

What I tried:

  • Re-installed Datapack Helper Plus
  • Re-installed language-mcfunction
  • Disabled language-mcfunction
  • Updated all extensions, including VSCode

Nothing changed the issue.

Log

This is the output from Visual Studio Code, but it is from Datapack Language Server!
The source of error message is Datapack Helper Plus (MCF) .

Please note that my Username and Path_to_working_directory is replaced.

[Info  - 22:14:11] [I18N] Start.
[Info  - 22:14:11] [I18N] Try: ‘en-gb’.
[Warn  - 22:14:11] [I18N] Faild: ‘en-gb’.
[Info  - 22:14:11] [I18N] Final: ‘en’.
[Info  - 22:14:11] rootUri (priority = 1) = ‘file:///**Path_to_working_directory**’
[Info  - 22:14:11] CacheVersion = ‘7’
[Info  - 22:14:11] ReleaseNotesVersion = ‘2.0.1’
[Info  - 22:14:11] globalStoragePath = ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server’
[Info  - 22:14:11] storagePath = ‘c:\Users\**Username**\AppData\Roaming\Code\User\workspaceStorage\65d72952e2c996db9effe7afbd0f95f6\SPGoding.datapack-language-server’
[Info  - 22:14:12] cachePath = ‘c:\Users\**Username**\AppData\Roaming\Code\User\workspaceStorage\65d72952e2c996db9effe7afbd0f95f6\SPGoding.datapack-language-server\cache.json’
[Info  - 22:14:12] [LatestVersions] Fetching the latest versions...
[Info  - 22:14:12] [LatestVersions] versionInformation = {"latestRelease":"1.15.2","latestSnapshot":"20w21a","processedVersions":["20w21a","20w20b","20w20a","20w19a","20w18a","20w17a","20w16a","20w15a","20w14a","20w14infinite","20w13b","20w13a","20w12a","20w11a","20w10a"]}
[VanillaData: BlockDefinition for 20w21a] Fetching from GitHub ‘https://raw.githubusercontent.com/Arcensoth/mcdata/master/processed/reports/blocks/blocks.min.json’...
[VanillaData: BlockDefinition for 20w21a] Fetching from GitHub ‘https://raw.githubusercontent.com/Arcensoth/mcdata/master/processed/reports/blocks/blocks.min.json’...
[VanillaData: BlockDefinition for 20w21a] Fetching from GitHub ‘https://raw.githubusercontent.com/Arcensoth/mcdata/master/processed/reports/blocks/blocks.min.json’...
[VanillaData: BlockDefinition for 20w21a] Fetching from GitHub ‘https://raw.githubusercontent.com/Arcensoth/mcdata/master/processed/reports/blocks/blocks.min.json’...
[VanillaData: BlockDefinition for 20w21a] Fetching from GitHub ‘https://raw.githubusercontent.com/Arcensoth/mcdata/master/processed/reports/blocks/blocks.min.json’...
[VanillaData: BlockDefinition for 20w21a] Fetching from GitHub ‘https://raw.githubusercontent.com/Arcensoth/mcdata/master/processed/reports/blocks/blocks.min.json’...
[VanillaData: BlockDefinition for 20w21a] Fetched from GitHub and saved at ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server\20w21a\BlockDefinition.json’.
[VanillaData: NamespaceSummary for 20w21a] Fetching from GitHub ‘https://raw.githubusercontent.com/Arcensoth/mcdata/master/processed/data/minecraft/minecraft.min.json’...
[VanillaData: BlockDefinition for 20w21a] Fetched from GitHub and saved at ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server\20w21a\BlockDefinition.json’.
[VanillaData: NamespaceSummary for 20w21a] Fetching from GitHub ‘https://raw.githubusercontent.com/Arcensoth/mcdata/master/processed/data/minecraft/minecraft.min.json’...
[VanillaData: BlockDefinition for 20w21a] Fetched from GitHub and saved at ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server\20w21a\BlockDefinition.json’.
[VanillaData: NamespaceSummary for 20w21a] Fetching from GitHub ‘https://raw.githubusercontent.com/Arcensoth/mcdata/master/processed/data/minecraft/minecraft.min.json’...
[VanillaData: NamespaceSummary for 20w21a] Fetched from GitHub and saved at ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server\20w21a\NamespaceSummary.json’.
[VanillaData: NamespaceSummary for 20w21a] Fetched from GitHub and saved at ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server\20w21a\NamespaceSummary.json’.
[VanillaData: BlockDefinition for 20w21a] Fetched from GitHub and saved at ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server\20w21a\BlockDefinition.json’.
[VanillaData: Nbtdoc for 20w21a] Fetching from GitHub ‘https://raw.githubusercontent.com/Yurihaia/mc-nbtdoc/generated/build/generated.json’...
[VanillaData: Nbtdoc for 20w21a] Fetching from GitHub ‘https://raw.githubusercontent.com/Yurihaia/mc-nbtdoc/generated/build/generated.json’...
[VanillaData: Nbtdoc for 20w21a] Fetching from GitHub ‘https://raw.githubusercontent.com/Yurihaia/mc-nbtdoc/generated/build/generated.json’...
[VanillaData: NamespaceSummary for 20w21a] Fetched from GitHub and saved at ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server\20w21a\NamespaceSummary.json’.
[VanillaData: Nbtdoc for 20w21a] Fetching from GitHub ‘https://raw.githubusercontent.com/Yurihaia/mc-nbtdoc/generated/build/generated.json’...
[VanillaData: BlockDefinition for 20w21a] Fetched from GitHub and saved at ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server\20w21a\BlockDefinition.json’.
[VanillaData: Nbtdoc for 20w21a] Fetching from GitHub ‘https://raw.githubusercontent.com/Yurihaia/mc-nbtdoc/generated/build/generated.json’...
[VanillaData: Nbtdoc for 20w21a] Fetched from GitHub and saved at ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server\20w21a\Nbtdoc.json’.
[VanillaData: Registry for 20w21a] Fetching from GitHub ‘https://raw.githubusercontent.com/Arcensoth/mcdata/master/processed/reports/registries/registries.min.json’...
[VanillaData: Nbtdoc for 20w21a] Fetched from GitHub and saved at ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server\20w21a\Nbtdoc.json’.
[VanillaData: Registry for 20w21a] Fetching from GitHub ‘https://raw.githubusercontent.com/Arcensoth/mcdata/master/processed/reports/registries/registries.min.json’...
[VanillaData: Nbtdoc for 20w21a] Fetched from GitHub and saved at ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server\20w21a\Nbtdoc.json’.
[VanillaData: Registry for 20w21a] Fetching from GitHub ‘https://raw.githubusercontent.com/Arcensoth/mcdata/master/processed/reports/registries/registries.min.json’...
[VanillaData: Nbtdoc for 20w21a] Fetched from GitHub and saved at ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server\20w21a\Nbtdoc.json’.
[VanillaData: Registry for 20w21a] Fetching from GitHub ‘https://raw.githubusercontent.com/Arcensoth/mcdata/master/processed/reports/registries/registries.min.json’...
[VanillaData: BlockDefinition for 20w21a] Fetched from GitHub and saved at ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server\20w21a\BlockDefinition.json’.
[VanillaData: Nbtdoc for 20w21a] Fetched from GitHub and saved at ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server\20w21a\Nbtdoc.json’.
[VanillaData: Registry for 20w21a] Fetching from GitHub ‘https://raw.githubusercontent.com/Arcensoth/mcdata/master/processed/reports/registries/registries.min.json’...
[VanillaData: Registry for 20w21a] Fetching from GitHub ‘https://raw.githubusercontent.com/Arcensoth/mcdata/master/processed/reports/registries/registries.min.json’...
[VanillaData: Registry for 20w21a] Fetched from GitHub and saved at ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server\20w21a\Registry.json’.
[VanillaData: Registry for 20w21a] Fetched from GitHub and saved at ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server\20w21a\Registry.json’.
[VanillaData: Registry for 20w21a] Fetched from GitHub and saved at ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server\20w21a\Registry.json’.
[VanillaData: Registry for 20w21a] Fetched from GitHub and saved at ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server\20w21a\Registry.json’.
[VanillaData: Registry for 20w21a] Fetched from GitHub and saved at ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server\20w21a\Registry.json’.
[VanillaData: Registry for 20w21a] Fetched from GitHub and saved at ‘c:\Users\**Username**\AppData\Roaming\Code\User\globalStorage\spgoding.datapack-language-server\20w21a\Registry.json’.
[Error - 22:14:16] Request textDocument/completion failed.
  Message: Request textDocument/completion failed with message: Cannot read property 'entries' of undefined
  Code: -32603 
[Error - 22:14:16] Request textDocument/signatureHelp failed.
  Message: Request textDocument/signatureHelp failed with message: Cannot read property 'entries' of undefined
  Code: -32603 

Those last 2 lines are errors that I got.

@SPGoding
Copy link
Member

SPGoding commented May 22, 2020

This report is amazing! Thank you so much!

And sorry for the bug. I will get it fixed asap

@SPGoding SPGoding transferred this issue from SpyglassMC/vscode-datapack May 22, 2020
@SPGoding
Copy link
Member

🎉 This issue has been resolved in version 2.0.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@SPGoding SPGoding added the *released The changes has been released label May 22, 2020
@Icy9ptcl
Copy link
Author

Thanks for extremely quick fix! Now I can work on my datapacks.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 24, 2020
@SPGoding SPGoding self-assigned this Nov 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*released The changes has been released
Projects
None yet
Development

No branches or pull requests

2 participants