-
Notifications
You must be signed in to change notification settings - Fork 277
Unhandled Promise Rejection in v0.7.20 #696
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
Comments
Ah! Could you try installing [email protected] and then in
solidity-coverage is not working correctly with ganache v7 (see #694) which is now default in Truffle >= 5.4.30. As discussed in the issue you opened last week, I've made ganache-cli something the user has to have as an explicit dependency in their own project (rather than something they're incidentally getting from the plugin). Apologies, I didn't think this would be a breaking change. |
NP, your quick response is well appreciated :)
|
@barakman Could you double-check that This error:
... is what I'd expect if it was missing from the outermost layer of your node_modules. |
Oh, it most certainly isn't.
I would highly prefer to keep it this way, in order to avoid "version collisions" around that area. |
@barakman This isn't optional for moment because solidity-coverage has stopped working with the latest version of Truffle. Your near-term choices are:
|
So if I wish to avoid adding a Ganache dependency in my project, my options are:
Got it. Thank you very much for your support, I appreciate it! |
I have the same issue with version 0.7.20...but if I run "truffle run coverage" from powershell terminal (windows) it works!. Instead if I run it from wsl (linux) I get the error. Just to add more info. |
Resolved in 0.8.1. Thank you! |
How can this be resolved in 0.8.1 when that version apparently doesn't support truffle at all any more? |
@KaiRo-at - well, TBH, I moved to "Truffle-based" Hardhat configuration:
So that might be the reason why I've considered it resolved in solidity-coverage 0.8.1. |
This updates the package.json file to use explicit versions (not the latest as well) of truffle and solidity-coverage. This is necessary to make the coverage work. For more context, see the discussion here: sc-forks/solidity-coverage#696
This updates the package.json file to use explicit versions (not the latest as well) of truffle and solidity-coverage. This is necessary to make the coverage work. For more context, see the discussion here: sc-forks/solidity-coverage#696
This is ganache related, closing. |
Using:
Executing
truffle run coverage
results with:This problem does not occur when using:
The text was updated successfully, but these errors were encountered: