Comments (3)
Cant be reproed in the v4
of the protocol. Tools should use that one instead as it has many other enhancements
nimsuggest --v4 example.nim
from nim.
I had the same problem as OP, but I guess the problem is that I was using nimlsp, the author of which hasn't kept it up to date with the latest nimsuggest protocol updates (as far as I can tell, even V3 hasn't been implemented). So the answer was to switch to nimlangserver. After switching, the {.base.}
error is gone.
from nim.
So I can confirm if I run with explicit --v4 as above then yes it appears to work as expected.
So perhaps the error is instead within the handling by nimlangserver? However based upon what @Seanld said this worked for them.
For me running either vscode integration or neovim with nimlangserver still shows errors.
I've tried to see if I can find the protocol being chosen but my best guess is:
https://github.com/nim-lang/langserver/blob/97ffd6da89c658abaf6043e29ac6aeab1afda8f9/suggestapi.nim#L268
Running:
nimsuggest --info:protocolVer
Returns:
4
As an aside Why is the default protocol still v2? If v4 is generally better, shouldn't that be the default?
from nim.
Related Issues (20)
- Add `hash()` for `Path`
- [C, C++ & ObjC codegen] Incompatible pointer types used in codegen (an error on GCC 14) HOT 1
- Why this code produces a compiler warning: Warning: `=destroy`(t.c) can raise an unlisted exception: Exception HOT 1
- Consider migrating from pcre to pcre2 HOT 1
- [Feature] a new lint rule to require that each block must end with #. or # or a new line. HOT 2
- Nimsuggest's inlay exception hints don't work for iterators
- compiler does not throw "... has to be used or discarded" error when else branch raises error HOT 6
- Extremely slow and inefficient hash function for openArray[byte] for 64-bit systems HOT 4
- Overloaded `template`s across scopes where one has `untyped` parameter fail to build HOT 2
- Closures capture scope is confusing, leading to unexpective behaviour
- Devel: Illegal storage access in alloc.nim HOT 1
- when nimvm doesn't isolate symbols HOT 3
- when nimvm visible in runtime code causing misexecution due to matching preference rules HOT 2
- [Regression] compiler is not inferring the type of an `enum` marked with the `pure` pragma when there is a type with the same identifier as a value of this enum HOT 7
- SIGSEGV with object variants and RTTI HOT 10
- Bug in C++ codegen for set stringify when setting size HOT 5
- Support `jobserver` when parallelising builds
- On Linux, "nimsuggest" crashes if Nim is installed in /usr/bin and the library in /usr/lib/nim HOT 6
- dom addEventListener has ambiguous types HOT 1
- SigAction isn't missing a field on amd64? HOT 28
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 nim.