SpyglassMC / Spyglass

Development tools for vanilla Minecraft: Java Edition data pack developers.
https://spyglassmc.com
MIT License
273 stars 29 forks source link

The Spyglass Language Server crashed #1466

Closed klue007 closed 1 day ago

klue007 commented 2 days ago

I'm using v4.0.1 and after updated it says "The Spyglass Language Server server crashed 5 times in the last 3 minutes."

Error: There is no parser registered for language ID 'mcfunction'
    at H0.getParserForLanguageId (c:\Users\Lenovo\.vscode\extensions\spgoding.datapack-language-server-4.0.1\dist\server.js:69:7054)
    at To.parse (c:\Users\Lenovo\.vscode\extensions\spgoding.datapack-language-server-4.0.1\dist\server.js:69:18552)
    at To.onDidOpen (c:\Users\Lenovo\.vscode\extensions\spgoding.datapack-language-server-4.0.1\dist\server.js:69:20693)
    at c:\Users\Lenovo\.vscode\extensions\spgoding.datapack-language-server-4.0.1\dist\server.js:127:25509
    at Qe (c:\Users\Lenovo\.vscode\extensions\spgoding.datapack-language-server-4.0.1\dist\server.js:15:1561)
    at or (c:\Users\Lenovo\.vscode\extensions\spgoding.datapack-language-server-4.0.1\dist\server.js:14:6204)
    at be (c:\Users\Lenovo\.vscode\extensions\spgoding.datapack-language-server-4.0.1\dist\server.js:14:6357)
    at Immediate.<anonymous> (c:\Users\Lenovo\.vscode\extensions\spgoding.datapack-language-server-4.0.1\dist\server.js:14:6122)
    at process.processImmediate (node:internal/timers:478:21)

Node.js v20.9.0
[Error - 22:19:19] Server process exited with code 1.
[Error - 22:19:19] The Spyglass Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
misode commented 2 days ago

Could you show a bit of the log above that error?

klue007 commented 2 days ago

log.txt

misode commented 2 days ago

It failed to download necessary resources for the language server to function. Is api.github.com or raw.githubusercontent.com blocked in your country? Maybe your DNS is configured incorrectly?

Try using another data source by creating a spyglass.json file at the root of your workspace:

{
  "env": {
    "env": "jsDelivr"
  }
}
SPGoding commented 2 days ago

jsDelivr might not help with the api.github.com calls where we're trying to find out the latest commit hash.

klue007 commented 1 day ago

It failed to download necessary resources for the language server to function. Is api.github.com or raw.githubusercontent.com blocked in your country? Maybe your DNS is configured incorrectly?

Try using another data source by creating a spyglass.json file at the root of your workspace:

{
  "env": {
    "env": "jsDelivr"
  }
}

It's some connection problem and I've found a way to fix it. Thanks for help!