Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Compile Error does not give the contract origin. #2086

Closed
crazyrabbitLTC opened this issue Jun 7, 2019 · 2 comments
Closed

Compile Error does not give the contract origin. #2086

crazyrabbitLTC opened this issue Jun 7, 2019 · 2 comments

Comments

@crazyrabbitLTC
Copy link

  • [ no ] I've asked for help in the Truffle Gitter before filing this issue.

Issue

When you have a compile error, it does not tell you the origin contract:

Error: CompileError: **ParsedContract.sol**:62:61: ParserError: Expected string end-quote.
        require(agentMapping[_agentId].agent == msg.sender, "Only Agent can update Designation);

ParsedContract.sol does not refer to the actual contracts filename.

Steps to Reproduce

Create a simple typo, such as forgetting an end-quote on a string and compile. The error will not tell you the origin file where the type occured.

Expected Behavior

What you expected to happen.

I expected that instead of seeing ParsedContract.sol the file name would reflect the origin file of the typo error.

Actual Results

What actually happened. Please give examples and support it with screenshots, copied output or error messages.

Error: CompileError: ParsedContract.sol:62:61: ParserError: Expected string end-quote.
        require(agentMapping[_agentId].agent == msg.sender, "Only Agent can update Designation);

Environment

  • Operating System: OSX/NODE
    Truffle v5.0.20 (core: 5.0.20)
    Solidity v0.5.0 (solc-js)
    Node v10.16.0
    Web3.js v1.0.0-beta.37
@CruzMolina
Copy link
Contributor

Good find @crazyrabbitLTC ! Working on fixing this as part of #2067

@eggplantzzz
Copy link
Contributor

I believe this has been fixed. Let me know if I'm wrong and we need to re-open!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants