为什么内容/代码辅助不能在 jsp 编辑器中的 eclipse helios 中的 html 标签内工作?
我花了一段时间才找出问题出现的地方,但我已将范围缩小到:
如果我的 jsp 中有一个 html 标记,如下所示: ">
如果 jsp 表达式 Defs.NAME 位于 html 标记内(即在 <> 之间),则内容辅助将不起作用
如果我这样做: <%=Defs.NAME%> 那么内容辅助就可以正常工作。它只需位于 html 括号之外即可。
当我说它不起作用时,我的意思是该框没有提出任何建议。而“工作正常”意味着它得到了范围内的所有建议。
在木卫三上工作得很好。
It took me a while to isolate where the problem comes up but I've narrowed it down to this:
If I have an html tag in my jsp like so:
">
The content assist won't work for the jsp expression Defs.NAME if it's inside an html tag (ie between <>)
If I do this:
<%=Defs.NAME%>
then the content assist works fine. It just has to be outside the html brackets.
When I say it doesn't work, I mean the box comes up with no suggestions. Whereas 'works fine' means it gets all the suggestions in scope.
Worked fine in ganymede.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,这是 helios 中的一个错误,已在 sr2 中修复。
https://bugs.eclipse.org/bugs/show_bug.cgi?id=333784
Turns out this is a bug in helios that's fixed in sr2.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=333784