Skip to content

Add CompilerStack state assertions to internal methods #4693

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

Merged
merged 3 commits into from
Nov 14, 2018
Merged

Conversation

axic
Copy link
Member

@axic axic commented Aug 6, 2018

No description provided.

chriseth
chriseth previously approved these changes Aug 6, 2018
@axic
Copy link
Member Author

axic commented Aug 6, 2018

Please double check the actual assertion values.

@codecov
Copy link

codecov bot commented Aug 6, 2018

Codecov Report

❗ No coverage uploaded for pull request base (develop@b7a23ee). Click here to learn what that means.
The diff coverage is 17.64%.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop    #4693   +/-   ##
==========================================
  Coverage           ?   28.77%           
==========================================
  Files              ?      314           
  Lines              ?    31610           
  Branches           ?     3748           
==========================================
  Hits               ?     9097           
  Misses             ?    21837           
  Partials           ?      676
Flag Coverage Δ
#syntax 28.77% <17.64%> (?)

@chriseth
Copy link
Contributor

chriseth commented Aug 6, 2018

I'm sorry, but I don't want to review this any further before 0.5.0 release.

@axic
Copy link
Member Author

axic commented Sep 26, 2018

Rebased and fixed the issue noted. I think this should be safe to merge and would prefer merging it now to give us the 2 weeks time to test it.

chriseth
chriseth previously approved these changes Sep 26, 2018
@chriseth
Copy link
Contributor

Tests fail.

@axic
Copy link
Member Author

axic commented Sep 26, 2018

Nvm, it seems in the past month something broke:

Compiling ./contracts/token/ERC827/ERC827Token.sol...

InternalCompilerError:
Compilation failed. See above.

Will investigate.

@axic
Copy link
Member Author

axic commented Sep 26, 2018

It is actually the link method, seemingly it is called even when without compile.

UNCAUGHT EXCEPTION:
- function: "void dev::solidity::CompilerStack::link()"

@axic
Copy link
Member Author

axic commented Nov 13, 2018

@chriseth I think it is time to revisit this :)

m_stackState = CompilationSuccessful;
this->link();
return true;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chriseth do we want to introduce a LinkingSuccessful state?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if that makes sense. An object can have unresolved link symbols and calling link does not have to resolve all of them. So in that sense, linking is always successful.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, so lets merge this.

@chriseth chriseth merged commit b0a2e41 into develop Nov 14, 2018
@axic axic deleted the compilerstack branch November 14, 2018 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants