i was looking at the .log file of the workspace which doesn't have code
assistance,
and i'm getting this exception everytime i trigger code assistance:
!MESSAGE PHPCore plugin internal error
!STACK 0
java.lang.NullPointerException
at java.util.Arrays$ArrayList.<init>(Arrays.java:3357)
at java.util.Arrays.asList(Arrays.java:3343)
at
org.eclipse.php.internal.core.codeassist.strategies.GlobalTypesStrategy.getTypes(GlobalTypesStrategy.java:120)
at
org.eclipse.php.internal.core.codeassist.strategies.GlobalTypesStrategy.apply(GlobalTypesStrategy.java:74)
at
org.eclipse.php.internal.core.codeassist.strategies.GlobalElementsCompositeStrategy.apply(GlobalElementsCompositeStrategy.java:43)
at
org.eclipse.php.internal.core.codeassist.PHPCompletionEngine.complete(PHPCompletionEngine.java:89)
at org.eclipse.dltk.internal.core.Openable$1.run(Openable.java:494)
Seems like the code assistance is activated, and the reason for no code
assistance is an internal exception.
Another thing that points into that direction is that code assistance isn't
working at a project scope, ie:
public class Foo {
protected $bar;
public function test() {
$this-> <--- triggers the exception too.
}
}
regards
-robert
On Mar 3, 2010, at 4:56 PM, Robert Gruendler wrote:
> is there any temporary workaround to re-activate the code assistance for
> the language library ?
>
>
> regards
>
> -robert
>
>
>
>
> On Mar 3, 2010, at 3:47 PM, Roy Ganor wrote:
>
>> Hi Alex, I see that Mylyn-DLTK bridge plugin is the only one that plays with
>> these preferences. Probably for wrapping things with its own proposals list.
>> Anyway, the unpleasant situation where empty proposals list is shown should
>> be fixes somehow.
>>
>> Thanks!
>> Roy
>> From: [email protected] [mailto:[email protected]] On
>> Behalf Of Alex Panchenko
>> Sent: Wednesday, March 03, 2010 4:30 PM
>> To: PDT Developers
>> Subject: Re: [pdt-dev] No code assistance for PHP Language Library
>>
>> JDT has preference page to manage them, DLTK uses preferences but without
>> preference page.
>> Actually I couldn't find the code changing it, but I remember once it was
>> somehow disabled in my development workspace.
>>
>> Regards,
>> Alex
>>
>> ----- Original Message -----
>> From: "Roy Ganor" <[email protected]>
>> To: "PDT Developers" <[email protected]>
>> Sent: Wednesday, March 3, 2010 8:19:00 PM GMT +06:00 Almaty, Novosibirsk
>> Subject: RE: [pdt-dev] No code assistance for PHP Language Library
>>
>> BTW, any reason why a user would select to disable the script category? You
>> mentioned on exception but it seems odd to me that it is common.
>> Are there other situations where this category can be disabled?
>>
>> Thanks!
>> Roy
>> From: [email protected] [mailto:[email protected]] On
>> Behalf Of Alex Panchenko
>> Sent: Wednesday, March 03, 2010 3:54 PM
>> To: PDT Developers
>> Subject: Re: [pdt-dev] No code assistance for PHP Language Library
>>
>> Hi,
>>
>> It's possible that PDT proposal computer was disabled in preferences (e.g.
>> if exception was thrown), so it makes sense to test in a *new* workspace.
>>
>> Regards,
>> Alex
>>
>> ----- Original Message -----
>> From: "Roy Ganor" <[email protected]>
>> To: "PDT Developers" <[email protected]>
>> Sent: Wednesday, March 3, 2010 7:56:24 PM GMT +06:00 Almaty, Novosibirsk
>> Subject: RE: [pdt-dev] No code assistance for PHP Language Library
>>
>> Hi Robert,
>> Can you share your .settings folder, .buildpath and .project files?
>>
>> Best regards,
>> Roy
>> From: [email protected] [mailto:[email protected]] On
>> Behalf Of Robert Gruendler
>> Sent: Wednesday, March 03, 2010 2:08 PM
>> To: PDT Developers
>> Subject: [pdt-dev] No code assistance for PHP Language Library
>>
>> Hi all,
>>
>> i don't get any code assistance for the php language library in php projects.
>>
>> The only assistance that shows up,are the template proposals, like
>> try/catch, fn etc.
>>
>> My PDT extension is completely disabled in the run environment, and i've
>> tested this
>> bug also on a standalone eclipse installation with the latest pdt 2.2.
>>
>> Version Info:
>> Eclipse: 3.5.2 Build id: M20100211-1343
>> DLTK: 2.0.0 (CVS HEAD)
>> PDT: 2.2.0 (CVS HEAD)
>>
>> Anyone else experiencing this problem?
>>
>> regards
>>
>> -robert
>>
>> _______________________________________________ pdt-dev mailing list
>> [email protected] https://dev.eclipse.org/mailman/listinfo/pdt-dev
>>
>> _______________________________________________ pdt-dev mailing list
>> [email protected] https://dev.eclipse.org/mailman/listinfo/pdt-dev
>> _______________________________________________
>> pdt-dev mailing list
>> [email protected]
>> https://dev.eclipse.org/mailman/listinfo/pdt-dev
>
> _______________________________________________
> pdt-dev mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/pdt-dev
_______________________________________________
pdt-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/pdt-dev