CFiggers / vscode-janet-plus-plus

Janet language support for Visual Studio Code
Other
10 stars 2 forks source link

Error when I import a module (e.g. json) #9

Closed leobm closed 10 months ago

leobm commented 10 months ago

Hi,

when i import the janet json module i get the following error. (import json :prefix "")

"could not load native /usr/local/lib/janet/json.so: config mismatch - host 1.31.0(0001) vs. module 1.32.1(0001)".

i reinstalled janet 1.32.1, recompiled json, changed the language server etc. which config is meant? or where does this error come from? System: Distributor ID: Ubuntu release: 22.04

thanks, Felix

CFiggers commented 10 months ago

Hi there. 🙂

That's probably just a symptom of the Janet LSP binary that ships with Janet++ being compiled with Janet 1.31 and you're running 1.32 already. I will be pushing an update shortly with recompiled binaries that should fix the problem.

Long term, it might make sense to distribute the Janet source code instead of a single binary file...

leobm commented 10 months ago

Hi, thanks for yourt answer. maybe it would also be good if you could set the path in the settings itself to the respective language server in the system or overwrite the default path? i think i have seen something like that with other extensions, for other programming languages.

CFiggers commented 10 months ago

That's a great improvement that I agree we should have. Would you be willing to open a new issue to track that specifically? Thanks!

CFiggers commented 10 months ago

This should be fixed now with v0.0.6 now published to the marketplace. Let me know if you still have problems after updating (feel free to reopen this issue or create a new one, your preference).