Hi Gary,

I am happy to see that there are some people on this forum. It sounded so 
silent. I am also a newcomer to JDEE, I have tried your code and I get exactly 
the same thing as you.

I have tried to debug a little jde-complete-in-line. It seems that at some 
point it calls

(jde-parse-eval-type-of "foo")

This finds that the class of foo is One, then in jde-parse.el we get at line 
1294

1292:                   (t
1293:                    ;; See if it's declared somewhere in this buffer.
1294:                    (let (parsed-type result result-qualifier)

I did not go further into it, but it seems that it fails afterwards, for some 
reason to find that One is declared in the same buffer.

Br,
    Vincent.

PS: Myself, I met several problems. Have you yet tried to compile a file yet 
with C-c C-v C-c ?


> Date: Mon, 9 Mar 2009 22:46:56 +0100
> From: [email protected]
> To: [email protected]
> Subject: [jdee-users] Learning jdee and stumbling
> 
> Hi,
> 
> I am trying to learn how to use jde before really using it in earnest,
> so as a first step I have created a class "One" and am now trying to get
> code completion (i.e. jde-complete-in-line) working. Let's say my code
> looks like:
> 
> 01 public final class One {
> 02
> 03    private One() {
> 04    }
> 05
> 06    private void go() {
> 07        System.out.println("I went");
> 08    }
> 09
> 10    public static void main(final String[] args) {
> 11        One foo = new One();
> 12
> 13        foo.g
> 14    }
> 15 }
> 
> with the insertion point after the "g" in line 13. I then press
> C-c C-v . and as expected something happens, but I'm not convinced it is
> happening correctly. What I then see is a message saying
> "Could not find type of foo Attempt to import One? (y or n)"
> If I asnwer "n" then... it asks me the same thing again (grr!) and if I
> answer "y" then, it does something (nothing apparent, but something) and
> then... asks me yet again! Something's not right here...
> 
> Any ideas?
> 
> (emacs 21.2 (cygwin), jde 2.3.5.1)
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> jdee-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jdee-users

_________________________________________________________________
Découvrez toutes les possibilités de communication avec vos proches
http://www.microsoft.com/windows/windowslive/default.aspx
------------------------------------------------------------------------------
_______________________________________________
jdee-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jdee-users

Reply via email to