- This topic has 22 replies, 6 voices, and was last updated 20 years, 1 month ago by Chuck Deal.
-
AuthorPosts
-
Chris LindsleyMemberMyEclipse 3.8.1 j2sdk 1.4.2_05 WindowsXP
When my jsp pages have errors or warnings I get the red/yellow box warning in the vertical bar on the right side of the jsp editor. However, those same messages don’t appear in the ‘Problems’ tab. My normal use of the Problems Filter is to only display errors for the current project. However, even if I completly turn off filters the problem persists.
The ‘Problems’ tab works fine for java files in java projects, but not for jsp pages in web projects.
Thanks,
Chris
PatrynMemberI have that problem too…1.4.2 Java, latest eclipse and 3rd-bugfix version.
I have given up to change the filter configuration…never there. Older versions of ME didnt show that behaviour.—
André
Riyad KallaMemberChris,
This is a common confusion. The errors in the right margin are reconciler errors, like “edit-time” errors. Compile errors are shown in the left margin and those are the ones that are shown in the problem view. We modelled the behavior of the JSP editor after the Java editor, you’ll notice that reconciler errors in the Java editor don’t show in the problem view either, only compile errors.Did this help clarify what is happening?
Chris LindsleyMemberNope, it doesn’t clear it up. The things to the right that I’m noticing are compile errors and warning like import not used, undefined class etc.
I’m not talking about the things like invalid html.
Chris LindsleyMemberAs an example, put the following snippet in a blank jsp page:
<% StringWriter lWriter = new StringWriter(); %>
I get a red box on the right tab, when I hover over it, I get “StringWriter cannot be resolved or is not a type”. I get no “Problems”. I don’t see anything on the left margin.
I do have the ‘Project->build automatically’ option checked.
Riyad KallaMemberPlease check your Eclipse log file <workspace dir>\.metadata\.log and see if you see a bunch of “cannot execute javac process” exceptions. MyEclipse needs the javac executable in your system PATH so it can use it to compile the JSP pages, if it can’t, then it won’t generate errors and they won’t be shown in the editor.
You can check really quick if this might be the problem by dropping to a command line and typing “javac”, if you get a “Bad command not found” then please add your JDK’s bin director to your system’s PATH and restart Eclipse.
We are working to enhance this and be more informative about this error as its obviously too hidden to be useful to users.
Riyad KallaMemberlindsley,
I have tried your test code and it works as expected on my install, so I’m hoping this is a javac-in-your-path-issue.
Chris LindsleyMemberI’ll stop posting in the ‘import’ thread since these 2 problems seem to be related.
javac works as expected in a command prompt (i.e. gives usage information). No errors are reported in the .log file
Both problems first occurred when I upgraded to the 3.8.x versions. Upgraded is not exactly right since I did fresh installs in all cases (new eclipse dir and new MyEclipse install for both 3.8.0 and 3.8.1). I’ve also applied the 3rd fix for 3.8.1.
“java projects” report “Problems” just fine in my workspace. It’s only “web projects” that have the problem.
Thanks,
Chris
Riyad KallaMemberok please note my last post in that other thread asking for the Build ID information and java -version info.
PatrynMemberI wrote my version id and so on with other problems, latest of all, freah full install, fresh downloads and so on.
I had a lot of other anoying problems, so i wrote nothing on that till now, but i got never jsp compile errors in problems since installing 3.8.1.
And i expect them to be there, compile errors i see to in java-pure-mode.
Java is found, i see the red markers and the compile-error-description when i hover above that item.
—
André
Scott AndersonParticipantAndre,
In the Problems View, open the Filters dialog and in the list called “Show items of this type:”, please be sure to scroll down and select every problem marker that begins with MyEclipse.
Chris LindsleyMemberIf you open up a console and type java -version, what do you get? Also what is your Build ID for Eclipse (Help > About) and Build ID for ME (Window > Prefs > MyEclipse)?
From a ‘java -version’ command in a windows command prompt I get:
- java version “1.4.2_05”
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
Java HotSpot(TM) Client VM (build 1.4.2_05-b04, mixed mode)from Window > Prefs > MyEclipse i get:
- Version: 3.8.1+QF20040825
Build Id: 200408201200-3.8.1+QF20040825
Scott AndersonParticipantLindsey,
Your issue seems to be the same as Andre’s. Please see my prior post.
Chris LindsleyMemberIn the Problems View, open the Filters dialog and in the list called “Show items of this type:”, please be sure to scroll down and select every problem marker that begins with MyEclipse.
My Filters setting already had all problem types selected.
Chris
Scott AndersonParticipantWhen my jsp pages have errors or warnings I get the red/yellow box warning in the vertical bar on the right side of the jsp editor. However, those same messages don’t appear in the ‘Problems’ tab.
These are reconciler errors done by the open editor and should not show up in the Problems View. Only errors that show up as compilation validation and are marked in the *left* margin are shown in the Problems View. Do you have JSP validation turned on for the Workspace (Window > Preferences > MyEclipse > Validation) and at the project level Properties > MyEclipse-Validation? Can you right-click in the Package Explorer on the file and select Validate JSP?
-
AuthorPosts