Closed ekr990011 closed 2 years ago
i also use arch, what is your solc version?
$ solc --version
solc, the solidity compiler commandline interface
Version: 0.8.15+commit.e14f2714.Linux.g++
I run arch as well and when I execute
solc --version
I get:
solc: error while loading shared libraries: libz3.so.4.8: cannot open shared object file: No such file or directory
This is what provoking the server to crash on my machine. Can an option be added to modifiy which solc binary to use (and avoid using the system one for now)
I get:
solc: error while loading shared libraries: libz3.so.4.8: cannot open shared object file: No such file or directory
This is what provoking the server to crash on my machine. Can an option be added to modifiy which solc binary to use (and avoid using the system one for now)
^ That is also what I get. It seems to imply we do not have libz3 4.8
I checked and I have:
Packages (1) z3-4.9.0-1
Possible solution but I am a coc noob so do double check for me @rodrigo-pino
If you have the downgrade package installed you can do:
sudo downgrade z3
I chose 4.8.17, I was wary to put it in the Ignorepkg yet as it appears the solidity package needs to be updated and may be sometime fairly soon in the future.
After I did that I get:
❯ solc --version
solc, the solidity compiler commandline interface
Version: 0.8.15+commit.e14f2714.Linux.g++
No more crashing of the server. It does seem to auto-complete things like struct/uint now. Now I just need to learn to actually use coc better :P
my solution is sudo ln -s /usr/lib/libz3.so.4.9 /usr/lib/libz3.so.4.8
That should work too, thanks for taking the time, really appreciate it! :)
I'm on arch and I am trying to get coc-solidity to work with nvim.
I have installed the regular arch binaries for solc:
yay -S solidity
whereis solc
/usr/bin/solc
Upon running a solidity file I get the error:
The "solidity" server crashed 4 times in 3 minutes. The server will not be restarted
My
:CocCommand workspace.showOutput
I have tried without the arch package for solidity as well by directly downloading from the sources linked to in the README.md. Once I do that I simply recieve:
[coc.nvim] spawn solc ENOENT
I have tried setting up my
CocConfig
with this to point to the directly downloaded binary:I got that suggestion for: https://dev.to/christianparpart/builtin-solidity-language-server-267n Syntax errors show up but nothing from coc-solidity
Any suggestions?