GithubHelp home page GithubHelp logo

Comments (3)

jmgomez avatar jmgomez commented on May 29, 2024 1

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.

Seanld avatar Seanld commented on May 29, 2024

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.

richardhallett avatar richardhallett commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.