Giter Site home page Giter Site logo

Comments (5)

Kazhuu avatar Kazhuu commented on June 5, 2024

I would also like to see this implemented. I love to use this with vim so far and haven't seen similar tool that compiles the sources on save. Or have I missed something?

from hdl_checker.

suoto avatar suoto commented on June 5, 2024

Had never heard about LSP before to be honest :)

The LSP defines quite a lot of interesting things, hdlcc could possibly implement the Diagnostics interface, but I need to check if/how LSP supports configuration (like the path to the hdlcc config file) and if the protocol requires servers to send results as you type (i.e., without having to save the file; should be doable, just a bit more work really).

@kazooiebombchu if hdlcc can locate a compiler to use, it should compile the sources you save and its dependencies using a hidden folder as workspace. You can always use those results if you need, although if you're actually running simulations, I'd recommend VUnit :)

from hdl_checker.

abyszuk avatar abyszuk commented on June 5, 2024

AFAIK LSP supports sending both file diff and whole file. Simpler servers implement only whole-file mode on file save, anything more is optional.
LSP supports passing path to configuration file or top directory. This is called rootUri.
This is how such configuration looks like for another plugin working with vim-lsp:
https://github.com/prabirshrestha/vim-lsp/wiki/Servers-VHDL

from hdl_checker.

suoto avatar suoto commented on June 5, 2024

LSP support should be working on the lsp_support branch - at least seems to work fine with w0rp/ale, but still need to update the readme with changes. The Vim side of things is on a similar state, except it still need proper testing.

(took a while to get this properly working, had other stuff going on)

from hdl_checker.

suoto avatar suoto commented on June 5, 2024

Forgot to close this. LSP has been integrated into master. Will update the readme with info on how to use it soon.

from hdl_checker.

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.