Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » phptools
phptools [message #773724] Mon, 02 January 2012 11:36 Go to next message
azdazda azdad is currently offline azdazda azdadFriend
Messages: 4
Registered: January 2012
Junior Member
Hello,

I ave installed phptools for eclipse pdt...

But when i want to execute a test, I have got this error :

An internal error occurred during: "PHPUnit".
java.lang.NullPointerException

The same error applies as well for code sniffer, pdepend,...


Here is the log output :

java.lang.NullPointerException
at org.phpsrc.eclipse.pti.tools.phpunit.core.PHPUnit.runTestCase(PHPUnit.java:256)
at org.phpsrc.eclipse.pti.tools.phpunit.validator.PHPUnitValidator.validateTestCase(PHPUnitValidator.java:59)
at org.phpsrc.eclipse.pti.tools.phpunit.validator.PHPUnitValidator.validateTestCase(PHPUnitValidator.java:45)
at org.phpsrc.eclipse.pti.tools.phpunit.ui.actions.RunTestCaseAction$1.run(RunTestCaseAction.java:50)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)


Anyone have an idea?


thx

[Updated on: Mon, 02 January 2012 12:56]

Report message to a moderator

Re: phptools [message #773766 is a reply to message #773724] Mon, 02 January 2012 13:31 Go to previous messageGo to next message
dominik is currently offline dominikFriend
Messages: 122
Registered: July 2009
Senior Member
On 2012-01-02 12:36, azdazda azdad wrote:
> The same error applies as well for code sniffer, pdepend,...

How You execute those commands? as external tools?


> Anyone have an idea?

More detailed stack trace?

/dmc
Re: phptools [message #773808 is a reply to message #773766] Mon, 02 January 2012 15:43 Go to previous messageGo to next message
azdazda azdad is currently offline azdazda azdadFriend
Messages: 4
Registered: January 2012
Junior Member
New icons have appeared in my toolbar...

When I am in a test file, I click on these icons (file with a blue triangle... if it helps)...



I do not have a more detailled stack trace...
Re: phptools [message #773846 is a reply to message #773808] Mon, 02 January 2012 17:51 Go to previous messageGo to next message
dominik is currently offline dominikFriend
Messages: 122
Registered: July 2009
Senior Member
On 2012-01-02 16:43, azdazda azdad wrote:
> New icons have appeared in my toolbar...
>
> When I am in a test file, I click on these icons (file with a blue triangle...
> if it helps)...

It's bit hard to know everything by it's icon inevery theme, any screenshoot or
title under mouse pointer?


> I do not have a more detailled stack trace...

Take a look under error log tab (if You don't have it then first show this in
window menu, show view..).

/dmc
Re: phptools [message #774095 is a reply to message #773846] Tue, 03 January 2012 08:51 Go to previous messageGo to next message
azdazda azdad is currently offline azdazda azdadFriend
Messages: 4
Registered: January 2012
Junior Member
I have copied source files of phpunit test project.... and it works...

I have another probleme with my personnal project...


I use rse polugin because files are on our dev server...


Is there a way to run phpunit tests in my eclipse with remote files ?
Re: phptools [message #774231 is a reply to message #774095] Tue, 03 January 2012 14:58 Go to previous messageGo to next message
dominik is currently offline dominikFriend
Messages: 122
Registered: July 2009
Senior Member
On 2012-01-03 09:51, azdazda azdad wrote:
> I have copied source files of phpunit test project.... and it works...
> I have another probleme with my personnal project...
>
> I use rse polugin because files are on our dev server...

RSE is great for temporary changes and quick fixes that will be later pushed to
versioning control, but it's not very usable in day to day work, having remote
project everything is very slow, using RSE is not build.

Rather use remote sync than this. That allows to have project locally and push
changes to remote server using builder.


> Is there a way to run phpunit tests in my eclipse with remote files ?

Yes, setup ssh connection without password (using certs) and then just invoke
needed command, You will see all output in Eclipse. You can even set up such
thing when some files are saved or changed or at commit.

/dmc
Re: phptools [message #774243 is a reply to message #774231] Tue, 03 January 2012 15:22 Go to previous messageGo to next message
azdazda azdad is currently offline azdazda azdadFriend
Messages: 4
Registered: January 2012
Junior Member
Thx for your answer...


I will try to find how to set up ssh connection without password...
Re: phptools [message #776899 is a reply to message #774243] Mon, 09 January 2012 13:34 Go to previous message
dominik is currently offline dominikFriend
Messages: 122
Registered: July 2009
Senior Member
On 2012-01-03 16:22, azdazda azdad wrote:
> Thx for your answer...
> I will try to find how to set up ssh connection without password...

cygwin + ssh + cert will work as You want,
ssh allows to invoke remote command, just place it after username
and that's all what You need now :)

/dmc
Previous Topic:Eclipse 2.x or 3.x?
Next Topic:PDT 3.0.2 Eclipse Update Site ?
Goto Forum:
  


Current Time: Sun Dec 21 04:14:06 GMT 2014

Powered by FUDForum. Page generated in 0.01975 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software