|
|
| Re: First Symfony plugin for Eclipse [message #40459 is a reply to message #39981 ] |
Wed, 28 November 2007 12:37   |
wurm007 Messages: 2 Registered: November 2007 Location: The Netherlands |
Junior Member |
|
|
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
[Updated on: Wed, 28 November 2007 12:39]
|
|
|
|
|
| Re: First Symfony plugin for Eclipse [message #40469 is a reply to message #39981 ] |
Wed, 28 November 2007 13:10   |
wurm007 Messages: 2 Registered: November 2007 Location: The Netherlands |
Junior Member |
|
|
Adding the PATH Variable did the trick
btw i am using eclipse 3.3
[Updated on: Wed, 28 November 2007 13:12]
|
|
|
|
| Re: First Symfony plugin for Eclipse [message #40530 is a reply to message #40517 ] |
Thu, 29 November 2007 03:16   |
neonard0 Messages: 10 Registered: September 2007 Location: Popayán - Cauca - Colomb... |
Junior Member |
|
|
Hi Alon !
I installed the 1.1.2 and now my problems on ubuntu 7.10 are gone. Nice work
You told me about ideas, so one idea is to group the options on the menu like the submenu that groups the commands about plugins and propel, those options outside in the main manu are a little annoying, so I personally think that is a good idea to create a new group called symfony in the menu and put there the options like "Clear Cache", "Clear Controller", etc.
Again it's a nice work congratulations.
oooh one more thing, havent you though about creating a parser for yml files, I dont know if this is usefull or just leave the way it is now. I told you i was thinkin about doing my own eclipse plugin for symofny, and i was thinkin create a parser using Antlr, I think in the future i can help you with that.
|
|
|
| Re: First Symfony plugin for Eclipse [message #40546 is a reply to message #40530 ] |
Thu, 29 November 2007 11:05   |
 |
al_n Messages: 320 Registered: May 2006 Location: The Netherlands |
Faithful Member |
|
|
The plug-in does include a YAML parser/validator.
You might need to enable it from the global/project preferences.
Attachment: yml.jpg
(Size: 107.14KB, Downloaded 2691 time(s))
[Updated on: Thu, 29 November 2007 11:08]
|
|
|
|
|
|
|
|
|
|
|
|
| Re: First Symfony plugin for Eclipse [message #40747 is a reply to message #39981 ] |
Mon, 03 December 2007 10:45   |
 |
al_n Messages: 320 Registered: May 2006 Location: The Netherlands |
Faithful Member |
|
|
Version 1.2.0 is available for download.
It includes some bug fixes and a new preferences page for the YAML editor.
Attachment: yml.jpg
(Size: 71.30KB, Downloaded 2256 time(s))
[Updated on: Wed, 05 December 2007 07:34]
|
|
|
|
|
|
|
|
|
| Re: First Symfony plugin for Eclipse [message #40783 is a reply to message #39981 ] |
Mon, 03 December 2007 16:47   |
Dia_FR Messages: 21 Registered: October 2007 Location: France |
Junior Member |
|
|
line numbers disappeared in yml files, is it normal ?
is there a way to bring them back ?
(usefull to select a whole line in 1 click)
[Updated on: Mon, 03 December 2007 16:49]
|
|
|
|
|
|
|
|
|
|
|
| Re: First Symfony plugin for Eclipse [message #40981 is a reply to message #40963 ] |
Wed, 05 December 2007 18:10   |
pixelslut Messages: 38 Registered: October 2006 |
Member |
|
|
Figured it out!
Ok for some reason when you do a pear install on OS X (at least when using an entropy php package) it just makes a symlink:
ln -s /usr/bin/symfony /usr/local/php5/lib/php/data/symfony/bin/symfony.php
Under linux the same install actually makes the file /usr/bin/symfony the contents of which look something like this:
#!/usr/bin/env php
<?php
/*
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
// project exists?
if (file_exists('config/config.php'))
{
include('config/config.php');
}
if (!isset($sf_symfony_lib_dir))
{
if (is_readable(dirname(__FILE__).'/../../lib/VERSION'))
{
// SVN
$sf_symfony_lib_dir = realpath(dirname(__FILE__).'/../../lib');
$sf_symfony_data_dir = realpath(dirname(__FILE__).'/..');
}
else
{
// PEAR
$sf_symfony_lib_dir = '/usr/share/php/symfony';
$sf_symfony_data_dir = '/usr/share/php/data/symfony';
if (!is_dir($sf_symfony_lib_dir))
{
throw new Exception('Unable to find symfony libraries');
}
}
}
include($sf_symfony_data_dir.'/bin/symfony.php');
As you can see this file contains the shebang and different logic, which at the end includes the symfony.php file.
So what i did was to rm the link /usr/bin/symfony and repelace it with the contents of this file, making the proper path changes tot he shebang, $sf_lib_dir, and $sf_data_dir.
Then change the ownership and permissions of the file:
sudo chown root:wheel /usr/bin/symfony
sudo chmod 755 /usr/bin/symfony
Restarted Eclipse and all is well.
Now i dodnt know if this difference in setup is because of OS X, or because im not using a standard php installtion but rather the Entropy package.
In any event these modifications seemed to solve the issue.
here is what my /usr/bin/symfony looks like now:
#!/usr/local/php5/bin/php
<?php
/*
* This file is part of the symfony package.
* (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
// project exists?
if (file_exists('config/config.php'))
{
include('config/config.php');
}
if (!isset($sf_symfony_lib_dir))
{
if (is_readable(dirname(__FILE__).'/../../lib/VERSION'))
{
// SVN
$sf_symfony_lib_dir = realpath(dirname(__FILE__).'/../../lib');
$sf_symfony_data_dir = realpath(dirname(__FILE__).'/..');
}
else
{
// PEAR
$sf_symfony_lib_dir = '/usr/local/php5/lib/php/symfony';
$sf_symfony_data_dir = '/usr/local/php5/lib/php/data/symfony';
if (!is_dir($sf_symfony_lib_dir))
{
throw new Exception('Unable to find symfony libraries');
}
}
}
include($sf_symfony_data_dir.'/bin/symfony.php');
[Updated on: Wed, 05 December 2007 18:15]
|
|
|
|
|
|
|
|