Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language Server v3.4.2 not working #218

Open
thomas-tran-de opened this issue Jan 8, 2025 · 2 comments
Open

Language Server v3.4.2 not working #218

thomas-tran-de opened this issue Jan 8, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@thomas-tran-de
Copy link

Hi, the latest version of the language server v3.4.2 doesn't work for me. When I install it and try to format any code, I get an error (see below). With v3.4.1, everything works as expected.

Error Message

Information about my VSCode installation:

Version: 1.96.2 (user setup)
Commit: fabdb6a30b49f79a7aba0f2ad9df9b399473380f
Date: 2024-12-19T10:22:47.216Z
Electron: 32.2.6
ElectronBuildId: 10629634
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.22631

@erwinkramer
Copy link

Thanks for pointing out that my issue with this extension was version specific.

I caught some of the error logs when you try to run it on 3.4.2, maybe that helps:

2025-02-15 14:52:49.561 [error] Activating extension rosshamish.kuskus-kusto-language-server failed due to an error:
2025-02-15 14:52:49.561 [error] Error [ERR_REQUIRE_ESM]: require() of ES Module c:\Users\erwin\.vscode\extensions\rosshamish.kuskus-kusto-language-server-3.4.2\client\node_modules\clipboardy\index.js from c:\Users\erwin\.vscode\extensions\rosshamish.kuskus-kusto-language-server-3.4.2\client\out\extension.js not supported.

@rosshamish rosshamish added the bug Something isn't working label Feb 27, 2025
@rosshamish
Copy link
Owner

Hm from those logs, must be related to clipboardy, which was updated in a recent deps roll
https://github.com/sindresorhus/clipboardy/releases from 2.3.0 to 4.0.0 in this commit 88a4477, across which it changed to an ESM-only module. If anyone else see's what's wrong with the import in kuskus here, i'm all ears, and open to a pull request.

In the meantime i'll probably roll back clipboardy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants