PHPsrc / PHP-Tool-Integration

On one site there exists many good PHP tools such as PHPUnit or PHP CodeSniffer which support the development of PHP scripts. On the other side there powerful IDEs for example PHP Delepment Tools Project (PDT) but mostly with no possibility to use such tools with them. The Eclipse PHP Tool Integration (PTI) is a collection of Eclipse plugins which aims to close this gap.
19 stars 7 forks source link

can not use PHPUnit with eclipse juno 4.2.2 and PTI 1.6.0.R20111119000000 under Ubuntu 13.04 #3

Closed steros closed 11 years ago

steros commented 11 years ago

When I try to create a test case from a file a popup opens where to create that test, all is filled out as expected. But when I click finish it only creates the folder ("test" in my case) and no file, also the popup does not close.

When I manually create a test file and run the test I get this error: An internal error occurred during: "PHPUnit". org.eclipse.php.internal.debug.core.launching.PHPLaunchUtilities.getCommandLine(Lorg/eclipse/debug/core/ILaunchConfiguration;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)[Ljava/lang/String;

PHPUnit is 3.7.19

zulus commented 11 years ago

you can try my solution from #2

steros commented 11 years ago

Yes I saw that. Sorry what is the solution? You link a file in that ticket which is the version I have and the problem there seems to refer to an older version. Seems I misunderstand something.

zulus commented 11 years ago

You have to build this plugin https://github.com/PHPsrc/org.phpsrc.eclipse.pti.core with my path, for example from my fork https://github.com/zulus/org.phpsrc.eclipse.pti.core/tree/pdt-3.1.2 (branch pdt-3.1.2)

steros commented 11 years ago

Thanks!

To complete for others:

steros commented 11 years ago

That fix does not work for eclipse juno 64bit version.

steros commented 11 years ago

https://github.com/PHPsrc/org.phpsrc.eclipse.pti.core/pull/1#issuecomment-15315031 This comment fixes the bug. I edited the code, may someone review this?

FYI: You have to edit the file https://github.com/PHPsrc/org.phpsrc.eclipse.pti.core/edit/master/src/org/phpsrc/eclipse/pti/core/launching/PHPToolExecutableLauncher.java with the code from the comment and export the plugin via eclipse as described above.

bglase commented 11 years ago

@steros, I'm not much of an expert on building plugins, and I cannot seem to get this plugin to compile in a way that others can install it. Following your steps above, I can install it into my local eclipse, but when I export it to an archive or a directory, other people can't 'Install New Software' and point to the resulting .jar file to install the PTI core. Do you have any way to get the update into an installable form?

steros commented 11 years ago

I'm not an expert too. But I guess you have to bundle the parts you need with the core. I guess you can do that with a feature project as described here: http://www.vogella.com/articles/EclipseFeatureProject/article.html

pulse00 commented 11 years ago

fyi: we have a solid launching infrastructure over there at PEX-Core.

The above mentioned solutions seems rather tedious for most users. Maybe we can try to consolidate the launching situation?

@skiera I guess you don't have much time, maybe i can help with this issue here? What's your plans for the PHPSrc plugins?

skiera commented 11 years ago

Hi Robert,

yes, unfortunately I have not much time for PTI and I will look for some one how is interested I taking over the further development. I hope to find some time next week to fix most of the actual problems and if you like, you can help me :-) I you like, we could skype and talk about it :-)

Best regards, Sven

-----Original message----- From: Robert Gründler notifications@github.com Sent: Wednesday 15th May 2013 14:20 To: PHPsrc/PHP-Tool-Integration PHP-Tool-Integration@noreply.github.com Cc: Sven Kiera sven@kiera.de Subject: Re: [PHP-Tool-Integration] can not use PHPUnit with eclipse juno 4.2.2 and PTI 1.6.0.R20111119000000 under Ubuntu 13.04 (#3)

fyi: we have a solid launching infrastructure over there at PEX-Core.

The above mentioned solutions seems rather tedious for most users. Maybe we can try to consolidate the launching situation?

@skiera I guess you don't have much time, maybe i can help with this issue here? What's your plans for the PHPSrc plugins?

— Reply to this email directly or view it on GitHub.