ethereum / remix-project

Remix is a browser-based compiler and IDE that enables users to build Ethereum contracts with Solidity language and to debug transactions.
https://remix-ide.readthedocs.io
MIT License
2.36k stars 888 forks source link

remixd 0.6.7+ auto-exits after connection #3217

Closed CherryDT closed 1 year ago

CherryDT commented 1 year ago

I am currently encountering a problem with 0.6.7 and 0.6.8 of remixd. When I connect the Remix IDE, after the file listing was loaded, remixd simply exits, with exit code 0 and no error.

Using NODE_DEBUG=* shows this at the end:

NET 23897: _read
STREAM 23897: readableAddChunk <Buffer 81 fe 00 9a 1a f0 70 f1 61 d2 19 95 38 ca 42 c4 22 c1 5c d3 7b 93 04 98 75 9e 52 cb 38 82 15 80 6f 95 03 85 38 dc 52 9a 7f 89 52 cb 38 99 03 b5 73 82 ... 112 more bytes>
STREAM 23897: maybeReadMore read 0
STREAM 23897: read 0
STREAM 23897: need readable true
STREAM 23897: length less than watermark true
STREAM 23897: do read
NET 23897: _read
TIMER 23897: process timer lists 17583
TIMER 23897: timeout callback 1000
TIMER 23897: 1000 list empty
NET 23897: destroy
NET 23897: close
NET 23897: close handle
NET 23897: has server
NET 23897: SERVER _emitCloseIfDrained
NET 23897: SERVER handle? true   connections? 0
NET 23897: destroy
NET 23897: close
NET 23897: close handle
NET 23897: has server
NET 23897: SERVER _emitCloseIfDrained
NET 23897: SERVER handle? true   connections? 0
NET 23897: destroy
NET 23897: close
NET 23897: close handle
NET 23897: has server
NET 23897: SERVER _emitCloseIfDrained
NET 23897: SERVER handle? true   connections? 0

There is no further indication of what's happening.

My environment is: Node v16.10.0 on Ubuntu 20.04.2 LTS on WSL1 on Windows 10

This was not a problem in 0.6.6.

yann300 commented 1 year ago

this could be an issue during the remixd update.... could you try removing remixd (using npm, and also to manually remove all remaining folders involving remixd codebase), and reinstall it. Thanks

CherryDT commented 1 year ago

I deleted the whole node_modules folder and reinstalled (with latest remixd 0.6.9) and the issue is still happening.

Aniket-Engg commented 1 year ago

@CherryDT Can you check if it is fixed with remixd v0.6.10 ?

CherryDT commented 1 year ago

Yes it is! After looking into the change in your commit and the new log message, I understand that it was caused by having Hardhat installed without actually using it. (I hadn't realized that Hardhat was no longer in use after removing default unit tests from the repo I forked this from, I thought it was part of the compilation process - I'm new to this^^)