lf-lang / vscode-lingua-franca

Lingua Franca extension for Visual Studio Code
Other
4 stars 3 forks source link

Diagrams bug #113

Closed lhstrh closed 1 year ago

lhstrh commented 1 year ago

Initial error:

klighd-vscode.setLanguageClient command called with invalid arguments.
Please refer to the documentation for reference about the correct usage.

After that:

command 'klighd-vscode.diagram.open' not found
soerendomroes commented 1 year ago

You recently changed the import of the language client in your extension. Are you sure that the language client you are using is compatible to the one klighd-vscode needs?

Since when does this occur?

lhstrh commented 1 year ago

I'm running the latest version from main. I just rebuilt, and now I don't get an error, just an empty screen..

lhstrh commented 1 year ago

You recently changed the import of the language client in your extension. Are you sure that the language client you are using is compatible to the one klighd-vscode needs?

I'm unsure what you mean by this. Could you be more specific?

soerendomroes commented 1 year ago

In your extension.ts you call klighd-vscode.setLanguageClient with a languageClient imported from @vscode/languageclient/node and the file extension for Lingua Franca "lf". I am unsure whether this language client is still compatible with the language client the KLighD Diagrams extension expects since you are using a more recent vscode version and potentially changed the source of the import from "@vscode/languageclient" to the path above.

lhstrh commented 1 year ago

OK, we'll look into this. Thanks for the pointer, @soerendomroes!