Can't get solc (Solidity LSP) to work #9010
Unanswered
janhrastnik
asked this question in
Troubleshooting
Replies: 1 comment 4 replies
-
This looks like a bug upstream in solc - I can reproduce with Helix and nvim with those same reproduction steps. It looks like the language server is exiting because of a segfault |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Hello, I should preface this by saying that the solc LSP did work for me when I first installed it. I'm not sure what might've changed, but since then it doesn't work for me. I tried reinstalling it as well.
I tried opening some Solidity files from a newly initialized foundry project, but I also tried this with a fresh hardhat project and a blank .sol file, and the LSP doesn't work for any of them.
hx --health
shows me that solc is installed, and i have it added to my path.^^ This seems to be the moment where something goes wrong (It's when i try to show docs for a variable). I can't figure out why. Any help with this would be very much appreciated :)
Reproduction Steps
I tried this:
forge init hello_foundry
cd hello_foundry
hx src/Counter.sol -v
number
variable. Helix just showsLanguage server exited
in the toolbar. Then I just typednumber
in a newline to see if anything would pop up.I expected this to happen:
Instead, this happened:
Language server exited
and sometimes anAsync job failed
error.Helix log
~/.cache/helix/helix.log
Platform
Arch 6.6.3
Terminal Emulator
Alacritty
Installation Method
Built from source
Helix Version
23.10 (quickly checked on master as well (c3cb179), and the problem persists)
Beta Was this translation helpful? Give feedback.
All reactions