You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perhaps the documentation could be updated to clarify this. i imagine many people attempting to use this plugin may be unfamiliar with the LSP protocol itself and are just trying to get their IDE to work well with the language they're using.
I tried it on Intellij IDEA and didn't get any validation at first, but then I added an empty configuration object {} and it just worked
setting the empty config object works, thanks! should that field default to an empty object when it's not set? or maybe this is a bug with pyright's language server rather than this plugin?
perhaps the documentation could be updated to clarify this. i imagine many people attempting to use this plugin may be unfamiliar with the LSP protocol itself and are just trying to get their IDE to work well with the language they're using.
Activity
angelozerr commentedon Jun 10, 2024
The log tab is filled with lsp window/logMessage
You need to go to traces tab to see lsp traces and you should see some textDocument/publishDiagnostic if your ls reports some validation error
angelozerr commentedon Jun 10, 2024
@DetachHead for your questions about language id, file type pattern etc please read https://github.com/redhat-developer/lsp4ij/blob/main/docs%2FUserDefinedLanguageServer.md
If it is not clear please tell me to omprove the documentation
fbricon commentedon Jun 10, 2024
I tried it on Intellij IDEA and didn't get any validation at first, but then I added an empty configuration object

{}and it just worked:angelozerr commentedon Jun 10, 2024
That's very strange, because this didChangeConfiguration is used only when you save it, not when you start the ls.
I wonder if it isworking if you restart the ls?
If not I think we should add a new checkbox
send didChangeConfiguration when ls is startedto do that.DetachHead commentedon Jun 10, 2024
my bad, looking into it further i realize language ID is an LSP feature: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocumentItem
perhaps the documentation could be updated to clarify this. i imagine many people attempting to use this plugin may be unfamiliar with the LSP protocol itself and are just trying to get their IDE to work well with the language they're using.
setting the empty config object works, thanks! should that field default to an empty object when it's not set? or maybe this is a bug with pyright's language server rather than this plugin?
fbricon commentedon Jun 10, 2024
languageId should be a combobox with a list of preset languages eventually
fbricon commentedon Jun 11, 2024
Fixed with #339. An empty configuration object is now always sent in
workspace/didChangeConfigurationevents on startup.fbricon commentedon Jun 11, 2024
@DetachHead in any case, I suggest pyright handles null configuration values, possibly sent by other clients.
angelozerr commentedon Jun 11, 2024
See doc at https://github.com/redhat-developer/lsp4ij/blob/main/docs/UserDefinedLanguageServer.md#language-id