Re: Fix Import fails on both 5.0 and 6 Dev
Luca Buraggi <lburaggi <at> mate.it>
2006-10-01 20:14:49 GMT
Bayless,
I don't think the problem I encountered is the same you describes.
If Fix Import fails without indicate any kind of error then you probably
are facing a know bug (very similar indeed) that should have been fixed
in the 5.5 release (so I understood by forums). My case is slightly
different: Fix Import seems to 'cache' some symbols as unresolved
refusing from that moment on, to find them.
Luca Buraggi, senior IT consultant
MATE - c.so Colombo 10, 20144 Milano
Office: lburaggi <at> mate.it
Home: luca.buraggi <at> tiscali.it
Bayless Kirtley wrote:
> This is the same problem I had. Fix Imports did not cause funny stuff
> like flagging lines as bad. It simply could not find anything but did
> not indicate any kind of error. Someone at Sun tried to help by
> suggesting to remove some directories but it didn't help. I stopped
> short of trying to reinstall Netbeans. It sounds like that must not
> work either. I am sorry you are having the problem but I have to be
> encouraged that I am not the only one. Maybe some of the gurus will
> take it more seriously now that it seems to not be a one-time problem
> and find the root cause.
>
> Bayless
>
>
> ----- Original Message ----- From: "Luca Buraggi" <lburaggi <at> mate.it>
> To: <nbusers <at> netbeans.org>
> Sent: Sunday, October 01, 2006 11:01 AM
> Subject: Re: [nbusers] Fix Import fails on both 5.0 and 6 Dev
>
>
>> Yes, I created a new project with 1 class, just declaring :
>>
>> protected final Log log = LogFactory.getLog(getClass());
>>
>> and Fix Import complains "No imports found for type: Log, LogFactory
>>
>> If I insert manually the import, the compiler compiles the program
>> without errors.
>>
>>
>> Luca Buraggi, senior IT consultant
>> MATE - c.so Colombo 10, 20144 Milano
>>
>> Office: lburaggi <at> mate.it
>> Home: luca.buraggi <at> tiscali.it
>>
>>
>>
>> Devon Miller wrote:
>>> If you create a new project from scratch, does the new project
>>> exhibit the behavior?
>>>
>>>
>>> Luca Buraggi wrote:
>>>> Hi there,
>>>>
>>>> After months of regular service the Fix Import function on my
>>>> Netbeans 5.0
>>>> suddendly stopped working properly.
>>>> The Fix Import fails finding some classes, showing them as uresolved
>>>> symbols, even if these are definitely in the classpath (if I add
>>>> maually
>>>> the import the Fix Import still goes on complaning but the source
>>>> compiles)
>>>>
>>>> I read the forums on the topic without any result (deleting
>>>> {user}/var/cache
>>>> didn't help) and a recently I installed
>>>> the 6 Dev version, importing all my 5.0 environment when asked by the
>>>> installation procedure.
>>>>
>>>> Apparently I imported the bug in the 6 Dev becouse nothing changed !
>>>> The behaviour if very strange: once a symbol if flagged as "always
>>>> unresolved" by Fix Import, it remains in this state even if I start
>>>> a new
>>>> fresh project.
>>>>
>>>> At the moment I have all the log4j classess (Log, LogFactory, ...)
>>>> and many
>>>> javax.persistence annotation classes that
>>>> are not anymore found.
>>>> I have a very tiny project (1 class, 1 statement) that shows this
>>>> problem
>>>> ...
>>>> Could anyone help me ? I can send the project or whatever needed to
>>>> investigate the problem.
>>>>
>>>> Thank you
>>>>
>>>
>