BUG:Requesting JavaScript AST from selection
来源:互联网 发布:模拟经营单机 知乎 编辑:程序博客网 时间:2024/04/30 13:21
用 Eclipse Helios或者Eclipse indigo 编写Javascript函数中出现 return 时。
错误提示:
An internal error occurred during: "Requesting JavaScript AST from selection".
java.lang.NullPointerException.
解决方法:
修改 Mark Occurrences。快捷键:Alt+Shift+O。
(Window-->Preferences->Javascript-->Editor-->Mark Occurrences) 取消选中该项
问题分析:
英文原文:
I believe that the problem is in org.eclipse.wst.jsdt.internal.core.ReconcileWorkingCopyOperation.makeConsistent(CompilationUnit) method which calls cleanUp() method on CompilationUnitDeclaration (which subsequently cleans up all the references/bindings as well as all the SourceTypeBindings collected). But later (in hover calculation in my case or or in occurrences finder in this issue's stacktrace) those SourceTypeBinding-s are still needed to resolve types, but they (SourceTypeBinding-s) are already cleared by ReconcileWorkingOperation, so they aren't usable anymore.
Not sure would it be a problem if not to call cleanUp() method on unit declaration during reconciling operation (in ReconcileWorkingCopyOperation.makeConsistent() method), but excluding this call in my local workspace helps to prevent this NPE.
So, probably the CompilationUnitDeclaration is not to be cleaned up by reconcile operation (and it's not in case the working copy is not consistent - see ReconcileWorkingCopyOperation.makeConsistent() method source).
Not sure would it be a problem if not to call cleanUp() method on unit declaration during reconciling operation (in ReconcileWorkingCopyOperation.makeConsistent() method), but excluding this call in my local workspace helps to prevent this NPE.
So, probably the CompilationUnitDeclaration is not to be cleaned up by reconcile operation (and it's not in case the working copy is not consistent - see ReconcileWorkingCopyOperation.makeConsistent() method source).
理解:
光标放到某个地方,会出现一个Mark Occurence的类型变量
这个变量需要被ResourceTypeBindings来解析,而这个ResourceTypeBindings又被cleanup清除了
0 0
- BUG:Requesting JavaScript AST from selection
- Requesting JavaScript AST from selection
- Requesting JavaScript AST from selection
- Requesting JavaScript AST from selection
- An internal error occurred during: "Requesting JavaScript AST from selection
- 解决eclipse下的Requesting JavaScript AST from selection
- JSP----An internal error occurred during: "Requesting JavaScript AST from selection"
- An internal error occurred during: "Requesting JavaScript AST from selection". GC overhead limit exc
- JSP----An internal error occurred during: "Requesting JavaScript AST from selection" .
- JSP一直弹出错误提示框 Selection Job titile error retrieving AST from Provider
- MyEclipse编写JavaScript是出现error retrieving AST from Provider
- 用myeclipse编程时,不停跳出提示框,显示"selection job titles has encountered a problem error retrieving AST from Pr
- JavaScript标准Selection操作
- JavaScript标准Selection操作
- JavaScript 抽象语法树(AST)
- Javascript selection的兼容性写法
- AST
- ast
- 练习一万小时成天才
- qt creator 文件移植到开发板上运行 的全过程
- 遍历Map集合的4种方法
- qt及java端实现自定义数字签名,数据加密传输。
- 幂函数
- BUG:Requesting JavaScript AST from selection
- 简单设置samba共享
- 注意设置httpclient连接数
- 关于平衡二叉树的一句代码不是很理解
- No orientation specified, and the default is horizontal. This is a common source of bugs when childr
- Ext动态删除items方法参考
- HTML自学笔记(四)
- 关于xmlns:tools和android:onClick使用
- HTTP POST GET 本质区别详解