Comment immediately following function's opening brace breaks instrumentation
See original GitHub issueHi,
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:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Reopening issue because the interaction with comments is a legitimate bug for us to fix.
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!