Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

circom-lsp client: couldn't create connection to server. #42

Closed
johnson86tw opened this issue Feb 24, 2024 · 12 comments
Closed

circom-lsp client: couldn't create connection to server. #42

johnson86tw opened this issue Feb 24, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@johnson86tw
Copy link

johnson86tw commented Feb 24, 2024

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)
@vuvoth
Copy link
Owner

vuvoth commented Feb 24, 2024

Thank you so much for feedback, @chnejohnson!

I'm not sure I know exactly what happened here. Look like the circom lsp binary not compatible with macOS(I build it on my linux machine). Sorry for inconvenient.

You can install the extension manually follow those commands:

git clone https://github.com/vuvoth/ccls
cd ccls 
cargo xtask install --server 
cargo xtask install --client

Please let me know if you have any problem.

@vuvoth
Copy link
Owner

vuvoth commented Feb 24, 2024

I'm adding binary runable on macOS.

@johnson86tw
Copy link
Author

@vuvoth Hey, thanks. I followed your commands and installed the extension, but the error still occurs.
Yes, I'm using macOS. This is the full output.

[Error - 下午8:20:25] circom-lsp client: couldn't create connection to server.
Launching server using command /Users/johnson/.vscode/extensions/vuvoth.circom-plus-0.0.6/bin/ccls failed. Error: spawn /Users/johnson/.vscode/extensions/vuvoth.circom-plus-0.0.6/bin/ccls ENOENT

@vuvoth
Copy link
Owner

vuvoth commented Feb 25, 2024

Hi @chnejohnson!
I updated repo. Can you pull new code and install extenstion follow command:

git clone https://github.com/vuvoth/ccls
cd ccls 
cargo xtask install --server 
cargo xtask install --client

@johnson86tw
Copy link
Author

@vuvoth Nice! It works perfectly. Thanks for your help, this project is very helpful!

@vuvoth
Copy link
Owner

vuvoth commented Feb 25, 2024

Thank you @chnejohnson <3 ! Some functions are not working perfectly right now. I'm try to fix this. If you have any problem please give me a feedback.

@johnson86tw
Copy link
Author

@vuvoth In fact, I have a small wish. It would be great if I could go to the definition by clicking the library include path :D

@vuvoth
Copy link
Owner

vuvoth commented Feb 26, 2024

@vuvoth In fact, I have a small wish. It would be great if I could go to the definition by clicking the library include path :D

I create this feature :D Please update a new package, @chnejohnson!

@johnson86tw
Copy link
Author

@vuvoth hi, there's an error when I run cargo xtask install --server after pulling latest codebase

截圖 2024-02-27 上午9 47 21

@vuvoth
Copy link
Owner

vuvoth commented Feb 27, 2024

What is your rust version? Can you update to the lastest rust version?

@johnson86tw
Copy link
Author

I'm using rustc 1.74.0 (79e9716c9 2023-11-13) (Homebrew), I'm updating now, it'll take some time.

@vuvoth
Copy link
Owner

vuvoth commented Feb 27, 2024

I will close this issues! If you have any idea please create another one!

@vuvoth vuvoth closed this as completed Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants