dot problem [message #205289] |
Wed, 03 March 2004 10:43  |
Eclipse User |
|
|
|
Originally posted by: gianpaolo.cavagna.unibg.it
Hi,
i have a problem with my eclipse platform: everytime i insert a "dot" in
my java code, a pop-up message reaises up telling me the following words:
"Operation cannot be performed.
This compilation unit is not on the build path of a java project."
i think the program tries to auto-compile the code, suggesting those
methods that can be applied to the object.
how can i solve this problem?
thaks
cawa
|
|
|
Re: dot problem [message #205366 is a reply to message #205289] |
Wed, 03 March 2004 12:10  |
Eclipse User |
|
|
|
cawa wrote:
> Hi,
> i have a problem with my eclipse platform: everytime i insert a "dot" in
> my java code, a pop-up message reaises up telling me the following words:
>
> "Operation cannot be performed.
> This compilation unit is not on the build path of a java project."
>
> i think the program tries to auto-compile the code, suggesting those
> methods that can be applied to the object.
>
> how can i solve this problem?
This sounds like the content assist is auto-activated (it is per
default) upon typing a dot. But I wonder what your setup is and how you
are getting a Java file that is not on a build path but still has a
content assistant.
Please file a bug against jdt-text describing the problem with detailed
steps on how to reproduce.
-tom
|
|
|
Re: dot problem [message #205382 is a reply to message #205289] |
Wed, 03 March 2004 12:10  |
Eclipse User |
|
|
|
cawa wrote:
> Hi,
> i have a problem with my eclipse platform: everytime i insert a "dot" in
> my java code, a pop-up message reaises up telling me the following words:
>
> "Operation cannot be performed.
> This compilation unit is not on the build path of a java project."
>
> i think the program tries to auto-compile the code, suggesting those
> methods that can be applied to the object.
Hello
As you said, it tries to call the completion on the given object. If
this object is not referenced by the project, it will show this message.
Possible solutions:
- Tune the configuration (build path properties) of your project so that
it can find the relevant compilation units (the one you are working on
and the one on which it is trying to call the completion feature)
- Shut down the auto-completion: preferences -> Java -> Editor -> Code
Assist Tab: "Enable auto activation" checkbox.
Hope this helps,
Jean
> how can i solve this problem?
>
> thaks
> cawa
>
>
>
--
"No brain, no headache"
|
|
|
Powered by
FUDForum. Page generated in 0.03253 seconds