Install follow those commands:
git clone https://github.com/vuvoth/ccls
cd ccls
cargo xtask install --server
cargo xtask install --client
circom language server
Home Page: https://marketplace.visualstudio.com/items?itemName=vuvoth.circom-plus
License: MIT License
Hi @vuvoth, when i installed the extension and opened a circom file, it complained with the following error message, do you know what it means?
[Error - 下午3:46:29] circom-lsp client: couldn't create connection to server.
Error: spawn Unknown system error -8
at ChildProcess.spawn (node:internal/child_process:413:11)
at Object.spawn (node:child_process:806:9)
at /Users/johnson/.vscode/extensions/vuvoth.circom-plus-0.0.6/out/main.js:39:57554
at Gl.createConnection (/Users/johnson/.vscode/extensions/vuvoth.circom-plus-0.0.6/out/main.js:39:12709)
at Gl.start (/Users/johnson/.vscode/extensions/vuvoth.circom-plus-0.0.6/out/main.js:39:2940)
The extension(pre-build on vscode) only runable on linux. We should support macOS and window by default.
We should follow this structure:
Create better API for travel and query on syntax tree:
Currently it will make vscode stuck when clicking the path to "../node_modules/circomlib/circuits/comparators.circom"
Every time we query semantic tokens on abstract syntax tree we need travel on this tree. We can build the database which is store semantic of token relate with abstract syntax tree of those files. This easier/cheaper for us to make a queries.
Example, we design schema of db like below:
struct DbSemantic {
templates: HashMap<Token, Template>,
signals: HashMap<Token, HashMap<Template, SignalDecl>> ,
...
}
We can make query to the Template when we know token(name of template). When we open/update new file we also update DbSemantic.
We don't need browse the ast tree for each query we make.
Let research and think about the way use Rowan in cls
Im getting the following error when trying to get to the definition of a component:
[Trace - 10:33:16 PM] Received response 'textDocument/definition - (51)' in 1ms. Request failed: Request textDocument/definition failed with message: Cannot read properties of undefined (reading 'type') (-32603).
[Error - 10:33:16 PM] Request textDocument/definition failed.
Message: Request textDocument/definition failed with message: Cannot read properties of undefined (reading 'type')
Code: -32603
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.