4 comments

Robert Gibson wrote:

Any chance of this bug getting looked at for 4.0 or 4.1 ? It's quite
old :(
http://www.intellij.net/tracker/idea/viewSCR?publicId=6119

This one it very difficult to fix (see discussion) and I don't think
it'll be fixed until there is no find usages for JSP files.

IK

--
Igor Kuralenok
Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0

Why is this difficult? It's just following include directives before
parsing a JSP file ... Actually there is a very simple test case posted
in http://www.intellij.net/tracker/idea/viewSCR?publicId=13442 which is
marked as "Duplicate", maybe it's not?

Robbie

0

I commented in the discussion thread for the bug - I would be happy to
discuss things with you there, Igor.

Robbie

0

Robert Gibson wrote:

Why is this difficult? It's just following include directives before
parsing a JSP file ... Actually there is a very simple test case posted
in http://www.intellij.net/tracker/idea/viewSCR?publicId=13442 which is
marked as "Duplicate", maybe it's not?

Robbie

The problem here (13442) is that lexing depends on semantic and this is
always pain. To stay with one parsing tree we need to write lexer that
have to take into account something (include directives) which is
several levels beyond its logic (there are two more levels parsing and
semantic analysis). This way is not acceptable. The other way is to make
two level parsing: one for JSP part (directives, tags, etc.) and the
other for java syntax (there will be two different trees for one file).
This way seems to be much more productive but it demands some
fundamental changes in core IDEA components.

IK
--
Igor Kuralenok
Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.