i was looking at the .log file of the workspace which doesn't have 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
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" <roy@xxxxxxxx>
To: "PDT Developers" <pdt-dev@xxxxxxxxxxx>
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
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" <roy@xxxxxxxx>
To: "PDT Developers" <pdt-dev@xxxxxxxxxxx>
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
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.
Eclipse: 3.5.2 Build id: M20100211-1343
Anyone else experiencing this problem?
_______________________________________________
pdt-dev mailing list
pdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pdt-dev
_______________________________________________
pdt-dev mailing list
pdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pdt-dev