Comments (6)
Thanks for the quick help. I side loaded the extension (with your fix) and it seems to help.
from vscode-nim.
It seems like it cannot start the language server, but it is there, updated to the latest version, and I can start it from the command line. Have the same problem when running VS Code in WSL2 on Windows.
from vscode-nim.
Sounds like a bug in the jsgen.
from vscode-nim.
I apologize for opening up this again, but it seemed to help on my WSL2 instance, but not so for my Debian machine. When building and sideloading the extension, it now fails to start with this message in exthost.log:
2024-02-27 15:05:43.350 [info] ExtensionService#_doActivateExtension NimLang.nimlang, startup: false, activationEvent: 'onLanguage:nim'
2024-02-27 15:05:43.481 [error] Activating extension NimLang.nimlang failed due to an error:
2024-02-27 15:05:43.481 [error] TypeError: Cannot read properties of undefined (reading 'val')
at nimCopyAux (/home/janf/.vscode/extensions/nimlang.nimlang-0.9.0/out/nimvscode.js:2049:102)
at nimCopyAux (/home/janf/.vscode/extensions/nimlang.nimlang-0.9.0/out/nimvscode.js:2055:7)
at nimCopy (/home/janf/.vscode/extensions/nimlang.nimlang-0.9.0/out/nimvscode.js:1236:7)
at isSomeSafe_2164261089 (/home/janf/.vscode/extensions/nimlang.nimlang-0.9.0/out/nimvscode.js:15417:16)
at getLatestReleasedLspVersion_2164261107 (/home/janf/.vscode/extensions/nimlang.nimlang-0.9.0/out/nimvscode.js:15572:21)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async startLanguageServer_2164261695 (/home/janf/.vscode/extensions/nimlang.nimlang-0.9.0/out/nimvscode.js:15954:39)
at async activate_553649155 (/home/janf/.vscode/extensions/nimlang.nimlang-0.9.0/out/nimvscode.js:17492:6)
at async c.n (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:140:6256)
at async c.m (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:140:6219)
at async c.l (/usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:140:5676)
from vscode-nim.
Im looking at the generated code and it doesnt look like yours, you sure the extension is the latest build? Can you upload your nimvscode.js
. It's inside the extension on the out
directory (the extension is a zip file)
from vscode-nim.
Sorry for the slow response. This was probably a false alarm. I removed the extension and side loaded it again (with your changes) and it has worked ever since.
from vscode-nim.
Related Issues (20)
- Does not work on WSL HOT 1
- syntax highlighting fails on an emit pragma after a nim symbol HOT 1
- Plugin stops detecting compiler flags after changing source files HOT 5
- Nim VS code attach to process HOT 1
- Autocomplete is wrong HOT 6
- Add folds to documentation comments
- Language server does not restart properly HOT 2
- Adds notifications under the Nim panel
- Undeclared identifiers in `.nims` files
- New version of the plugin does not work on Windows HOT 3
- `Server failed with Nimsuggest process crashed.` HOT 2
- Fix parameters for running nimlangserver.cmd on Windows
- (Some?) Compilation hints are shown as warnings on the Problems tab
- Frequent "Request textDocument failed." popups HOT 4
- Symbol name not updated when changed
- vscode-nim : how to get it to work on Win10 ? HOT 24
- Can't connect to Nim Language Server HOT 6
- Error starting nimlangserver: could not load: pcre64.dll HOT 2
- VSCode Portable fails on Windows HOT 3
- add support for `nimpretty` to format on save HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-nim.