Skip to content
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

enumeration error on second compile #3817

Closed
scabug opened this issue Sep 1, 2010 · 2 comments
Closed

enumeration error on second compile #3817

scabug opened this issue Sep 1, 2010 · 2 comments

Comments

@scabug
Copy link

scabug commented Sep 1, 2010

Compiling from a clean build produces the expected java class files that run as expected. However, after doing a recompile (even immediately after), the compiler will complain about an enumeration not being part of the a given package though no files have changed.

/home/stratton/josh_projects/potassium/src/com/googlecode/copper/select/Select.scala:8:
error: PolygonMode is not a member of com.googlecode.copper.core
  [scalac] import com.googlecode.copper.core.PolygonMode

The workaround is to rebuild the project from a clean state continuously, but this is much slower than rebuilding only the required classes. It's either a compiler bug in scala itself, or something related to the ant wrapper.

To reproduce:
1) svn checkout http://potassium.googlecode.com/svn/trunk/ potassium-read-only
2) Change the compiler task from 'fsc' to 'scalac'
3) Run 'ant compile' (should run normally)
4) Rerun 'ant compile' (should complain about missing classes)
@scabug
Copy link
Author

scabug commented Sep 1, 2010

Imported From: https://issues.scala-lang.org/browse/SI-3817?orig=1
Reporter: Josh (strattonbrazil)

@scabug
Copy link
Author

scabug commented Sep 7, 2010

@TiarkRompf said:
does this happen only when using ant or also if you compile the sources with the scalac command-line program?

@scabug scabug closed this as completed May 18, 2011
@scabug scabug added the needinfo label Apr 7, 2017
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

No branches or pull requests

1 participant