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

Mill after 0.1.7-8-b913c6 cannot build itself properly #268

Closed
robby-phd opened this issue Mar 30, 2018 · 8 comments
Closed

Mill after 0.1.7-8-b913c6 cannot build itself properly #268

robby-phd opened this issue Mar 30, 2018 · 8 comments
Labels
solved The issue was fixed/resolved
Milestone

Comments

@robby-phd
Copy link
Collaborator

robby-phd commented Mar 30, 2018

Stumbled upon this when working on #262 so documenting it as an issue: changes between 0.1.7-8-b913c6 and 0.1.7-19-680364 cause mill not to be able to build itself properly; the resulting mill gives the following error trace when compiling itself:

mill.scalalib.ScalaWorkerModule.worker java.lang.NoClassDefFoundError: sbt/internal/inc/CompileFailed
    java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
    java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3110)
    java.base/java.lang.Class.getConstructor0(Class.java:3315)
    java.base/java.lang.Class.getConstructor(Class.java:2108)
    mill.scalalib.ScalaWorkerModule.$anonfun$worker$2(ScalaWorkerApi.scala:43)

See the following appveyor and travis runs.

@robby-phd
Copy link
Collaborator Author

robby-phd commented Mar 31, 2018

@lihaoyi and @shengc, seems like #254's a4713c3 is the culprit.

I made test-mill-release.sh to build mill release 2 times recursively (instead of only 1 time) before running the test, resulting in the above error during compilation (see travis # 897); after reverting a4713c3, the build no longer has the issue (see travis # 898; compilation passed but tests still failed; sometimes I got those errors on my local machine, no idea why, but that is not the focus here).

@lihaoyi
Copy link
Member

lihaoyi commented Apr 2, 2018

@robby-phd feel free to revert it if that fixes bootstrapping

lihaoyi added a commit that referenced this issue Apr 2, 2018
lihaoyi added a commit that referenced this issue Apr 2, 2018
@lihaoyi
Copy link
Member

lihaoyi commented Apr 2, 2018

@robby-phd #254 has been reverted

@lihaoyi
Copy link
Member

lihaoyi commented Apr 2, 2018

@robby-phd
Copy link
Collaborator Author

I added a ci bootstrapping test in f972d71 to help avoid against this kind of issues in the future, e.g., if @shengc (or someone else) wants to revive #254.

@shengc
Copy link
Contributor

shengc commented Apr 2, 2018

@lihaoyi is this more of a revelation of a problem ... ? if dependencies carried for mill build does not have any "exclusion" sort of logic, a4713c3 should have no effect.

@robby-phd
Copy link
Collaborator Author

@shengc It is a possibility; I'm not familiar with that part of mill codebase so @lihaoyi can comment on this more authoritatively. If it is indeed there is an underlying issue, #254 can be revived once that issue is fixed. (I'm actually using the exclusion feature in some of my projects, which is handy.) For now, I think mill should always be able to bootstrap itself so we have some confidence when making changes and accepting pull requests.

shengc pushed a commit to shengc/mill that referenced this issue Apr 2, 2018
shengc pushed a commit to shengc/mill that referenced this issue Apr 2, 2018
@shengc
Copy link
Contributor

shengc commented Apr 2, 2018

@robby-phd I have found the problem and opened PR #274

shengc pushed a commit to shengc/mill that referenced this issue Apr 2, 2018
rockjam pushed a commit that referenced this issue Apr 2, 2018
robby-phd added a commit that referenced this issue Apr 7, 2018
* fix build

* Detect sh/batch launcher, dev.assembly, and release filename.

* Updated appveyor cache.

* Added some entries for master in readme.md changelog.

* Updated readme.md changelog.

* fixes #173; use default(compile) configuration for deps as default (#270)

* revert #254 to fix bootstrapping #268

* Updated ci tests.

* Reverted Ammonite caching workaround (a796f0a) now that it's fixed

* Changed ci/test-mill-0.sh to use interactive mode due to intermittent client failures to connect to server in travis

* Added ci/test-mill-bootstrap.sh (ci/test-mill-0.sh with bootstrapping) and use it on oraclejdk9 instead of ci/test-mill-0.sh

* Upgraded mill used for ci to 0.1.7-29-f5097f

* revive #254 and fix #268 (#274)

* Test mill batch (.bat) in AppVeyor

* fix minor typos in docs

* Sync Ammonite in ScalaModule (with build.sc).
@lefou lefou added this to the 0.2.0 milestone May 6, 2019
@lefou lefou added the solved The issue was fixed/resolved label Jul 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved The issue was fixed/resolved
Projects
None yet
Development

No branches or pull requests

4 participants