-
Notifications
You must be signed in to change notification settings - Fork 1.1k
ClassfileManager complains that a file does not exist #2673
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
Comments
I tried adding/removing spaces and commenting/uncommenting a subset of the code but couldn't get it to crash, do you have a series of step that reliably reproduces the problem for you? |
Unfortunately not, it happens sporadically during the edit/compile cycle. It just recurred on the larger project where this code comes from, and all occurrences were about a class whose name corresponds to a |
Next time it happens, could you zip the whole project, and upload that somewhere? |
It happened on the bigger project, ZIP file is here. |
Hmm, this is pretty annoying, I think sbt incremental compilation output is not platform-independent so when I try compiling your project in the zip it just recompiles everything. Ideally we would need a VM image here :). Anyway, for now let's see if we can at least rule some things out, we have a custom addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.1.0-RC5") instead of 0.1.1. Then just work as normal and see if the problem pops up again (if it does, please provide an updated stacktrace). |
@sjrd Either seen something like this with Scala.js use of ClassfileManager? Any clue what could be going wrong? |
Okay, will do.
|
@rkuhn Haha, I think I got it: sbt/sbt#1777 It seems the issue is that you're using a non-case-sensitive filesystem and have an object and a trait in the same package whose name only differ by case ( |
No, never seen anything like that. |
Ah, nice catch, yes that makes sense. (well, not really, not in 2017, but still) |
So, should the compiler emit an error in this case, or do users of broken filesystems get to keep the pieces? |
We have machinery that should have prevented overwriting files. See here: #313 (comment) |
Uh oh!
There was an error while loading. Please reload this page.
Using the lampepfl/dotty.g8 template with the following in Main.scala:
Running sbt shell and after a few
compile
runs while editing the following happens:The text was updated successfully, but these errors were encountered: