GNU bug report logs - #17477
flymake-mode looks at wrong PHP binary

Previous Next

Package: emacs;

Reported by: Joe Borġ <cyborg101010 <at> gmail.com>

Date: Mon, 12 May 2014 16:50:03 UTC

Severity: minor

Tags: notabug

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17477 in the body.
You can then email your comments to 17477 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#17477; Package emacs. (Mon, 12 May 2014 16:50:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Joe Borġ <cyborg101010 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 12 May 2014 16:50:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Joe Borġ <cyborg101010 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: flymake-mode looks at wrong PHP binary
Date: Mon, 12 May 2014 17:26:25 +0100
[Message part 1 (text/plain, inline)]
When executing M+x flymake mode, I get

Flymake: Configuration error has occured while running (/usr/bin/php -f
viewrequest_flymake.php -l). Flymake will be switched OFF

My php is in /usr/local/bin/php

This was installed using package-install, with marmalade repository set.

Regards,
Joseph David Borġ
josephb.org
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17477; Package emacs. (Mon, 12 May 2014 17:16:01 GMT) Full text and rfc822 format available.

Message #8 received at 17477 <at> debbugs.gnu.org (full text, mbox):

From: Leo Liu <sdl.web <at> gmail.com>
To: Joe Borġ <cyborg101010 <at> gmail.com>
Cc: 17477 <at> debbugs.gnu.org
Subject: Re: bug#17477: flymake-mode looks at wrong PHP binary
Date: Tue, 13 May 2014 01:15:03 +0800
On 2014-05-13 00:26 +0800, Joe Borġ wrote:
> When executing M+x flymake mode, I get
>
> Flymake: Configuration error has occured while running (/usr/bin/php -f
> viewrequest_flymake.php -l). Flymake will be switched OFF
>
> My php is in /usr/local/bin/php
>
> This was installed using package-install, with marmalade repository set.

Could it be that you also have /usr/bin/php? I see flymake-php-init has
no hardcoded path.

Leo




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17477; Package emacs. (Mon, 12 May 2014 17:17:02 GMT) Full text and rfc822 format available.

Message #11 received at 17477 <at> debbugs.gnu.org (full text, mbox):

From: Joe Borġ <cyborg101010 <at> gmail.com>
To: Leo Liu <sdl.web <at> gmail.com>
Cc: 17477 <at> debbugs.gnu.org
Subject: Re: bug#17477: flymake-mode looks at wrong PHP binary
Date: Mon, 12 May 2014 18:16:48 +0100
[Message part 1 (text/plain, inline)]
Hi Leo,

No, only where stated.

Thanks
On 12 May 2014 18:15, "Leo Liu" <sdl.web <at> gmail.com> wrote:

> On 2014-05-13 00:26 +0800, Joe Borġ wrote:
> > When executing M+x flymake mode, I get
> >
> > Flymake: Configuration error has occured while running (/usr/bin/php -f
> > viewrequest_flymake.php -l). Flymake will be switched OFF
> >
> > My php is in /usr/local/bin/php
> >
> > This was installed using package-install, with marmalade repository set.
>
> Could it be that you also have /usr/bin/php? I see flymake-php-init has
> no hardcoded path.
>
> Leo
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17477; Package emacs. (Mon, 12 May 2014 19:09:02 GMT) Full text and rfc822 format available.

Message #14 received at 17477 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Joe Borġ <cyborg101010 <at> gmail.com>
Cc: Leo Liu <sdl.web <at> gmail.com>, 17477 <at> debbugs.gnu.org
Subject: Re: bug#17477: flymake-mode looks at wrong PHP binary
Date: Mon, 12 May 2014 15:08:48 -0400
Joe Borġ wrote:

>> > When executing M+x flymake mode, I get
>> >
>> > Flymake: Configuration error has occured while running (/usr/bin/php -f
>> > viewrequest_flymake.php -l). Flymake will be switched OFF
>> >
>> > My php is in /usr/local/bin/php

I don't know what to tell you.
flymake just calls "php".
It sure sounds like something thinks you have a /usr/bin/php.

>> > This was installed using package-install, with marmalade repository set.

Why is this necessary? flymake is part of Emacs. What did you install?
What version of Emacs is this?

Does this happen with emacs -Q?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17477; Package emacs. (Mon, 12 May 2014 19:29:01 GMT) Full text and rfc822 format available.

Message #17 received at 17477 <at> debbugs.gnu.org (full text, mbox):

From: Joe Borġ <cyborg101010 <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Leo Liu <sdl.web <at> gmail.com>, 17477 <at> debbugs.gnu.org
Subject: Re: bug#17477: flymake-mode looks at wrong PHP binary
Date: Mon, 12 May 2014 20:28:05 +0100
[Message part 1 (text/plain, inline)]
I promise you there is no /usr/bin/php.

I installed flymake-php and want to turn it on.

Emacs 24.3.1 - I've not tried with -Q.



Regards,
Joseph David Borġ
josephb.org


On 12 May 2014 20:08, Glenn Morris <rgm <at> gnu.org> wrote:

> Joe Borġ wrote:
>
> >> > When executing M+x flymake mode, I get
> >> >
> >> > Flymake: Configuration error has occured while running (/usr/bin/php
> -f
> >> > viewrequest_flymake.php -l). Flymake will be switched OFF
> >> >
> >> > My php is in /usr/local/bin/php
>
> I don't know what to tell you.
> flymake just calls "php".
> It sure sounds like something thinks you have a /usr/bin/php.
>
> >> > This was installed using package-install, with marmalade repository
> set.
>
> Why is this necessary? flymake is part of Emacs. What did you install?
> What version of Emacs is this?
>
> Does this happen with emacs -Q?
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17477; Package emacs. (Mon, 12 May 2014 19:32:02 GMT) Full text and rfc822 format available.

Message #20 received at 17477 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Joe Borġ <cyborg101010 <at> gmail.com>
Cc: Leo Liu <sdl.web <at> gmail.com>, 17477 <at> debbugs.gnu.org
Subject: Re: bug#17477: flymake-mode looks at wrong PHP binary
Date: Mon, 12 May 2014 15:31:53 -0400
Then my crystal ball says that you are using this

https://github.com/ejmr/php-mode/blob/master/php-mode.el

which is

1) not part of Emacs
2) broken in exactly the way you describe (default value of php-executable).

So you should report this to whoever maintains it.

(NB crystal ball comes with no warranty.)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17477; Package emacs. (Mon, 12 May 2014 19:34:01 GMT) Full text and rfc822 format available.

Message #23 received at 17477 <at> debbugs.gnu.org (full text, mbox):

From: Joe Borġ <cyborg101010 <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Leo Liu <sdl.web <at> gmail.com>, 17477 <at> debbugs.gnu.org
Subject: Re: bug#17477: flymake-mode looks at wrong PHP binary
Date: Mon, 12 May 2014 20:33:13 +0100
[Message part 1 (text/plain, inline)]
Yes, you're right - but why does that effect flymake-php?  I ask so I can
try and fix it.



Regards,
Joseph David Borġ
josephb.org


On 12 May 2014 20:31, Glenn Morris <rgm <at> gnu.org> wrote:

>
> Then my crystal ball says that you are using this
>
> https://github.com/ejmr/php-mode/blob/master/php-mode.el
>
> which is
>
> 1) not part of Emacs
> 2) broken in exactly the way you describe (default value of
> php-executable).
>
> So you should report this to whoever maintains it.
>
> (NB crystal ball comes with no warranty.)
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17477; Package emacs. (Mon, 12 May 2014 19:40:02 GMT) Full text and rfc822 format available.

Message #26 received at 17477 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Joe Borġ <cyborg101010 <at> gmail.com>
Cc: Leo Liu <sdl.web <at> gmail.com>, 17477 <at> debbugs.gnu.org
Subject: Re: bug#17477: flymake-mode looks at wrong PHP binary
Date: Mon, 12 May 2014 15:39:10 -0400
Joe Borġ wrote:

> Yes, you're right - but why does that effect flymake-php?  I ask so I can
> try and fix it.

Because they load flymake.el, then clobber its flymake-php-init function
with their own version, which is identical to the default version apart
from using "/usr/bin/php" (by default), thus breaking flymake.

Simply (setq php-executable "php") and it should work.

I assume they want to cater for cases where "php" is not installed as
"php"; if there are any.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17477; Package emacs. (Tue, 13 May 2014 06:00:05 GMT) Full text and rfc822 format available.

Message #29 received at 17477 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Joe Borġ <cyborg101010 <at> gmail.com>
Cc: Leo Liu <sdl.web <at> gmail.com>, 17477 <at> debbugs.gnu.org
Subject: Re: bug#17477: flymake-mode looks at wrong PHP binary
Date: Tue, 13 May 2014 01:59:57 -0400
I'm going to close this because I don't think there is any bug in Emacs
here; but feel free to keep discussing it here if you like.

(If "php" is commonly installed as something other than "php", perhaps
flymake.el needs a flymake-php-program option, similar to the existing
flymake-xml-program. Likewise for "perl" and "texify".)




Added tag(s) notabug; removed tag(s) moreinfo. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 13 May 2014 06:01:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 17477 <at> debbugs.gnu.org and Joe Borġ <cyborg101010 <at> gmail.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 13 May 2014 06:01:04 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17477; Package emacs. (Tue, 13 May 2014 08:11:01 GMT) Full text and rfc822 format available.

Message #36 received at 17477 <at> debbugs.gnu.org (full text, mbox):

From: Joe Borġ <cyborg101010 <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Leo Liu <sdl.web <at> gmail.com>, 17477 <at> debbugs.gnu.org
Subject: Re: bug#17477: flymake-mode looks at wrong PHP binary
Date: Tue, 13 May 2014 09:09:40 +0100
[Message part 1 (text/plain, inline)]
Thanks for your help.  I'm going to create a pull request with a fix for
them.



Regards,
Joseph David Borġ
josephb.org


On 13 May 2014 06:59, Glenn Morris <rgm <at> gnu.org> wrote:

>
> I'm going to close this because I don't think there is any bug in Emacs
> here; but feel free to keep discussing it here if you like.
>
> (If "php" is commonly installed as something other than "php", perhaps
> flymake.el needs a flymake-php-program option, similar to the existing
> flymake-xml-program. Likewise for "perl" and "texify".)
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17477; Package emacs. (Tue, 13 May 2014 15:46:02 GMT) Full text and rfc822 format available.

Message #39 received at 17477 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Joe Borġ <cyborg101010 <at> gmail.com>
Cc: Leo Liu <sdl.web <at> gmail.com>, 17477 <at> debbugs.gnu.org
Subject: Re: bug#17477: flymake-mode looks at wrong PHP binary
Date: Tue, 13 May 2014 11:45:35 -0400
Joe Borġ wrote:

> Thanks for your help.  I'm going to create a pull request with a fix for
> them.

Great! (AFAICS, just defaulting php-executable to "php" would be enough.)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#17477; Package emacs. (Tue, 13 May 2014 15:57:02 GMT) Full text and rfc822 format available.

Message #42 received at 17477 <at> debbugs.gnu.org (full text, mbox):

From: Joe Borġ <cyborg101010 <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: Leo Liu <sdl.web <at> gmail.com>, 17477 <at> debbugs.gnu.org
Subject: Re: bug#17477: flymake-mode looks at wrong PHP binary
Date: Tue, 13 May 2014 16:56:15 +0100
[Message part 1 (text/plain, inline)]
Yes, that does work fine.  Just a bloody nuisance!  It should default to
`php` or `/usr/bin/env php`



Regards,
Joseph David Borġ
josephb.org


On 13 May 2014 16:45, Glenn Morris <rgm <at> gnu.org> wrote:

> Joe Borġ wrote:
>
> > Thanks for your help.  I'm going to create a pull request with a fix for
> > them.
>
> Great! (AFAICS, just defaulting php-executable to "php" would be enough.)
>
[Message part 2 (text/html, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 11 Jun 2014 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 10 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.