trufflesuite / truffle

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_
MIT License
14.02k stars 2.32k forks source link

truffle develop no console output at all #3136

Open fudingyu opened 4 years ago

fudingyu commented 4 years ago

Issue

truffle develop hangs here.. no console output at all. Is that normal? how long should I wait?

I seen several guys have same problem,someone said in node v13 though.

Environment

CruzMolina commented 4 years ago

Hey @fudingyu !

This is related to https://github.com/trufflesuite/truffle/issues/3123.

Specifically:

This is an issue related to ganache-core's internals not yet being Node 14 compatible (trufflesuite/ganache-cli#732).

It's a bit of an inconvenience but I've had some luck being able to still run ganache-cli in a separate terminal and running truffle tests against them on node 14.4.0. YMMV. For now, we're recommending users drop back down to Node 12.

cmeyke commented 4 years ago

Same problem here, dropping to Node 12 or 10: same outcome: truffle develop hangs, no output. Everything else seems to work fine. OS: Archlinux Truffle v5.1.32 (core: 5.1.32) Solidity v0.5.16 (solc-js) Node v12.18.2 Web3.js v1.2.1

zexxlin commented 4 years ago

Same problem here, dropping to Node 12 or 10: same outcome: truffle develop hangs, no output. Everything else seems to work fine. OS: Archlinux Truffle v5.1.32 (core: 5.1.32) Solidity v0.5.16 (solc-js) Node v12.18.2 Web3.js v1.2.1

Same here on Arch Linux. After downgrading to v12.18.2, truffle test works fine while truffle develop still hangs without outputs.

Truffle v5.1.35 (core: 5.1.35) Solidity - 0.4.24 (solc-js) Node v12.18.2 Web3.js v1.2.1

CruzMolina commented 4 years ago

Thanks for sharing that @zexxlin & @privatier , I suspect this suggests something about ganache-core's internals aren't Arch Linux friendly 🤔 .

zexxlin commented 4 years ago

Thank you for the feedback @CruzMolina . But ganache-cli works fine on my host, doubt it may be truffle related issue?

CruzMolina commented 4 years ago

@zexxlin are you using Dockerized ganache-cli or the npm pkg directly?

truffle develop attempts to spin up ganache-core in the background, so truffle develop hanging and truffle test working seems to suggest this is an issue with ganache-core and Arch Linux.

zexxlin commented 4 years ago

@CruzMolina I'm running ganache-cli installed as a npm pkg directly on my Arch Linux host, and it works fine. Considering ganache-cli utilizes ganache-core internally as well, something may go wrong with truffle develop.

CruzMolina commented 4 years ago

Ah, thanks for sharing that @zexxlin. Unfortunately, debugging truffle develop issues are notoriously difficult. I wonder if something in chain.js is acting up on Arch (chain.js is the file truffle invokes to spin up ganache-core as a child process).

ferencdg commented 3 years ago

had the same freezing problem with truffle develop, so just started up ganache-cli manually, and I got an error msg that the 8545 port is used by some other app (turned out I had parity running on the same port)

I think truffle should at least print out the same 'port is used' error msg

nslee333 commented 2 years ago

Hey guys, Has anyone made any progress on this issue?