question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ganache stuck at adding Truffle project

See original GitHub issue

I just came back to Ethereum development. Upgraded my Ganache and found out theres a new feature to add Truffle projects to the Workspace.

Decided to use it. I add the project which truffle.js and truffle-config.js are the same:

module.exports = {
  // See <http://truffleframework.com/docs/advanced/configuration>
  // to customize your Truffle configuration!
  networks: { 
    development: { 
      host: "127.0.0.1", 
      port: 7545, 
      network_id: "*" // Match any network id 
    } 
  } 
};

Then, I save&restart… gets stuck at action SETTINGS/SET_SETTINGS.

Expected Behavior

Normal loading of Ganache.

Current Behavior

Stuck at loading after restart.

Context

  • Windows 10.
  • Ganache 2.0.1.

This DOES NOT happen in Ubuntu.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pedroduartecostacommented, May 20, 2019

For anyone who may run into this in the future. My problem was that I was loading a truffle.js config file and it was getting stuck on the loading screen.

Running npm install inside my project folder, where the truffle.js file is, fixed the problem.

0reactions
FabioBonfigliocommented, Jul 8, 2020

@FabioBonfiglio how many contracts do you have?

One main contract inheriting an interface, and 6 dependencies. Here is the exact structure of my ./contracts folder:

.
+-- contracts
    +-- lib
    |   +-- Owned.sol
    |   +-- Data.sol
    |   +-- Roles.sol
    |   +-- Upgradeable.sol
    |   +-- FeatureA.sol
    |   +-- FeatureB.sol
    +-- Migrations.sol
    +-- InterfaceContract.sol
    +-- MainContract.sol

Have you run npm install in the truffle project?

Yes. Unfortunately without any improvement.
Also tried npm rebuild

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ganache (from Truffle) hangs when started - Stack Overflow
1-x86_64.AppImage" that I downloaded from GitHub, Ganache just hangs showing the following screen with no more actions. Ganache Hangs at Start.
Read more >
Truffle migrate hangs when I run ganache with the --db flag
and I run "truffle migrate" in my project directory then it hangs for a while and produces the following output:
Read more >
Ganache freezes at eth_estimateGas during delegatecalls #985
Solution Run contract calls with an explicit gasLimit async () { await contract.functionWithDelegateCall( args, { gasLimit: 4000000 } ...
Read more >
Truffle/Ganache : Transactions stucked forever : r/ethdev
I'm using Ganache through Truffle this way : truffle develop (where my project is). migrate --reset. My contracts are deployed, ...
Read more >
Ganache settings - Truffle Suite
Ethereum¶. Workspace sets the workspace name and shows the currently linked Truffle projects. See our more detailed docs on creating and deleting workspaces...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found