Bug 490190 - [IDEA 2016.1] java.io.IOException Error during auto build
Summary: [IDEA 2016.1] java.io.IOException Error during auto build
Status: NEW
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-22 11:40 EDT by Alexander Ivanov CLA
Modified: 2017-08-23 12:48 EDT (History)
4 users (show)

See Also:


Attachments
IDEA Exception window screenshot (45.55 KB, image/png)
2016-03-22 11:40 EDT, Alexander Ivanov CLA
no flags Details
Empty project with errors (52.24 KB, image/png)
2016-06-22 09:06 EDT, Evgeny Voynov CLA
no flags Details
Installed plugins (all of them is v2.10.0) (49.79 KB, image/png)
2016-06-22 09:07 EDT, Evgeny Voynov CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Ivanov CLA 2016-03-22 11:40:51 EDT
Created attachment 260488 [details]
IDEA Exception window screenshot

Try Xtend hello world application. 

package jar
class HelloXtend {
	def static void main(String[] args) {
		println('Hello Xtend!')
	}
}

Get exception in plugin Xtext IDEA Core:

Error during auto build.: java.io.IOException: Invalid file name: ':'
java.lang.RuntimeException: java.io.IOException: Invalid file name: ':'
	at com.intellij.openapi.application.impl.LaterInvocator.invokeAndWait(LaterInvocator.java:179)
	at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:731)
	at org.eclipse.xtext.idea.build.XtextAutoBuilderComponent.internalBuild(XtextAutoBuilderComponent.java:968)
	at org.eclipse.xtext.idea.build.XtextAutoBuilderComponent$19.run(XtextAutoBuilderComponent.java:812)
	at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)
	at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:446)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:126)
	at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:369)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Invalid file name: ':'
	at com.intellij.openapi.vfs.newvfs.impl.VirtualFileSystemEntry.validateName(VirtualFileSystemEntry.java:300)
	at com.intellij.openapi.vfs.newvfs.impl.VirtualFileSystemEntry.createChildDirectory(VirtualFileSystemEntry.java:294)
	at com.intellij.openapi.vfs.VfsUtil.createDirectoryIfMissing(VfsUtil.java:446)
	at org.eclipse.xtext.idea.resource.VirtualFileURIUtil.getOrCreateFile(VirtualFileURIUtil.java:73)
	at org.eclipse.xtext.idea.resource.VirtualFileURIUtil.getOrCreateFile(VirtualFileURIUtil.java:70)
	at org.eclipse.xtext.idea.resource.VirtualFileURIUtil.getOrCreateFile(VirtualFileURIUtil.java:70)
	at org.eclipse.xtext.idea.resource.VirtualFileURIUtil.getOrCreateFile(VirtualFileURIUtil.java:70)
	at org.eclipse.xtext.idea.resource.VirtualFileURIUtil.getOrCreateFile(VirtualFileURIUtil.java:70)
	at org.eclipse.xtext.idea.resource.VirtualFileURIUtil.getOrCreateFile(VirtualFileURIUtil.java:70)
	at org.eclipse.xtext.idea.resource.VirtualFileURIUtil.getOrCreateFile(VirtualFileURIUtil.java:70)
	at org.eclipse.xtext.idea.resource.VirtualFileURIUtil.getOrCreateFile(VirtualFileURIUtil.java:70)
	at org.eclipse.xtext.idea.resource.VirtualFileURIUtil.getOrCreateFile(VirtualFileURIUtil.java:70)
	at org.eclipse.xtext.idea.resource.VirtualFileURIUtil.getOrCreateVirtualFile(VirtualFileURIUtil.java:54)
	at org.eclipse.xtext.idea.resource.IdeaResourceSetProvider$VirtualFileBasedUriHandler$1.run(IdeaResourceSetProvider.java:151)
	at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:1009)
	at org.eclipse.xtext.idea.resource.IdeaResourceSetProvider$VirtualFileBasedUriHandler.flushToDisk(IdeaResourceSetProvider.java:185)
	at org.eclipse.xtext.idea.build.XtextAutoBuilderComponent$22.run(XtextAutoBuilderComponent.java:960)
	at com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:160)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:345)
	at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:329)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
	at java.awt.EventQueue.access$500(EventQueue.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:709)
	at java.awt.EventQueue$3.run(EventQueue.java:703)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:857)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:658)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:386)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Comment 1 Evgeny Voynov CLA 2016-06-22 08:14:28 EDT
Alexander, have you found any workaround for this issue?
Comment 2 Christian Dietrich CLA 2016-06-22 08:53:45 EDT
can you give steps to reproduce this?
Comment 3 Evgeny Voynov CLA 2016-06-22 09:01:54 EDT
In my case it's enough to create empty project in IDEA to start viewing exception (see attached screenshots).
Comment 4 Christian Dietrich CLA 2016-06-22 09:05:38 EDT
i use 

- intellij comm. edition 2016.1.3
- installed xtend and xtext
- restart
- create new java project with select xtend in the new project dialog, added xtend.lib
- in the created project create new HelloWorld.xtend
- run it
Comment 5 Evgeny Voynov CLA 2016-06-22 09:06:41 EDT
Created attachment 262583 [details]
Empty project with errors
Comment 6 Evgeny Voynov CLA 2016-06-22 09:07:30 EDT
Created attachment 262584 [details]
Installed plugins (all of them is v2.10.0)
Comment 7 Christian Dietrich CLA 2016-06-22 09:10:01 EDT
i am not that firm with intellij
can you give step by step what you do when creating the project?
Comment 8 Evgeny Voynov CLA 2016-06-22 09:23:36 EDT
1. From Main Menu 'File' -> 'New' -> 'Project'
2. At left list select 'Empty project' and press 'Next'
3. Fill 'Project name' and press 'Finish'

That's all
Comment 9 Christian Dietrich CLA 2016-06-22 09:24:52 EDT
hmmm i dont get that
Comment 10 Evgeny Voynov CLA 2016-06-22 09:32:00 EDT
good for you, but for me it's terrible bug :(
Comment 11 Christian Dietrich CLA 2016-06-22 09:32:57 EDT
are you on windows?
Comment 12 Evgeny Voynov CLA 2016-06-22 09:41:29 EDT
yep, Win 7
Comment 13 Christian Dietrich CLA 2016-06-22 11:49:23 EDT
it seems there is actually a workaround

if you go to the project structure dialog
and there to facets


for the xtend facet there are outputfolders to be defined

file there is a C:/users/..../xtend-gen

replace this by 

xtend-gen only
Comment 14 Evgeny Voynov CLA 2016-06-22 12:22:20 EDT
thanks, it's really helpful. 

unfortunatelly, now I need to manually suggest IDEA additional path for observing sources because they generates to '<project-root>/xtend-gen' instead of '<project-root>/src/main/xtend-gen'
Comment 15 Christian Dietrich CLA 2016-06-22 12:29:00 EDT
Using src/main/xtend-gen in the dialog does not work ?
Comment 16 Evgeny Voynov CLA 2016-06-22 12:43:55 EDT
it fails for my project (the stack contains custom code generation issues), so probably for other developers it will work fine.

Error during auto build.: Cannot create a resource for 'file://L:/jXFW/demo-arms/demo-arms/src/classes/model/Model.xfwmm/'; a registered resource factory is needed
java.lang.RuntimeException: Cannot create a resource for 'file://L:/jXFW/demo-arms/demo-arms/src/classes/model/Model.xfwmm/'; a registered resource factory is needed
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.java:403)
	at ru.croc.ctp.jxfw.core.generator.AbstractEcoreGenerator.findOrCreateEcoreModel(AbstractEcoreGenerator.java:154)
	at ru.croc.ctp.jxfw.core.generator.DataSourceEcoreGenerator.generate(DataSourceEcoreGenerator.java:64)
	at ru.croc.ctp.jxfw.core.generator.XFWDataSourceProcessor.doGenerateCode(XFWDataSourceProcessor.java:36)
	at org.eclipse.xtend.core.compiler.XtendGenerator.callMacroProcessors(XtendGenerator.java:156)
	at org.eclipse.xtend.core.compiler.XtendGenerator.doGenerate(XtendGenerator.java:104)
	at org.eclipse.xtend.core.compiler.XtendGenerator.doGenerate(XtendGenerator.java:119)
	at org.eclipse.xtext.generator.GeneratorDelegate.doGenerate(GeneratorDelegate.java:43)
	at org.eclipse.xtext.generator.GeneratorDelegate.generate(GeneratorDelegate.java:34)
	at org.eclipse.xtext.build.IncrementalBuilder$InternalStatefulIncrementalBuilder.generate(IncrementalBuilder.java:350)
	at org.eclipse.xtext.build.IncrementalBuilder$InternalStatefulIncrementalBuilder$5.apply(IncrementalBuilder.java:259)
	at org.eclipse.xtext.build.IncrementalBuilder$InternalStatefulIncrementalBuilder$5.apply(IncrementalBuilder.java:1)
	at org.eclipse.xtext.build.ClusteringStorageAwareResourceLoader$2.apply(ClusteringStorageAwareResourceLoader.java:91)
	at org.eclipse.xtext.build.ClusteringStorageAwareResourceLoader$2.apply(ClusteringStorageAwareResourceLoader.java:1)
	at org.eclipse.xtext.xbase.lib.internal.FunctionDelegate.apply(FunctionDelegate.java:42)
	at com.google.common.collect.Lists$TransformingRandomAccessList$1.transform(Lists.java:582)
	at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
	at java.util.AbstractCollection.toArray(AbstractCollection.java:141)
	at java.util.ArrayList.addAll(ArrayList.java:577)
	at com.google.common.collect.Iterables.addAll(Iterables.java:352)
	at org.eclipse.xtext.build.ClusteringStorageAwareResourceLoader.executeClustered(ClusteringStorageAwareResourceLoader.java:95)
	at org.eclipse.xtext.build.BuildContext.executeClustered(BuildContext.java:62)
	at org.eclipse.xtext.build.IncrementalBuilder$InternalStatefulIncrementalBuilder.launch(IncrementalBuilder.java:268)
	at org.eclipse.xtext.build.IncrementalBuilder.build(IncrementalBuilder.java:468)
	at org.eclipse.xtext.build.IncrementalBuilder.build(IncrementalBuilder.java:449)
	at org.eclipse.xtext.idea.build.XtextAutoBuilderComponent.internalBuild(XtextAutoBuilderComponent.java:859)
	at org.eclipse.xtext.idea.build.XtextAutoBuilderComponent$19.run(XtextAutoBuilderComponent.java:750)
	at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:563)
	at com.intellij.openapi.progress.impl.CoreProgressManager$2.run(CoreProgressManager.java:142)
	at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:446)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:392)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:127)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl$1.run(ProgressManagerImpl.java:126)
	at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:369)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Comment 17 Vishal Desai CLA 2016-08-05 09:40:44 EDT
Could you write here the complete language name used, in the field 'Name', while creating the project ?
Comment 18 Ma Tus CLA 2017-08-23 02:37:21 EDT
i've got the same issue
Intellij IDEA 2017.2.2 Ultimate
Xtext 2.9.2
Xtext IDEA Core 2.9.2
Xtend Support 2.9.2
Comment 19 Christian Dietrich CLA 2017-08-23 12:48:57 EDT
does the workaround work for you?