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.

buidler-gas-reporter table incomplete (using buidler node as server)

See original GitHub issue

Hi @cgewecke .

Yesterday, I wanted to configure buidler-gas-reporter for the first time.

The first gotcha for me was that I had to spin up npx buidler node in order for the buidler-gas-reporter overriden npx buidler test command to work and connect to the localhost network properly. When I naively tried running npx buidler test by itself I had gotten this error Error: connect ECONNREFUSED 127.0.0.1:8545.

However, once I ran the buidler node the test suite was run.

Now I am stuck with this incomplete test table however:

buidler-gas-reporter

Do you know what’s going on here and how I can fix it?

I can’t wait to use buidler-gas-reporter with codechecks in our CI.

Reproduce:

  • usePlugin("buidler-gas-reporter")
  • npx buidler node
  • npx buidler test

Environment:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cgeweckecommented, May 4, 2020

@gitpusha Yes,

In the gasReporter config options there is an enabled flag you can toggle on and off using environment variables.

(Not sure what developments there have been on the buidler side but when this module was written, it was not possible for a “overriding” plugin to add its own command line options. That would be ideal.)

1reaction
gitpushacommented, May 4, 2020

@cgewecke

  • npx buidler node -npx buidler test --network localhost

works! I get a neat gas report. Thank you!

I just also ran a my coverage with 0.7.5 and the buidler-gas-reporter plugin enabled, and saw that no report was produced for the coverage run, which is what I want anyway, so all good.

I can close this issue. Thanks for helping out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node console.log on large array shows "... 86 more items"
I was able to port my applications to puppeteer just fine but ran into the problem that when I want to capture data...
Read more >
Node.js v19.3.0 Documentation
An example of a web server written with Node.js which responds with 'Hello, World!' : Commands in this document start with $ or...
Read more >
Use Azure Pipelines to build and publish a Node.js package
This quickstart walks through how to use a pipeline to create a Node.js package with Node Package Manager (npm) and publish a pipeline ......
Read more >
Troubleshooting Node.js Deploys - Heroku Dev Center
Your Node.js deploy failed - now what? Start with these simple steps to troubleshoot a build issue. Check the buildpack.
Read more >
ts-node - npm
TypeScript execution environment and REPL for node.js, with source map ... Start using ts-node in your project by running `npm i ts-node`.
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