Deleting a project and then creating a new project with the same name brings the ScalaBuilder in an inconsistent state
Migrated from http://lampsvn.epfl.ch/trac/scala/ticket/2879
Reporter spiros
Steps to reproduce the bug:
Tested with Eclipse 3.5.1 and SDT r20423.
Reporter spiros
Steps to reproduce the bug:
- Create a Scala project named zbuilder
- Create a Scala class named Test
- Delete the project selecting the "Delete project contents on disk" checkbox.
- Create a new project with the same name (zbuilder)
- Create a new Scala class (HelloBuilder), edit it and save the file to compile
eclipse.buildId=M20090917-0800
java.version=1.6.0_15
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product
Warning
Sat Jan 09 09:55:31 EET 2010
Errors running builder 'Scala Builder' on project 'zbuilder'.
org.eclipse.core.internal.resources.ResourceException: Resource '/zbuilder/src/Test.scala' does not exist.
at org.eclipse.core.internal.resources.Resource.checkExists(Resource.java:319)
at org.eclipse.core.internal.resources.Resource.checkAccessible(Resource.java:196)
at org.eclipse.core.internal.resources.File.getContents(File.java:286)
at org.eclipse.core.internal.resources.File.getContents(File.java:277)
at scala.tools.eclipse.util.EclipseFile.input(EclipseFile.scala:84)
at scala.tools.nsc.io.AbstractFile.toByteArray(AbstractFile.scala:146)
at scala.tools.nsc.io.SourceReader.read(SourceReader.scala:71)
at scala.tools.nsc.Global.getSourceFile(Global.scala:231)
at scala.tools.nsc.Global$Run$$anonfun$compileFiles$1.apply(Global.scala:820)
at scala.tools.nsc.Global$Run$$anonfun$compileFiles$1.apply(Global.scala:820)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:238)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:238)
at scala.collection.LinearSeqLike$class.foreach(LinearSeqLike.scala:97)
at scala.collection.immutable.List.foreach(List.scala:46)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:238)
at scala.collection.immutable.List.map(List.scala:46)
at scala.tools.nsc.Global$Run.compileFiles(Global.scala:820)
at scala.tools.nsc.interactive.RefinedBuildManager.update0$1(RefinedBuildManager.scala:108)
at scala.tools.nsc.interactive.RefinedBuildManager.update(RefinedBuildManager.scala:158)
at scala.tools.nsc.interactive.RefinedBuildManager.update(RefinedBuildManager.scala:83)
at scala.tools.eclipse.EclipseBuildManager.build(EclipseBuildManager.scala:120)
at scala.tools.eclipse.ScalaProject.build(ScalaProject.scala:396)
at scala.tools.eclipse.ScalaBuilder.build(ScalaBuilder.scala:87)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:627)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:170)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:201)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:253)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:256)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:309)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:341)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:140)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:238)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
See also #2878.Tested with Eclipse 3.5.1 and SDT r20423.
Leave a comment
Updating tickets (#1000069, #1000195, #1000213, #1000223, #1000006, #1000021, #1000038, #1000048, #1000051, #1000052, #1000075, #1000103, #1000109, #1000115, #1000119, #1000156, #1000186, #1000207, #1000238, #1000262, #1000263, #380, #389, #683, #1238, #1331, #1635, #1645, #1715, #1729, #1744, #1783, #1839, #1869, #1885, #1890, #1902, #1918, #1919, #1924, #1925, #1946, #1964, #1991, #2131, #2233, #2342, #2348, #2408, #2459, #2499, #2523, #2572, #2582, #2602, #2614, #2615, #2675, #2710, #2745, #2763, #2816, #2830, #2834, #2878, #2879, #2887, #2888, #2901, #2911, #2912, #2922, #2937, #2938, #2942, #2951, #2955, #2957, #2961, #2964, #2965, #2974, #2975, #2989, #2990, #3002, #3055, #3070, #3087, #3135, #3139, #3173, #3182, #3184, #3200, #3213, #3214, #3221, #3243, #3251)
Closing as invalid.
It looks the same problem as #2878
I cannot reproduce the problem on both 2.0.0-2.9 and master-2.10. This has likely been fixed during 2.0 development.
Please reopen with additional information if you still see the problem.
It looks the same problem as #2878
I cannot reproduce the problem on both 2.0.0-2.9 and master-2.10. This has likely been fixed during 2.0 development.
Please reopen with additional information if you still see the problem.