qiuxiang / coc-solidity

Solidity language server for coc.nvim
MIT License
49 stars 0 forks source link

Doesn't work #9

Closed dakom closed 2 years ago

dakom commented 2 years ago

after installing the plugin, when I open a contract the server crashes - and :CocCommand workspace.showOutput shows:

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Socket.<anonymous> (/Users/dakom/.config/coc/extensions/node_modules/coc-solidity/node_modules/solidity-ls/dist/index.js:30872:50)
    at Socket.emit (node:events:402:35)
    at endReadableNT (node:internal/streams/readable:1343:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
[Info  - 12:09:36] Connection to server got closed. Server will restart.
undefined:1
qiuxiang commented 2 years ago

coc-solidity depends solc

dakom commented 2 years ago

I've run npm install -g solc - but same error. Is there something else I need to do?

qiuxiang commented 2 years ago

is solc not solcjs.

qiuxiang commented 2 years ago

u can install from package manager like brew install solidityapt install solidity

dakom commented 2 years ago

ahh, yup, that works. clearly I'm just starting writing solidity ;) thanks!