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.

Comment immediately following function's opening brace breaks instrumentation

See original GitHub issue

Hi,

using solidity-coverage 0.2.11 I get the following error on my contract:

/home/jerome/src/eth/contracts/coverageEnv/contracts/HeroCoin.sol:449:24: ParserError: Expected primary expression.
    returns (uint256) {/__FunctionCoverageHeroCoin('/home/jerome/src/eth/contracts/contracts/HeroCoin.sol',23);
                       ^
Compiliation failed. See above.
Cleaning up...

        There was an error generating coverage. Possible reasons include:
        1. Another application is using port 8555
        2. Truffle crashed because your tests errored

      Error: ENOENT: no such file or directory, open './allFiredEvents'
Exiting without generating coverage...

My truffle unit tests compile and pass.

Environment: solcover 0.2.1 solc 0.4.11 ethereumjs-testrpc 4.0.1 truffle 3.4.5

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
areacommented, Aug 9, 2017

Reopening issue because the interaction with comments is a legitimate bug for us to fix.

0reactions
jeromerousselotcommented, Aug 9, 2017

I agree, ultimately I think it is a package management issue. I have a globally installed truffle using globally installed solc 0.4.11 which compiles my contracts. Locally I have another truffle and solidity-coverage. When running solidity-coverage I believe it uses solc 0.4.13. I’ll try again when truffle uses latest solc. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

2.1 Static Methods - Introduction to Programming in Java
2.1 Static Methods. The Java construct for implementing functions is known as the static method. Using and defining static methods.
Read more >
An Introduction to R - The Comprehensive R Archive Network
Elementary commands can be grouped together into one compound expression by braces (' { ' and ' } '). Comments can be put...
Read more >
Introduction to Programming with Python and EarSketch
Compose a song that is centered around a multi-instrument beat that you create with the makebeat() function. Use the following functions and concepts:...
Read more >
Hoisting & Rigging Fundamentals
Metal mesh slings should be inspected for the following deficiencies: I) Broken welds or broken brazed joints along the sling edge. 2) Broken...
Read more >
Standard Precautions - CDC
After barehanded touching of instruments, equipment, materials, and other objects likely to be contaminated by blood, saliva, or respiratory secretions. c.
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