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

AssertionError on filesystem state (package dir is not a dir) #5717

Closed
scabug opened this issue Apr 28, 2012 · 4 comments
Closed

AssertionError on filesystem state (package dir is not a dir) #5717

scabug opened this issue Apr 28, 2012 · 4 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Apr 28, 2012

A regular file named "a" conflicted with a package name "a". Not a common coincidence, unless maybe you're a learner trying things out with scalac. The helpful message without the scary verbose stack traces, and two of them, would be nice; in this case, an assert might be too strong to test isDir.

error:
while compiling: b.scala
current phase: jvm
library version: version 2.10.0-20120426-153557-2a9cce8a68
compiler version: version 2.10.0-20120426-153557-2a9cce8a68
reconstructed args:

uncaught exception during compilation: java.lang.AssertionError
error: java.lang.AssertionError: assertion failed: Tried to find 'Test.class' in '.\a' but it is not a directory
at scala.Predef$.assert(Predef.scala:182)
at scala.tools.nsc.io.AbstractFile.fileNamed(AbstractFile.scala:238)
at scala.tools.nsc.backend.jvm.BytecodeWriters$class.getFile(BytecodeWriters.scala:35)
at scala.tools.nsc.backend.jvm.BytecodeWriters$class.scala$tools$nsc$backend$jvm$BytecodeWriters$$getFile(BytecodeWriters.scala:38)
at scala.tools.nsc.backend.jvm.BytecodeWriters$ClassBytecodeWriter$class.writeClass(BytecodeWriters.scala:90)
at scala.tools.nsc.backend.jvm.GenJVM$JvmPhase$$anon$3.writeClass(GenJVM.scala:158)
at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.emitClass(GenJVM.scala:348)
at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.generateMirrorClass(GenJVM.scala:1166)
at scala.tools.nsc.backend.jvm.GenJVM$BytecodeGenerator.genClass(GenJVM.scala:442)
at scala.tools.nsc.backend.jvm.GenJVM$JvmPhase$$anonfun$run$2.apply(GenJVM.scala:169)
at scala.tools.nsc.backend.jvm.GenJVM$JvmPhase$$anonfun$run$2.apply(GenJVM.scala:168)
at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
at scala.collection.immutable.List.foreach(List.scala:77)
at scala.tools.nsc.backend.jvm.GenJVM$JvmPhase.run(GenJVM.scala:168)
at scala.tools.nsc.Global$Run.compileUnitsInternal(Global.scala:1336)
at scala.tools.nsc.Global$Run.compileUnits(Global.scala:1309)
at scala.tools.nsc.Global$Run.compileSources(Global.scala:1303)
at scala.tools.nsc.Global$Run.compile(Global.scala:1436)
at scala.tools.nsc.Driver.doCompile(Driver.scala:31)
at scala.tools.nsc.Main$.doCompile(Main.scala:81)
at scala.tools.nsc.Driver.process(Driver.scala:52)
at scala.tools.nsc.Driver.main(Driver.scala:65)
at scala.tools.nsc.Main.main(Main.scala)

@scabug
Copy link
Author

scabug commented Apr 28, 2012

Imported From: https://issues.scala-lang.org/browse/SI-5717?orig=1
Reporter: @som-snytt
Affected Versions: 2.10.0

@scabug
Copy link
Author

scabug commented Dec 11, 2012

@paulp said:
scala/scala#1746

@scabug
Copy link
Author

scabug commented Mar 15, 2013

@adriaanm said:
Un-assigning to foster work stealing, as announced in https://groups.google.com/forum/?fromgroups=#!topic/scala-internals/o8WG4plpNkw

@scabug
Copy link
Author

scabug commented Mar 15, 2013

@som-snytt said:
scala/scala#2260

Yes, I stole paulp's work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants