Eclipse DLTK:解析和管理项目中文件的类似 JDT 的行为
我正在使用 DLTK 框架为 eclipse 开发一个插件。这个问题已在官方邮件列表上提出,但尚未得到答复,因此我想将其更加公开。
在我的 DLTK 插件中,目前只有在文件上打开编辑器时才会解析文件。有没有办法实现类似eclipse jdt的解析策略,将一个项目的所有文件一起解析?或者 DLTK 不支持,我是否必须实施自己的策略和缓存模型?
提前致谢。
i'm developing a plug-in for eclipse using the DLTK framework. This question was asked on the official mailing list but is unanswered yet, so i want to make it more public.
in my DLTK plug-in, as for now, files are only parsed when the editor is opened on a file. Is there a way to achieve a parsing strategy similar to the eclipse jdt in which all files of a project are parsed together? or is that not supported by DLTK and do i have to implement an own strategy and caching model?
thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定你所说的“一起解析”是什么意思。
解析单个文件以了解文件结构(JDT 也这样做并独立解析每个文件)。
编译/验证源时您应该关心其他文件。
其中一个选项是贡献您自己的构建器,它将使用完整构建的所有文件和增量构建的更改文件列表来调用。
I am not sure what you mean with "parsed together".
Single file is parsed to understand the file structure (JDT also does it and parses each file independently).
You should care about other files when compiling/validating the sources.
One of the options is contributing your own builder, which will be called with all files on full build and list of changed files on incremental builds.