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

Error: write EPIPE #294

Closed
babyface001 opened this issue Nov 26, 2022 · 16 comments · Fixed by #295
Closed

Error: write EPIPE #294

babyface001 opened this issue Nov 26, 2022 · 16 comments · Fixed by #295
Labels
type:bug Something isn't working

Comments

@babyface001
Copy link
Contributor

Error: write EPIPE
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
[Error - 6:43:30 PM] Connection to server got closed. Server will not be restarted.

@kanej
Copy link
Member

kanej commented Nov 26, 2022

Hey @babyface001, can I ask what the steps where that lead up to this error.

Once the error happens, what functionality do you lose, do the warnings and errors disappear or is it all of the extensions functions (navigation, renames, quickfixes etc)?

@babyface001
Copy link
Contributor Author

Error: write EPIPE
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
[Trace - 6:59:20 PM] [core:23] Compiling: End (12192ms)
[Trace - 6:59:20 PM] [core:23] Error: Command failed: /Users/baby/Library/Caches/hardhat-nodejs/compilers/wasm/soljson-v0.8.17+commit.8df45f5f.js --standard-json
/bin/sh: /Users/baby/Library/Caches/hardhat-nodejs/compilers/wasm/soljson-v0.8.17+commit.8df45f5f.js: Permission denied

@babyface001
Copy link
Contributor Author

@kanej I open verbose log and it use js as cmd. and error.

@babyface001
Copy link
Contributor Author

compile in terminal is ok

@babyface001
Copy link
Contributor Author

image

@kanej
Copy link
Member

kanej commented Nov 26, 2022

And this happens when you open the project? Or when you run the build task?

@babyface001
Copy link
Contributor Author

after this, import auto complete is missing.

@babyface001
Copy link
Contributor Author

yes, open a sol file.

@babyface001
Copy link
Contributor Author

maybe it try to compile it.

@kanej
Copy link
Member

kanej commented Nov 26, 2022

Okay. This is a bug we will dig into.

I suspect the issue is that the vscode process doesn't have permission on the solc compiler downloaded by hardhat, and that exception kills the language server (so autocomplete and other features stop working.)

@kanej kanej added the type:bug Something isn't working label Nov 26, 2022
@kanej
Copy link
Member

kanej commented Nov 26, 2022

Are there any special file permissions, or anything around your user that would block permission on: /Users/baby/Library/Caches/hardhat-nodejs/compilers/wasm/soljson-v0.8.17+commit.8df45f5f.js?

@babyface001
Copy link
Contributor Author

I run chmod +x, but now work, it run js with /bin/sh, right?

@babyface001
Copy link
Contributor Author

[Trace - 7:45:40 PM] analyse
[Trace - 7:45:40 PM] [core:1] Building compilation (Hardhat - Cash.sol): Start
[Trace - 7:45:40 PM] [core:1] Building compilation (Hardhat - Cash.sol): End (33ms)
[Trace - 7:45:40 PM] [core:1] Compiling: Start
Error: write EPIPE
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:94:16)
[Trace - 7:45:41 PM] [core:1] Compiling: End (938ms)

@babyface001
Copy link
Contributor Author

analyse service

@babyface001
Copy link
Contributor Author

compile:solidity:solc:run or compile:solidity:solcjs:run should be detected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants