Closed Kesuaheli closed 2 months ago
The extension only supports loading a single version at once, but it looks like it isn't detecting any of those two versions correctly. If you open the output panel (Ctrl+Shift+U
), select "Spyglass Language Server", and scroll up, you should be able to see a line "Found valid pack.mcmeta ..." highlighting what pack.mcmeta file it detected and which pack format
Well...
[je.initialize] Failed finding a valid pack.mcmeta
I tried open just a single datapack and it found it.
But for the whole workspace containing multiple levels of different worlds with datapacks/
folders it cant find any pack.mcmeta
It only searches two folders deep to find a pack.mcmeta
If you really want to have this whole folder open at once, you can manually set a version in spyglass.json
at the root of the workspace:
{
"env": {
"gameVersion": "1.20.3",
}
}
Yeah, have to do that then.
Is there a reason it only searches 2 folders? Or is it just performance. Preventing to potentially go through dozens of folders just to eventually find there is actually no pack.mcmeta
anywhere.
If so: Well, I thought a simple file search was more efficient ^^ But would it be an idea make that (im assuming hardcoded) "2 folders deep" into a config option?
It was a config option in v3, but tbh the real solution will be supporting multiple versions, and then it will just use the right version within each pack.mcmeta data pack
Yes. It'll mark it as a duplicate
I have datapacks with
pack_format
10 (1.19) and 26 (1.20.3).Both of them suddenly have errors. One with
particle dust
beeing wrong. And one withgive @s <item>{WithSomeNBT: {}}
beeing wrong.Two errors here (on two positions):
Two errors here (on one position):
These packs obviously work in their desired version