[英]Idea 12/Haxe2.10(win): why do I get AssertionError: Wrong node when I try to build a project?
My OS is Win7 64 Enterprise
. 我的操作系统是
Win7 64 Enterprise
。
I've just installed idea12 (ultimate)
, added Haxe plugin (0.5.6)
, installed haxe sdk 2.10win
, also tried using 2.09win that comes with fdt. 我刚刚安装了
idea12 (ultimate)
,添加了Haxe plugin (0.5.6)
,安装了haxe sdk 2.10win
,也尝试使用fdt附带的2.09win。
When I try to build a project with Idea, I get following exception: 当我尝试使用Idea构建项目时,我得到以下异常:
Internal error: (java.util.concurrent.ExecutionException) java.lang.AssertionError: Wrong node: [null]
java.util.concurrent.ExecutionException: java.lang.AssertionError: Wrong node: [null]
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
at java.util.concurrent.FutureTask.get(FutureTask.java:111)
at org.jetbrains.jps.model.serialization.JpsProjectLoader.a(JpsProjectLoader.java:231)
at org.jetbrains.jps.model.serialization.JpsProjectLoader.a(JpsProjectLoader.java:105)
at org.jetbrains.jps.model.serialization.JpsProjectLoader.loadProject(JpsProjectLoader.java:81)
at org.jetbrains.jps.cmdline.JpsModelLoaderImpl.loadModel(JpsModelLoaderImpl.java:41)
at org.jetbrains.jps.cmdline.BuildRunner.load(BuildRunner.java:60)
at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:169)
at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:94)
at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:105)
at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:26)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.AssertionError: Wrong node: [null]
at com.intellij.util.xmlb.BeanBinding._deserializeInto(BeanBinding.java:133)
at com.intellij.util.xmlb.BeanBinding.deserialize(BeanBinding.java:120)
at com.intellij.util.xmlb.XmlSerializer.deserialize(XmlSerializer.java:58)
at org.jetbrains.jps.haxe.model.module.JpsHaxeModuleType$1.loadProperties(JpsHaxeModuleType.java:26)
at org.jetbrains.jps.haxe.model.module.JpsHaxeModuleType$1.loadProperties(JpsHaxeModuleType.java:23)
at org.jetbrains.jps.model.serialization.JpsProjectLoader.a(JpsProjectLoader.java:294)
at org.jetbrains.jps.model.serialization.JpsProjectLoader.a(JpsProjectLoader.java:255)
at org.jetbrains.jps.model.serialization.JpsProjectLoader.access$000(JpsProjectLoader.java:44)
at org.jetbrains.jps.model.serialization.JpsProjectLoader$2.call(JpsProjectLoader.java:225)
at org.jetbrains.jps.model.serialization.JpsProjectLoader$2.call(JpsProjectLoader.java:222)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at com.intellij.util.concurrency.BoundedTaskExecutor$1.run(BoundedTaskExecutor.java:35)
... 7 more
This issue can't be in Haxe sdk as it compiles project fine under fdt (however, sdk-based autocomplete is not working, but I think it is not related to idea problem). 这个问题不能在Haxe sdk中,因为它在fdt下编译项目很好(但是,基于sdk的自动完成功能不起作用,但我认为它与想法问题无关)。 Other project types (like java) are working fine with idea.
其他项目类型(如java)工作正常。
So, what shall I try to solve this issue? 那么,我该怎样尝试解决这个问题呢? What does that exception mean?
那个例外是什么意思?
Update : Installed idea 12.01
on WIN7 32 Professional
, created new project - same exception happens. 更新 :在
WIN7 32 Professional
上安装了idea 12.01
,创建了新项目 - 发生了同样的异常。 So, I conclude that this issue is not related to 32/64 bit OS or Java. 因此,我得出结论,此问题与32/64位操作系统或Java无关。 This issue is not specific to idea version 12.00.
此问题并非特定于构思版本12.00。
May be it is important that new project created by idea contains neither .hx
classes, nor any build configuration files(like .hxml
). 可能重要的是,由idea创建的新项目既不包含
.hx
类,也不包含任何构建配置文件(如.hxml
)。 I tried to create .hx main class and .hxml build for it, but idea still does not build project. 我试图为它创建.hx主类和.hxml构建,但是构思仍然没有构建项目。
Changing run configuration to one of those files or to .swf result(built manually) or to cmd does not help( run
option still not available). 将运行配置更改为其中一个文件或.swf结果(手动构建)或cmd无效(
run
选项仍然不可用)。
I also tried to build with ant task, and it succeeded, but idea still can't build a project when I choose this option from menu. 我也尝试使用ant任务构建,并且它成功了,但是当我从菜单中选择此选项时,想法仍然无法构建项目。
The problem will be fixed in IDEA 12.0.2, thank you for reporting. 问题将在IDEA 12.0.2中修复,感谢您的报告。 As a workaround you can switch off 'Use external build' option in File |
作为解决方法,您可以在文件|中关闭“使用外部构建”选项 Settings |
设置| Compiler.
编译器。
I cannot reproduce your error. 我无法重现你的错误。 Please try the usual reinstall, remove/add the Haxe SDK again, Invalidate Cache and restart (from the file menu).
请尝试通常的重新安装,再次删除/添加Haxe SDK,无效缓存并重新启动(从文件菜单)。
If you can reproduce this problem with a fresh install, the best place for Idea support is their forum or create a new issue on their tracker http://youtrack.jetbrains.com/issues/IDEA?p=0&q=haxe 如果您可以通过全新安装重现此问题,Idea支持的最佳位置是他们的论坛或在他们的跟踪器上创建新问题http://youtrack.jetbrains.com/issues/IDEA?p=0&q=haxe
They have been very helpful to me in the past. 他们过去对我很有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.