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)
- Regression from 1.6 to 2.0/devel with templates with `gensym` `proc` HOT 2
- Quirk with undeclared identifiers passed as arguments and function/template call matching HOT 1
- Seg Fault on cross compiled binary for ARM HOT 3
- Improper code generation for cross-compilation using arm-none-eabi-gcc HOT 5
- nimscript.exec with input parameter raises, while gorge and gorgeEx work fine. HOT 3
- Regression: Error: fatal error: invalid kind for lastOrd(tyGenericParam) HOT 4
- Using waitForExit with timeout from multiple threads simultaneously hangs HOT 1
- Cyclic proc calls causes infinite memory usage HOT 12
- Custom iterator is not found if used in template function, if used from a third file HOT 1
- bisecting 2.2.0 rc1 HOT 17
- cursor optimizer doesn't understand that distinct cstring can be an owning type
- Cross compilation with mingw for cpu=i386 from linux/macos fails with time_t bug HOT 2
- Type error when sink added to parameters HOT 2
- Nim `devel` nightly `i386` build failing HOT 1
- `koch pdf` produces a warning about unknown substitution 'nimversion'
- `nim gendepend` does not work with var-less destructors
- When JS, operations on pointer casted from ref object raises Runtime-Errors
- Regression - cannot instantiate Maybe generic arguments are missing HOT 5
- Identifier expected or compiler segfault with templates over generic type in type section HOT 3
- Nested generic/static parameter: undeclared identifier in typesections HOT 2
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.