This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » development » Miscellaneous » First Symfony plugin for Eclipse  (5) 4 Vote(s)
Re: First Symfony plugin for Eclipse [message #41924 is a reply to message #41856 ] Tue, 18 December 2007 08:50 Go to previous messageGo to next message
al_n  is currently offline al_n
Messages: 321
Registered: May 2006
Location: The Netherlands
Faithful Member
cheap shared hosting Mad , should be up now.
Re: First Symfony plugin for Eclipse [message #42529 is a reply to message #39981 ] Mon, 31 December 2007 10:46 Go to previous messageGo to next message
damien  is currently offline damien
Messages: 2
Registered: November 2006
Location: Cannes, France
Junior Member
This plugins looks very nice, thanks.
Worked for me first try with Zend Neon beta 2.
Re: First Symfony plugin for Eclipse [message #42753 is a reply to message #39981 ] Fri, 04 January 2008 15:10 Go to previous messageGo to next message
dbruen  is currently offline dbruen
Messages: 53
Registered: February 2006
Member
Hi!

First of all: great job!

Considering the fact that some people in this list had problems setting up the path to the symfony-shellscript I would like to suggest a different approach. I have many different symfony-projects in my workspace, each of them having a symlink "symfony_src" in them, pointing to the version of symfony that is being used by that project. Therefore, in every project-directory there also has to be a symfony-shellscript. I would be great if the eclipse-plugin could look for the shellscript in the current project's root directory... that would make things much easier for people not having symfony in their PATH on purpose!

Is there any chance to make this behaviour configurable (i.e. where to look for the script?)

Cheers and two thumbs up,

Dan
Re: First Symfony plugin for Eclipse [message #42756 is a reply to message #42753 ] Fri, 04 January 2008 15:29 Go to previous messageGo to next message
pixelslut  is currently offline pixelslut
Messages: 38
Registered: October 2006
Member
I agree with dbruen. I happened to have a pear install that inever cleared out but i currently check out the lib and data dirs into each project. I know others use similar methods. It seems the best thing to do would be to make the path configurable similar to how the externals functionality currently works .

Moving forward it would also be great to beable to add task commands youself through a configuration similar to externals. This in someways is kind of redundant but at the same time... its one less thing you have to setup or import into a fresh workspace. For example i have a current project where im using sfPRopel13Plugin, so basically ive had to add all the propel -13 tasks to external programs myself. Not a big deal but it took me a while to do. And while they work they lack some of the features like font color, and total gui integration.

On a technical level would it be possible for you to somehow actually integrate the logic of the shell script into the plugin, All it basically does is check the location of symfony and map the libraries then execute the real symfony script located in $sf_data_dir/bin/symfony.php.

All that said it still is a nice piece of work..
Re: First Symfony plugin for Eclipse [message #43242 is a reply to message #42756 ] Fri, 11 January 2008 15:27 Go to previous messageGo to next message
al_n  is currently offline al_n
Messages: 321
Registered: May 2006
Location: The Netherlands
Faithful Member
To dbruen and pixelslut,

I'm aware of the fact that people are using different methods to use symfony on their development environment and I also gave it a thought myself and came to the conclusion that using a system-wide executable is still the best approach, I will explain;
If you are looking at the symfony executable which is installed with the symfony pear installation, which is an implementation of data/bin/symfony from SVN, you will see that it is actually a small php script which is doing the following:
1. Looking for the config/config.php file and if it exists it includes it and using the definitions in this file to load the right symfony distribution.
2. If no configuration was found it attempts to find the symfony distribution which is relative to the executed script in order to determent if the distribution is an SVN checkout/export.
3. As a last resort it is looking for the pear installation.

Using this script is insuring that the correct symfony version will be used for each project (with the exception of the init-project command). The use of different symfony versions is enabled by configuring the config/config.php file. In that way Symfoclipse will also use the correct symfony version for each project which can be different versions!

Trying to duplicate this functionality in JAVA will not be a smart move, the elegant solution is still to rely on PHP to make the decision of which symfony version to use.

My suggestion is to use a single symfony executable in the way I described. If you are not using a pear installation you can still extract it from SVN and implement it yourself. Again, if you are mixing symfony versions on your system you will have to execute the init-project command yourself if you wish to use a symfony version which is different the the script's default.

------------------------------------------------------------ --
About the request to extend the command list of the plugin, this is something you can expect to see in the future.



Re: First Symfony plugin for Eclipse [message #44432 is a reply to message #39981 ] Wed, 30 January 2008 12:51 Go to previous messageGo to next message
COil  is currently offline COil
Messages: 466
Registered: September 2006
Faithful Member

Great plugin ! Smile


my Symfony Blog - http://www.strangebuzz.com
The symfony web debug bar as a standalone library : PEAR::PHP_Debug
Re: First Symfony plugin for Eclipse [message #44488 is a reply to message #39981 ] Thu, 31 January 2008 00:13 Go to previous messageGo to next message
KRavEN  is currently offline KRavEN
Messages: 213
Registered: May 2007
Faithful Member
Alon,

Terrific plugin. I've been using it for a while and had a few requests if you are fielding them.

1. On the right click menu could you put all the symfony functions under a symfony submenu similar to how all the SVN functions are available under Team.

2. Could you add a button to the editor toolbar to save and clear cache.

Thats it. Thank you for your hard work on the plugin and for releasing it to the community.
Re: First Symfony plugin for Eclipse [message #44515 is a reply to message #39981 ] Thu, 31 January 2008 13:28 Go to previous messageGo to next message
pezetgee
Messages: 734
Registered: March 2006
Faithful Member
What about the commercial usage of the plugin?
Re: First Symfony plugin for Eclipse [message #44631 is a reply to message #39981 ] Sat, 02 February 2008 00:23 Go to previous messageGo to next message
Emacs  is currently offline Emacs
Messages: 201
Registered: December 2007
Location: Paris - Clichy
Faithful Member
Hello,

First of all, I would like to thank you al_n for you awesome plug-in. I've successfully installed it on my Windows XP workstation in my office.

But, at home, I'm running Symfony with Mac OS X Tiger. After having installed SymfoClipse plugin, I tried to launch the "symfony init-poject myProject" command, accessible with a mouse right click. But I've got the following error message :

Parse error: parse error in /Applications/MAMP/bin/php5/bin/symfony on line 34
Executing: symfony init-project MyProject


SymfoClipse seems to launch the symfony command with PHP4. When I use the symfony command in my Terminal, it works well !

Why does it fail with Symfoclipse ?

Could you help me please to solve this problem ?

Thanks a lot.

Hugo.

[Updated on: Sat, 02 February 2008 00:26]


PHP 5 / symfony webdevelopper at Sensio
Webmaster of http://www.apprendre-php.com (fr)
Co-author of "Bien Développer en PHP avec Symfony et Doctrine"
Re: First Symfony plugin for Eclipse [message #44646 is a reply to message #44631 ] Sat, 02 February 2008 18:50 Go to previous messageGo to next message
fotakis  is currently offline fotakis
Messages: 14
Registered: February 2008
Location: Athens, Greece
Junior Member
Hello,

Your problem is that the your php version used in the command line
is incorrect.

If you have installed php 5 from here

http://www.entropy.ch/software/macosx/php/ then you
should change the first line of your symfony script like this

Before:
#!/usr/bin/env php


To:
#!/usr/bin/env /usr/local/php5/bin/php


Then you should be fine. If you can't find where your symfony
script is type on the console

# which symfony


And go edit that file

EDIT:

Actually I reread your message, edit your $PATH to include your
new php, that is what I did

[Updated on: Sat, 02 February 2008 19:31]

Re: First Symfony plugin for Eclipse [message #44658 is a reply to message #44646 ] Sun, 03 February 2008 00:35 Go to previous messageGo to next message
Emacs  is currently offline Emacs
Messages: 201
Registered: December 2007
Location: Paris - Clichy
Faithful Member
Thanks a lot, your first solution works very well. I've replace the first line of the symfony shell by :

#!/usr/bin/env /Applications/MAMP/bin/php5/bin/php


It's ok now Wink

Thanks again ! I will enjoy Symfony with Eclipse and its SymfoClispe plugin.

Hugo.


PHP 5 / symfony webdevelopper at Sensio
Webmaster of http://www.apprendre-php.com (fr)
Co-author of "Bien Développer en PHP avec Symfony et Doctrine"
Re: First Symfony plugin for Eclipse [message #44710 is a reply to message #39981 ] Mon, 04 February 2008 09:21 Go to previous messageGo to next message
al_n  is currently offline al_n
Messages: 321
Registered: May 2006
Location: The Netherlands
Faithful Member
Thank you all for the feedback, I was unavailable for a week so I could not reply right away.
I'm glad to see that the OSX issues were resolved with community help, this is one os which, unfortunately, I'm not using.
For the rest, all the requests which came up will be considered for future release, when will that be... when time will allow it. Many people ask me about commercial use of the plug-in, this plug-in is something I'm doing on my free time and it started as a tool which I needed myself; Therefor if you are using it for commercial work I'm asking a symbolic license fee of 20 Euro per installation, merely to support the development efforts. To purchase a license a paypal transfer can be used to my email address which is mentioned on the plug-in's web site. What will you get in return, nothing; just an acknowledgment that you can use the plug-in for commercial use including any future releases within the same major version number.

Cool
Re: First Symfony plugin for Eclipse [message #45301 is a reply to message #39981 ] Mon, 11 February 2008 17:49 Go to previous messageGo to next message
mutantsurvivor  is currently offline mutantsurvivor
Messages: 4
Registered: February 2008
Location: London
Junior Member
I cant work out how to use this.

I am assuming that I can use the console to type in the command line commands I would usually in the DOS window (or putty onto the server) but I cannot type into it.

Have I not set something up right or am I missing the point?
Re: First Symfony plugin for Eclipse [message #45342 is a reply to message #45301 ] Tue, 12 February 2008 10:05 Go to previous messageGo to next message
al_n  is currently offline al_n
Messages: 321
Registered: May 2006
Location: The Netherlands
Faithful Member
The commands are available by right-clicking a php project folder, a symfony project folder or a symfony application folder. The console will display the results.
On top of that you have a new yml editor.
Re: First Symfony plugin for Eclipse [message #45352 is a reply to message #45342 ] Tue, 12 February 2008 10:52 Go to previous messageGo to next message
mutantsurvivor  is currently offline mutantsurvivor
Messages: 4
Registered: February 2008
Location: London
Junior Member
Ah yes I see now. Does that include all symfony commands or will I still need to use the Command Line for the occasional rarely usesd command?

Many thanks
Re: First Symfony plugin for Eclipse [message #46193 is a reply to message #39981 ] Sat, 23 February 2008 10:19 Go to previous messageGo to next message
rhasan82  is currently offline rhasan82
Messages: 2
Registered: February 2008
Location: Dhaka, Bangladesh
Junior Member
Where can I find init-module command ? I have already created a project and an application with this plugin. I am using windows XP.
Re: First Symfony plugin for Eclipse [message #46254 is a reply to message #46193 ] Mon, 25 February 2008 09:00 Go to previous messageGo to next message
fotakis  is currently offline fotakis
Messages: 14
Registered: February 2008
Location: Athens, Greece
Junior Member
If you right click on the app folder you will get an Int module command on the menu.

[Updated on: Mon, 25 February 2008 09:01]

Re: First Symfony plugin for Eclipse [message #47595 is a reply to message #39981 ] Wed, 12 March 2008 00:41 Go to previous messageGo to next message
vadzim  is currently offline vadzim
Messages: 1
Registered: March 2008
Junior Member
I have problem with plugin (Kubuntu).

Cannot run program "symfony" (in directory "/home/vadzim/workspace/symfony"): java.io.IOException: error=2, No such file or directory

Help me, please.

[Updated on: Wed, 12 March 2008 00:45]

icon9.gif  Re: First Symfony plugin for Eclipse [message #49018 is a reply to message #39981 ] Wed, 02 April 2008 13:23 Go to previous messageGo to next message
faramarz  is currently offline faramarz
Messages: 1
Registered: April 2008
Junior Member
the download site (http://noy.cc/symfoclipse/) doesn't work. Sad
does anybody know any mirror sites?
am I the only one having this problem?
Re: First Symfony plugin for Eclipse [message #49059 is a reply to message #46254 ] Thu, 03 April 2008 07:09 Go to previous messageGo to next message
rhasan82  is currently offline rhasan82
Messages: 2
Registered: February 2008
Location: Dhaka, Bangladesh
Junior Member
fotakis wrote on Mon, 25 February 2008 13:30

If you right click on the app folder you will get an Int module command on the menu.



Thanks, it works.
Re: First Symfony plugin for Eclipse [message #49462 is a reply to message #39981 ] Tue, 08 April 2008 16:05 Go to previous messageGo to next message
The_Fakir  is currently offline The_Fakir
Messages: 3
Registered: April 2008
Junior Member
Hi all,

This plugins seems great, but I'm so dumb I can't get it work...

I first had the problem already discussed here, symfony.bat wasn't in the path => fixed

Now, I got a nice welcome message "Thank you for using infoclipse..." in the Console, with no more error message, but when I try to launch one command, nothing happens... When it needs parameters (like Disable application), I got the form asking me in which environment i should disable it, but when I click "OK", the window closes, then nothing => simply nothing (no error, no message, no expected hard disk activity, no further window, no eclipse hang or freeze or bug)

My configuration : Laptop PC / XP PRO / EasyPHP 2.0 (php5) / Eclipse 3.3.2 / Symfony sandbox...

What do I miss ? Where can I look to find the problem ?

Thank you in advance.

[Updated on: Tue, 08 April 2008 16:29]

Re: First Symfony plugin for Eclipse [message #49586 is a reply to message #49462 ] Wed, 09 April 2008 18:45 Go to previous messageGo to next message
The_Fakir  is currently offline The_Fakir
Messages: 3
Registered: April 2008
Junior Member
Ok, it was EasyPHP's fault,

I installed xampp, and symphony with pear and all worked fine.

Great plugin !
Re: First Symfony plugin for Eclipse [message #49926 is a reply to message #39981 ] Mon, 14 April 2008 17:35 Go to previous messageGo to next message
mutantsurvivor  is currently offline mutantsurvivor
Messages: 4
Registered: February 2008
Location: London
Junior Member
Any idea why the drag and drop doesn't work when I am using symfoclipse?
Re: First Symfony plugin for Eclipse [message #51695 is a reply to message #39981 ] Fri, 09 May 2008 15:33 Go to previous messageGo to next message
danielh
Messages: 32
Registered: December 2007
Location: Australia
Member
Is there currently a version of symfoclipse for Symfony 1.1? Or is there one intended for future release? When I try Init Project with Symfony 1.1 I get no feedback at all and nothing happens.

Thanks
Re: First Symfony plugin for Eclipse (Having a problem) [message #51876 is a reply to message #39981 ] Tue, 13 May 2008 11:30 Go to previous messageGo to next message
ravigurbaxani  is currently offline ravigurbaxani
Messages: 2
Registered: May 2008
Junior Member
Dear Sir,
I am trying to install Symfoclipse for my eclipse. I visited Help—>Software Updates—>Find and Install and added the URL mentioned here. And this is what I get as an response

Network connection problems encountered during search.
Unable to access “http://noy.cc/symfoclipse”.
Error parsing site stream. [Premature end of file.]
Premature end of file.
Error parsing site stream. [Premature end of file.]
Premature end of file.


I have already set the HTTP Proxy
Thanks in advance

Re: First Symfony plugin for Eclipse [message #51964 is a reply to message #39981 ] Wed, 14 May 2008 11:26 Go to previous messageGo to next message
Frosty  is currently offline Frosty
Messages: 21
Registered: May 2008
Location: France
Junior Member
Quote:

Unable to access “http://noy.cc/symfoclipse”.
Error parsing site stream. [Premature end of file.]
Premature end of file.
Error parsing site stream. [Premature end of file.]
Premature end of file.

Same here Confused
Re: First Symfony plugin for Eclipse [message #52009 is a reply to message #39981 ] Wed, 14 May 2008 20:51 Go to previous messageGo to next message
al_n  is currently offline al_n
Messages: 321
Registered: May 2006
Location: The Netherlands
Faithful Member
I just tested the site and found no problem. Installation went just fine.
Re: First Symfony plugin for Eclipse [message #52050 is a reply to message #39981 ] Thu, 15 May 2008 10:30 Go to previous messageGo to next message
Frosty  is currently offline Frosty
Messages: 21
Registered: May 2008
Location: France
Junior Member
Huh Confused
I will give it a try at home, maybe this evening.
At work there is a proxy (I guess that the problem is linked to that), but I have configured eclipse accordingly (window > preferences > general > network connections > manual proxy config...).
However, I have similar problems trying to update existing eclipse components :

Network connection problems encountered during search.
  Unable to access "http://download.eclipse.org/modeling/emf/updates/".
    Error parsing site stream. [Premature end of file.]
    Premature end of file.
    Error parsing site stream. [Premature end of file.]
    Premature end of file.
  [...]
  Unable to access "http://update.eclipse.org/updates/3.3".
    Error parsing site stream. [Premature end of file.]
    Premature end of file.
    Error parsing site stream. [Premature end of file.]
    Premature end of file.


So the problem certainly doesn't comes from Symfoclipse's site but rather from eclipse itself / my eclipse config / my company's proxy...

I will keep you informed.
Re: First Symfony plugin for Eclipse [message #52054 is a reply to message #39981 ] Thu, 15 May 2008 10:39 Go to previous messageGo to next message
Frosty  is currently offline Frosty
Messages: 21
Registered: May 2008
Location: France
Junior Member
Problem fixed...
I configured eclipse's proxy too quicky, only by a copy/paste of a "proxy.pac" URL used for Internet Explorer (tools > internet options > connections > lan settings > use auto config script), and eclipse does not expects a configuration script URL but a proxy IP/hostname + port...

It's Ok now Smile

Rolling Eyes
Re: First Symfony plugin for Eclipse [message #52058 is a reply to message #52054 ] Thu, 15 May 2008 10:46 Go to previous messageGo to next message
ravigurbaxani  is currently offline ravigurbaxani
Messages: 2
Registered: May 2008
Junior Member
Dear Alan,
The problem is fixed for me also.. I configured the proxy....

Thanks a lot and I am really grateful to you for making such an amazing plugin

icon14.gif  Re: First Symfony plugin for Eclipse [message #52284 is a reply to message #51695 ] Mon, 19 May 2008 14:40 Go to previous messageGo to next message
Rider  is currently offline Rider
Messages: 5
Registered: May 2008
Location: Italy
Junior Member
danielh wrote on Fri, 09 May 2008 15:33

Is there currently a version of symfoclipse for Symfony 1.1? Or is there one intended for future release? When I try Init Project with Symfony 1.1 I get no feedback at all and nothing happens.

Thanks


many thanks danielh !!!

I'm brand new on Symfony and I was running directly the 1.1 RC1, so I was getting insane on this Laughing

Now I'm on Symfony 1.0.16 and everything is working !
Re: First Symfony plugin for Eclipse [message #52305 is a reply to message #39981 ] Tue, 20 May 2008 04:59 Go to previous messageGo to next message
samon127  is currently offline samon127
Messages: 12
Registered: April 2008
Junior Member
When will symfoclipse suppose symfony 1.1?

I wouldn't write any code without this plugin!
Re: First Symfony plugin for Eclipse [message #52584 is a reply to message #52305 ] Fri, 23 May 2008 11:31 Go to previous messageGo to next message
al_n  is currently offline al_n
Messages: 321
Registered: May 2006
Location: The Netherlands
Faithful Member
samon127 wrote on Tue, 20 May 2008 04:59

When will symfoclipse suppose symfony 1.1?

I wouldn't write any code without this plugin!

When Symfony 1.1 will be officially released.
Re: First Symfony plugin for Eclipse [message #52616 is a reply to message #39981 ] Fri, 23 May 2008 20:02 Go to previous messageGo to next message
wtfowned  is currently offline wtfowned
Messages: 24
Registered: May 2008
Junior Member
Hello to all .
I cant understand how can i use symfony with eclipse ( Unix ) .
I started it .
Downloaded plugin .
Opened project .
What is next ? What include path should i setup then ? And there is no any symfony.bat in PEAR symfony setup , but there is in sandbox .. Or i cant understand smth ?
Can anyone explain properly plz ...
thx Wink
Re: First Symfony plugin for Eclipse [message #52655 is a reply to message #39981 ] Sun, 25 May 2008 09:34 Go to previous messageGo to next message
samon127  is currently offline samon127
Messages: 12
Registered: April 2008
Junior Member
al_n:

In the Symfony View, When I click the F3 ( you know this is very useful), I couldn't jump from a project into the symfony base dir! Usually I need to see how to set the parameter of a helper!

How to solve this problem! thanks!

====================

solved this problem! just add an include path on your project!

[Updated on: Sun, 25 May 2008 10:32]

Re: First Symfony plugin for Eclipse [message #52714 is a reply to message #39981 ] Mon, 26 May 2008 14:08 Go to previous messageGo to next message
wtfowned  is currently offline wtfowned
Messages: 24
Registered: May 2008
Junior Member
.

[Updated on: Mon, 26 May 2008 18:41]

Re: First Symfony plugin for Eclipse [message #54290 is a reply to message #39981 ] Tue, 17 June 2008 19:26 Go to previous messageGo to next message
Stasy  is currently offline Stasy
Messages: 30
Registered: January 2007
Member
I'm trying to get Symfoclipse work with PDT and Symfony 1.1RC2 but when I click a Symfoclipse command (e.g. "Clear Cache") I get this exception:

!ENTRY org.eclipse.ui 4 0 2008-06-17 19:12:57.943
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NumberFormatException: For input string: "(C:"
	at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
	at java.lang.Double.valueOf(Unknown Source)
	at cc.noy.eclipse.symfony.popup.actions.SymfonyAction.is1_1(SymfonyAction.java:89)
	at cc.noy.eclipse.symfony.popup.actions.SymfonyClearCacheAction.run(SymfonyClearCacheAction.java:14)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
	at cc.noy.eclipse.symfony.popup.actions.SymfonyAction.runWithEvent(SymfonyAction.java:101)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1173)

My PDT installation runs on WinXP.
I used Symfoclipse before with Symfony 1.0 and it worked fine!
Does someone have an idea why Symfoclipse crashes with Symfony 1.1RC2? Are there any settings that I may have forgotten?

Thanks!

[Updated on: Tue, 17 June 2008 19:28]

Re: First Symfony plugin for Eclipse [message #54295 is a reply to message #54290 ] Tue, 17 June 2008 21:34 Go to previous messageGo to next message
Stasy  is currently offline Stasy
Messages: 30
Registered: January 2007
Member
Inspecting Symfoclipse's source code with Cavaj revealed that Symfoclipse tries to detect the Symfony version via the "symfony -V" command (sorry for sniffing the source code but Alon (the author of the plugin) did not answer my email and as I'm an impatient person... Wink ).

Symfoclipse tries to detect Symfony's version number by analyzing the substring after the last space character in the output string of the "symfony -V" command.
I entered "Symfony -V" in a console window and the result was
symfony version 1.1.0-RC2 (C:\Programme\xampp\php\PEAR\symfony)

As the substring after the last space is expected to be something like "1.1.0" but actually is "(C:\Programme\xampp\php\PEAR\symfony)" a java NumberFormatException is thrown as result.

So I decided to patch Symfony's sfSymfonyCommandApplication.class.php in order to let "symfony -V" deliver a version number string that will not lead to this NumberFormatException.

So if you'd like to run Symfoclipse with Symfony 1.1.0RC2 simply edit the file sfSymfonyCommandApplication.class.php and change the line
return sprintf('%s version %s (%s)', $this->getName(), $this->formatter->format($this->getVersion(), 'INFO'), sfConfig::get('sf_symfony_lib_dir'))."\n";
to
return sprintf('%s version %s', $this->getName(), $this->formatter->format($this->getVersion(), 'INFO'))."\n";

Works fine for me!
Re: First Symfony plugin for Eclipse [message #54448 is a reply to message #40459 ] Thu, 19 June 2008 17:24 Go to previous messageGo to next message
thierrybo  is currently offline thierrybo
Messages: 10
Registered: June 2008
Junior Member
wurm007 wrote on Wed, 28 November 2007 12:37

Hi All

Great plugin works well on linux
But is still gives a error when i try it under windows.
I use symfoclipse version 1.1.1
Cannot run program "symfony.bat" (in directory "C:\eclipse\workspace\test"): CreateProcess error=2, Het systeem kan het opgegeven bestand niet vinden
Executing: symfony clear-cache

symfony.bat exsist in the corresponding directory so thats strange.
Does anybody now what when wrong here


I also discovered that adding the path could not be enough. Symfoclipse has a bug if you wrote the path with quotes in PATH variable.

I had
"C:\Programs\xampp\php"
and I always get the error.
C:\Programs\xampp\php
resolved this.

[Updated on: Thu, 19 June 2008 17:30]

Re: First Symfony plugin for Eclipse [message #54858 is a reply to message #39981 ] Thu, 26 June 2008 04:24 Go to previous messageGo to previous message
marfillaster  is currently offline marfillaster
Messages: 44
Registered: April 2008
Member
For symfony 1.1 users, you can try this

Add this plugin into your eclipse
- PDT
- Yaml http://grupy.net/yamlEditor/
- Wicked Shell, for cli

Previous Topic:The vim colorscheme of symfony ?
Next Topic:How Did They Do That?
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software