Hi, Im new to this list so hope following is not a big FAQ. Well, Im using geany 0.18 mainly for php scripts. I cant get the error indication when compiling the script. In Edit-Preferences-Editor-Use of indicators to show compile error" is set I tried some "manipulations" but I cant get the error indicator. Surely it worked in a previous version, but unluckily had to change distribution and install everhting from scrach and now...
Then Ive another similar problem, similar since I think that the origin is the same. Ive setted line wrap at 72 but doesnt work, the line doesnt breaks. This one worked too in a precedent version of Geany.
Thank you in advance
On Fri, 11 Dec 2009 18:48:32 +0100, Galahad wrote:
Hi and welcome,
Well, Im using geany 0.18 mainly for php scripts. I cant get the error indication when compiling the script. In Edit-Preferences-Editor-Use of indicators to show compile error" is set I tried some "manipulations" but I cant get the error indicator.
What do you use as Compile command? Something like: php -l "%f" should work. And be sure to use the Compile command in Geany for the PHP file to get it checked for correct syntax.
Then Ive another similar problem, similar since I think that the origin is the same. Ive setted line wrap at 72 but doesnt work, the line doesnt breaks. This one worked too in a precedent version of Geany.
Can you go into more detail? There is a difference between line breaking and line wrapping. While wrapping is just a visual help which doesn't touch the text itself, line breaking actually inserts line breaks into the text. Which one do you want and which settings do you have enabled?
Regards, Enrico
Enrico Tröger ha scritto il 12/17/2009 08:11 AM:
What do you use as Compile command? Something like: php -l "%f" should work. And be sure to use the Compile command in Geany for the PHP file to get it checked for correct syntax.
I really dont know what command I use, I just click on the icon "Compile" in the toolbar. I gave a glance in Preferences but didnt see the option to insert that command
Can you go into more detail? There is a difference between line breaking and line wrapping. While wrapping is just a visual help which doesn't touch the text itself, line breaking actually inserts line breaks into the text. Which one do you want and which settings do you have enabled?
:-) Your right, I used the wrong word. This so-called problem is no more present, it was my fault.
Galahad Emsworth galahad.emsworth@gmail.com dixit:
What do you use as Compile command? Something like: php -l "%f" should work. And be sure to use the Compile command in Geany for the PHP file to get it checked for correct syntax.
I really dont know what command I use, I just click on the icon "Compile" in the toolbar. I gave a glance in Preferences but didnt see the option to insert that command
Build --> Set includes & arguments
Denis ________________________________
la vita e estrany
spir ha scritto il 12/17/2009 11:43 AM:
Galahad Emsworthgalahad.emsworth@gmail.com dixit:
What do you use as Compile command? Something like: php -l "%f" should work. And be sure to use the Compile command in Geany for the PHP file to get it checked for correct syntax.
I really dont know what command I use, I just click on the icon "Compile" in the toolbar. I gave a glance in Preferences but didnt see the option to insert that command
Build --> Set includes& arguments
php -l "%f" is already present but when an error is present I dont get any indication.
Am Donnerstag, den 17.12.2009, 15:39 +0100 schrieb Galahad Emsworth:
spir ha scritto il 12/17/2009 11:43 AM:
Galahad Emsworthgalahad.emsworth@gmail.com dixit:
What do you use as Compile command? Something like: php -l "%f" should work. And be sure to use the Compile command in Geany for the PHP file to get it checked for correct syntax.
I really dont know what command I use, I just click on the icon "Compile" in the toolbar. I gave a glance in Preferences but didnt see the option to insert that command
Build --> Set includes& arguments
php -l "%f" is already present but when an error is present I dont get any indication.
Do you have the messages window enabled in View->Show Message Window?
Actually, when I am trying to compile a php script with an error, the messages window pops up with the compiler tab enabled and shows the error, see [1]. If there isn't any syntactically error in the script and the messages window is not enabled in the View menu, there is just a "Compilation finished successfully" in the status bar. I think this behaviour is okay so far and also can not remember it didn't work any time.
[1] http://imgur.com/E6wLG [2] http://imgur.com/XBg0b
Regarding those screenshots, would it be possible to describe what you expect in more detail?
Regards, Dominic
Dominic Hopf ha scritto il 12/18/2009 10:59 PM:
Actually, when I am trying to compile a php script with an error, the messages window pops up with the compiler tab enabled and shows the error, see [1].
Yes I know :-) And the flag in view -show messages is enabled
This one shows an underlined error in return false, this is what I miss.
On Fri, 18 Dec 2009 23:34:15 +0100, Galahad wrote:
Dominic Hopf ha scritto il 12/18/2009 10:59 PM:
Actually, when I am trying to compile a php script with an error, the messages window pops up with the compiler tab enabled and shows the error, see [1].
Yes I know :-) And the flag in view -show messages is enabled
I'm a bit out of ideas.
Are the actual errors/warnings shown in the In the messages window, Compile tab? Or are these missing as well?
Regards, Enrico
Enrico Tröger ha scritto il 12/20/2009 12:53 AM:
Yes I know :-) And the flag in view -show messages is enabled
I'm a bit out of ideas.
Are the actual errors/warnings shown in the In the messages window, Compile tab? Or are these missing as well?
I only get this information ================================== php -l "prodotti.php" (in directory: /ZENW/zan/Gestione/globale) Compilation failed. Errors parsing prodotti.php ================================== but no indications in the editor window
Just a silly question, but, do you get errors when you run the php compile command in that directory in a terminal? Or do you jus get the compilation failed message?
Cheers Lex
2009/12/20 Galahad Emsworth galahad.emsworth@gmail.com:
Enrico Tröger ha scritto il 12/20/2009 12:53 AM:
Yes I know :-) And the flag in view -show messages is enabled
I'm a bit out of ideas.
Are the actual errors/warnings shown in the In the messages window, Compile tab? Or are these missing as well?
I only get this information
php -l "prodotti.php" (in directory: /ZENW/zan/Gestione/globale) Compilation failed. Errors parsing prodotti.php ================================== but no indications in the editor window _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Lex Trotman ha scritto il 12/20/2009 11:47 AM:
Just a silly question, but, do you get errors when you run the php compile command in that directory in a terminal? Or do you jus get the compilation failed message?
The second one. I use the GUI interface, click on Conpile button and that is what I get
On Sun, 20 Dec 2009 09:00:01 +0100, Galahad wrote:
Enrico Tröger ha scritto il 12/20/2009 12:53 AM:
Yes I know :-) And the flag in view -show messages is enabled
I'm a bit out of ideas.
Are the actual errors/warnings shown in the In the messages window, Compile tab? Or are these missing as well?
I only get this information
php -l "prodotti.php" (in directory: /ZENW/zan/Gestione/globale) Compilation failed. Errors parsing prodotti.php ================================== but no indications in the editor window
Ok, this explains it. You don't get any indications in the editor window because your PHP command doesn't output any such information. No idea what PHP version/implementation you are using but it doesn't output a file/line error information, so Geany can't know what it should highlight in the sources.
Normally, you should get some output like the following:
php -l "php.const.php" (in directory: /misc/tmp/testfiles_geany) Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in php.const.php on line 15 Errors parsing php.const.php Compilation failed.
The second line is important as there is the information in which line an error occurred.
As Lex suggested, try to run the php -l command on the command line to see whether there is such an output.
Regards, Enrico
Enrico Tröger ha scritto il 12/20/2009 12:13 PM:
php -l "php.const.php" (in directory: /misc/tmp/testfiles_geany) Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in php.const.php on line 15 Errors parsing php.const.php Compilation failed.
The second line is important as there is the information in which line an error occurred.
As Lex suggested, try to run the php -l command on the command line to see whether there is such an output.
I tried and get no additional informations. I think I have to check php.ini for error ouputs
Let you know