| Summary: | [validation] Chaotic problem markers in one file if other has real problems | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Evgeniy Karyakin <anthropophagite> | ||||||||||||||||
| Component: | jst.jsp | Assignee: | Salvador Zalapa <zalapa> | ||||||||||||||||
| Status: | CLOSED WORKSFORME | QA Contact: | Nick Sandonato <nsand.dev> | ||||||||||||||||
| Severity: | normal | ||||||||||||||||||
| Priority: | P3 | CC: | thatnitind | ||||||||||||||||
| Version: | unspecified | ||||||||||||||||||
| Target Milestone: | --- | ||||||||||||||||||
| Hardware: | PC | ||||||||||||||||||
| OS: | Windows 2000 | ||||||||||||||||||
| Whiteboard: | |||||||||||||||||||
| Attachments: |
|
||||||||||||||||||
|
Description
Evgeniy Karyakin
Created attachment 190730 [details]
Example JSP screenshot
Created attachment 190731 [details]
Example INC screenshot
Created attachment 190732 [details]
Example JSP source code
Created attachment 190733 [details]
Example INC source code
Eclipse version is latest Helios SR2 distribution downloaded few days before. Hi Evgeniy, I'm having trouble reproducing this with your sample files. So I have a few questions. 1. Is validation of JSP fragments enabled (Window > Preferences | Web > JSP Files > Validation "Validate JSP Fragments")? Validation of fragments is not aware of the context in which the fragments are used as this can be extremely messy to figure out. Disabling this should remove the errors from your fragments (assuming .inc is associated with the JSP Fragment content type and not JSP). 2. What are the messages behind the Errors that you see? Are they the same errors as reported in the .inc file? 3. Do you have any other configuration that I may need to take into account? Maybe a sample project might be useful. Thanks. So, I started with fresh workspace, made simple Java project, threw servlet.jar there (Eclipse complained about its absence) and put those 2 example files in. No settings were changes except switching off network connections so Eclipse won't nag me with proxy login/password dialogue. Steps: 1. Open JSP file. No errors. 2. Open INC file. Two errors. 3. Switch back to JSP. Change anything (add space somewhere). 4. Switch to INC. Errors stays for a second, then disappear instantly in front of my eyes. I tried associate INC files with either "JSP" or "JSP fragment" content type without any difference. Switching off JSP fragments validation solves this problem, but this INC file is not a JSP fragments technology, just a bunch of HTML/JSP mess to be included when needed. Returning to original bug "problem markers in one file if other has real problems", yes, those unexpected errors in JSP have descriptions saying that they originating from INC files, for example, "ksd cannot be resolved" message in JSP has its roots in real problem in INC. See last PNG attached: on line 13 the message "ServiceDto cannot be resolved to a type" is really INC problem, not JSP. In JSP, ServiceDto is imported properly, see line 6. It seems like all this mess caused by moderately complex project structure. Simple project attached. Created attachment 190822 [details]
Another screenshot with pop-up message
Created attachment 190823 [details]
Simple project as complement to the last message
Any chance you could reattach that in a more conventional format, like one supported by the Archive Export wizard? Created attachment 191397 [details]
Simple project as an example
Created with "File" -> "Export..." -> "Archive file" feature.
Still having these and similar other chaotic "problems" in Indigo (build id 20110916-0149). They are too difficult to describe by words, shortly saying: if one JSP has real problems, another opened JSP has some markers placed randomly *near* places where there are real errors on another file. Hello Evgeniy : I already was able to reproduce the problem you mentioned. The behavior you are pointing is this: The errors from indirectly referenced files (e.g. you .inc file used in the include directive) are being showed in the main page, even if that main does not have explicit errors. am i correct? This is working as design since once the translation takes place. The way to avoid this behavior is to switching off JSP fragments validation, and add the .inc content type as JSP and as JSP Fragment as well. With this configuration you will get the behavior you desire. It has been a month since I provide the information without any response, i am resolving this defect. Yes, Salvador, I think this issue is resolved, please close it. Thanks Evgeniy |