-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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
common/compiler: fix #1598, expose solidity errors #1717
Conversation
@zelig PTAL |
} | ||
|
||
contracts = make(map[string]*Contract) | ||
// Complilation succeeded, assemble and return the contracts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Compilation succeeded, assemble and return the contracts.
Sentences. End. With. Period.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I always use full sentences as variable, fumction, etc declarations. Within
the code, I never add the dots. It's a personal style :D
On Aug 25, 2015 10:55 PM, "Felix Lange" notifications@github.com wrote:
In common/compiler/solidity.go
#1717 (comment):}
- contracts = make(map[string]*Contract)
- // Complilation succeeded, assemble and return the contracts
// Compilation succeeded, assemble and return the contracts.
Sentences. End. With. Period.
—
Reply to this email directly or view it on GitHub
https://github.com/ethereum/go-ethereum/pull/1717/files#r37911317.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo Complilation -> Compilation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw, if you look through the Go stdlib, they follow the same pattern (e.g. https://golang.org/src/math/sin.go?s=3697:3724#L191). All longer descriptions in front og public entities are full sentences, but internal "notes" are without a dot, so I'd like to keep to this.
Also it's a bit cleaner to me without a dot. The dot doesn't add any value to a few word comment, but both makes it longer as well as (for me) draws attention as a syntax element :P
0d1b416
to
101418b
Compare
The solc error doesn't seem to be parsed and displayed in the console.
It don't think it's related to this PR and might have something to do with #1709. I'm investigating this. |
@bas-vk Maybe these are separate issues. Running the embark framework on your invalid "file" results in:
|
There is a bug in the console error handling/parsing. When an error contains specific characters the For this PR 👍 |
👍 |
common/compiler: fix #1598, expose solidity errors
👍 perfetto maestro |
This PR cleans up a bit the solidity compilation code + exposes the stderr stream of the solc compiler in case of a build error.