Re: Classpath problem

Nathan Fiedler <[email protected]> Mon, 01 May 2006 08:55:11 -0700
Newsgroups gmane.comp.java.jswat.user
Organization Blue Marsh Softworks
Message-ID <[email protected]>
The annotations have tooltips, so if you hover the mouse over the red 
icon in the source view margin, it should indicate what it thinks the 
problem is.

In the meantime, the nightly build contains a recent change in which the 
Attach dialog allows you to ignore the classpath reported by the 
debuggee. So you can set the "Classes" setting however you like, attach 
to the remote debuggee, and the Classes value will remain the same. The 
nightly build is available on the downloads page at bluemarsh.com.

On the other hand, turning off the annotation certainly works. The 
errors in JSwat are meaningless since it is not compiling anything and 
is not intended to be used as an editor, so you wouldn't care about the 
errors in any case.

n


Burgess, Jay S wrote:
> Your description of the change in classpath before/after Attach makes
> sense. But your statement that "everything that is on the sourcepath
> will not generate error stripes." doesn't seem to align with what I'm
> seeing in the tool.  In lieu of a screenshot, since I'm not sure what my
> boss would think about that, I'll try to describe it more clearly in
> words:
> 
> -----------------------------------
> Before Attach: 
> -----------------------------------
> * The "Session Settings/Classes" tab contains the root directory of my
> application's class files. 
> * The "Session Settings/Sources" tab contains the root directory of my
> application's source files.  
> * An import statement in one of my source files that imports another one
> of my app's classes has NO red wavy line e.g. In
> "com.mycompany.report.Top10.java", the line "import
> com.mycompany.beans.Channel;" has no red wavy line.
> * I can see both "com.mycompany.report.Top10.java" and
> "com.mycompany.beans.Channel.java" in my Sources tab and open both files
> in the editor.
> 
> -----------------------------------
> After Attach:
> -----------------------------------
> * The "Session Settings/Classes" tab now contains just tools.jar and
> bootstrap.jar, and my previous setting is gone. (This aligns with what
> you said about the debuggee.)
> * The "Session Settings/Sources" tab contains the root directory of my
> application's source files (as it did previously).
> * The previous line of source in JSwat that references one of my app's
> classes NOW HAS a red wavy line!
> * I can still see both files in my Sources tab and open them in the
> editor.
> 
> Again, this isn't a huge deal, and I can turn off the red wavy line in
> Annotation Types.  I just wanted to make sure I wasn't missing
> something.
> 
> Jay