Replies: 2 comments 6 replies
-
GitHub releases aren’t approved for use at my company, I expect mine isn’t the only one. This could be a point of friction for users attempting to use a specific version. I don’t really like the idea of shipping the language server with the IDE plugin. It means that plugin releases need to be made solely to update the language server, which is additional maintenance. If we just need to ship a version, and not always create an IDE release when there’s an Oxlint release I could be ok with this but it’s still not my preference. Users would still need the ability to easily select the version of the language server they use per project. |
Beta Was this translation helpful? Give feedback.
-
There’s also the issue that if the language server and Oxlint binary are different versions, then users can experience different lint results between the IDE and the CLI. This came up once in Discord. I think either a single binary with everything in it (like Biome) or multiple binaries with some sort of runtime linking are the best suggestions I have here. Runtime linking in the sense that the language server would be smaller in size, but depend on the normal size Oxlint binary at runtime. Then when oxfmt is introduced, it’s the same thing there. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Original started here: #12251
I did not want to continue in the issue because this is another direction of the issue.
I had some thoughts, removing the language server binary from npm package
oxlint
.See my reasons here #12251 (comment).
I see the language server as an own project beside oxlint.
Yes, currently it is only supporting what oxlint does, but the server could do much more.
If we fully support a/all special parsers, we can think about unifying them
Handling all the use cases an LSP Client could support has nothing to do inside the oxlint binary/npm package.
I also checked what other tools do:
VSCode ESLint Plugin comes with the server prebuild, like we do with our VSCode:
https://github.com/microsoft/vscode-eslint/blob/001edda5bd168a9c6a79cba767111ba21eadd052/client/src/client.ts#L384
oxc/editors/vscode/client/extension.ts
Line 154 in 91b9905
In PHPStorm the Vue Language Server comes with the Vue Plugin too. I can change in the PHPStorm Registry the "default version" of the server, and the extension will download it for me.
My Idea:
Make the language server downloadable via GitHub Release.
For Windows Users, having the
oxc_language_server.exe
insidenode_modules
is not ideal.Users can not remove the
node_modules
folder, because theexe
is in use.@nrayburn-tech created a workaround for the IntelliJ Plugin: oxc-project/oxc-intellij-plugin#239
/cc @Boshen @camc314
Beta Was this translation helpful? Give feedback.
All reactions