Code Monkey home page Code Monkey logo

yul-lsp's People

Contributors

cameel avatar hrkrshnn avatar matheusaaguiar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

yul-lsp's Issues

Finish the feature for providing information about function selectors on hover

It is partially implemented using Dune API but the LSP was crashing when I tried to use that with QtCreator on the hackathon. See dune-request-on-hover branch.

My suggestion would be to not use Dune for this at all and switch to https://www.4byte.directory instead, which also seems to be pretty relaxed about access to the data:

The data from this service is given free of any license or restrictions on how it may be used.

Usage of the API is also granted with the single restriction that your usage should not disrupt the service itself. If you wish to scrape this data, feel free, but please do so with limited concurrency. You are encouraged to scrape your own copy of this data if your use case is likely to produce heavy load on the API.

The feature should be properly covered by tests and documented.

Vim integration

Add any necessary configuration for easy integration with Vim and document it.

I'd suggest starting with neovim since it has a built-in LSP and should be the easiest.

Create a simple LSP client for testing the server

We need a way to test the LSP in CI. I think we should implement a simple client and use it to write some end-to-end tests.

Check what other LSP implementation are doing. Maybe there's a ready to use crate for that.

More robust "go to definition"

The feature was implemented in a rush at the hackathon and needs cleanup and improvements:

  • We seem to have a duplicate of tower_lsp::lsp_types::TextDocumentItem struct in our code (that also causes warnings due to unused fields). We should switch to using that directly.
  • We have no tests covering it.
  • We only managed to work with an old version of QtCreator. We need to make it work in all editors.

VSCode extension

Create a simple extension to make the server usable with VSCode. Unfortunately VSCode seems to require implementing your own LSP client as an extension. See Language Server Extension Guide.

The task includes publishing the extension and documenting how to use it.

Remix integration

We had a chat with @bunsenstraat (of Remix) about their LSP feature, which already works for Solidity. It uses a mix of AST JSON and a custom parser.

I was wondering if we could provide a simple non-HTTP LSP API of this library, compiled to wasm, to be used by Remix for Yul LSP. Once that works, we could provide Solidity LSP via the very same interface, and potentially as a separate project not integrated into the main solc codebase.

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.