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

Doesn't work #9

Closed
dakom opened this issue Jun 8, 2022 · 5 comments
Closed

Doesn't work #9

dakom opened this issue Jun 8, 2022 · 5 comments

Comments

@dakom
Copy link

dakom commented Jun 8, 2022

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
Copy link
Owner

qiuxiang commented Jun 8, 2022

coc-solidity depends solc

@dakom
Copy link
Author

dakom commented Jun 8, 2022

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

@qiuxiang
Copy link
Owner

qiuxiang commented Jun 8, 2022

is solc not solcjs.

@qiuxiang
Copy link
Owner

qiuxiang commented Jun 8, 2022

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

@dakom
Copy link
Author

dakom commented Jun 8, 2022

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

@dakom dakom closed this as completed Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants