Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343633 - XtendBuilderParticipant tries to compile archived xtend file
Summary: XtendBuilderParticipant tries to compile archived xtend file
Status: CLOSED FIXED
Alias: None
Product: Xtend
Classification: Tools
Component: Core (show other bugs)
Version: 2.2.0   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-22 01:30 EDT by Karsten Thoms CLA
Modified: 2017-10-31 11:24 EDT (History)
2 users (show)

See Also:
sven.efftinge: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karsten Thoms CLA 2011-04-22 01:30:41 EDT
I have an Eclipse 3.7 M6 with Xtext nightly (2011-04-18) installed and running a runtime instance, where I develop Xtext 2 projects. I just experienced the following stacktrace on the console. Seems that the builder tries to compile archived xtend files. Could it be assumed that they are already compiled to Java?


!ENTRY org.apache.log4j 4 0 2011-04-21 22:22:46.729
!MESSAGE org.eclipse.xtext.xtend2.ui.builder.Xtend2BuilderParticipant  - Error compiling archive:file:/Users/thoms/Development/Eclipse/eclipse-SDK-3.7M6/plugins/org.eclipse.xtext.generator_2.0.0.v201104180904.jar!/org/eclipse/xtext/generator/grammarAccess/GrammarAccess.xtend

96419 [Worker-6] ERROR org.eclipse.xtext.xtend2.ui.builder.Xtend2BuilderParticipant  - Error compiling archive:file:/Users/thoms/Development/Eclipse/eclipse-SDK-3.7M6/plugins/org.eclipse.xtext.generator_2.0.0.v201104180904.jar!/org/eclipse/xtext/generator/serializer/SerializerFragment.xtend
java.lang.IllegalArgumentException: Source file must reside in the workspace
	at org.eclipse.xtext.xtend2.ui.builder.CompilationFileProvider.getFile(CompilationFileProvider.java:46)
	at org.eclipse.xtext.xtend2.ui.builder.Xtend2BuilderParticipant.processDelta(Xtend2BuilderParticipant.java:94)
	at org.eclipse.xtext.xtend2.ui.builder.Xtend2BuilderParticipant.build(Xtend2BuilderParticipant.java:75)
	at org.eclipse.xtext.builder.impl.RegistryBuilderParticipant.build(RegistryBuilderParticipant.java:60)
	at org.eclipse.xtext.builder.impl.XtextBuilder.doBuild(XtextBuilder.java:160)
	at org.eclipse.xtext.builder.impl.XtextBuilder.fullBuild(XtextBuilder.java:182)
	at org.eclipse.xtext.builder.impl.XtextBuilder.build(XtextBuilder.java:85)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:717)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:191)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:310)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:385)
	at org.eclipse.core.internal.resources.Project$1.run(Project.java:618)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2310)
	at org.eclipse.core.internal.resources.Project.internalBuild(Project.java:597)
	at org.eclipse.core.internal.resources.Project.build(Project.java:124)
	at org.eclipse.xtext.builder.impl.BuildScheduler$BuildJob.run(BuildScheduler.java:101)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Sven Efftinge CLA 2012-04-11 08:30:47 EDT
I can't reproduce this with the current code base. Seems to be solved. Please reopen if not.
Comment 2 Eclipse Webmaster CLA 2017-10-31 11:24:44 EDT
Requested via bug 522520.

-M.