我在将 TCL-DLTK 项目导入 IDE (Eclipse) 时遇到问题。
我确实克隆了 git 存储库,但我在导入的项目上收到警告和错误:
在 org.eclipse.dltk.tcl.activeStateDebugger 项目上,我收到警告
Discouraged access: The type CheckedListDialogField is not accessible due to restriction on required library ...\plugins\org.eclipse.dltk.ui_4.0.0.201206120848.jar " on some import instructions.
我也遇到这个错误
The constructor TclSpawnpointPreferenceBlock(new IShellProvider(){}, TclActiveStateDebuggerBlock) is undefined" in TclActiveStateDebuggerBlock Class.
另一个例子是在 org.eclipse.dltk.tcl.core 项目中,我收到此错误
The import org.eclipse.dltk.compiler.SourceElementRequestorMode cannot be resolved" on the org.eclipse.dltk.tcl.internal.structure/TclSourceElementParser2 Class.
总而言之,几乎每个项目都存在错误。
我正在使用安装了 DLTK 和 EMF 插件的 Eclipse Juno。 感谢您提供的任何帮助。
请您参考如下方法:
最新源代码需要当前的 DLTK 版本 - 5.0
您可以在首选项 > 插件开发 > API 基线
中设置 API 基线(您也可以在同一位置关闭警告)。 API 基线提供了额外的检查,确保您是否按预期使用代码。