help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: making Flymake work with PHP


From: Ig0r
Subject: Re: making Flymake work with PHP
Date: Thu, 14 May 2009 14:17:13 -0700 (PDT)
User-agent: G2/1.0

On May 14, 9:58 pm, Anselm Helbig <anselm.helbig
+news2...@googlemail.com> wrote:
> Hi!
>
>
>
> > > > I'm new to emacs and I try to make Flymake work in php-mode.
> > > > I have nXhtml installed (it has its flymake)
> > > > I've took the flymake-php from:
> > > >http://sachachua.com/wp/2008/07/31/emacs-and-php-on-the-fly-syntax-ch...
> > > > and added those lines to my ~/.emacs
>
> > > > If I use M-x flymake-display-err-menu-for-current-line it displays an
> > > > error in format:
> > > > parse error
> > > > parse error
>
> > > > But in flymake-php I can see lines:
> > > > add-to-list 'flymake-err-line-patterns  '("\\(Parse\\|Fatal\\) error: +
> > > > \\(.*?\\) in \\(.*?\\) on line \\([0-9]+\\)$" 3 4 nil 2))
>
> > > > So PHP errors should look like:
> > > > "Parse | Fatal error ... in ....php  on line ..  "  ?
>
> > > > What may be the problem for that?
>
> > > > In my ~/.emacs I load nXhtml first:
>
> > > > ;;nXHTML mode and all that comes with it (MuMaMo...)
> > > > [...]
>
> > > > Is someone familiar with this?
>
> > > Hi Igor,
>
> > > There is a flymake-php.el included in nXhtml. You turn that on from the 
> > > menus:
>
> > >    nXhtml
> > >        Tools
> > >             Flymake Mode
>
> > > Can you please try that?
>
> > Thanks for you reply!
>
> > I actually do that, but it's behavior is the same. Not a word from
> > php :(
>
> Your config files seems to work fine for me. Are the php-files you're
> looking at opened in php-mode or nxhtml-mode? What version of emacs
> and nxhtml are you using? Obviously, if you're using nxhtml you should
> try to configure flymake for php a second time.
>
> You seem to be running windows. Are you sure that emacs can find your
> php executable? What happens if you enter this line:
>
>   M-: (executable-find "php")<RET>
>
> Kind regards,
>
> Anselm
>
> --
> Anselm Helbig
> mailto:anselm.helbig+news2...@googlemail.com


Anselm, Thank you for your reply!

> Are the php-files you're
> looking at opened in php-mode or nxhtml-mode?
They are opening in php-mode

>What version of emacs
>and nxhtml are you using?
emacs-22.3
nXhtml 1.76-090226

>Obviously, if you're using nxhtml you should
>try to configure flymake for php a second time.
Can you please explain this?

>Are you sure that emacs can find your
>php executable? What happens if you enter this line:
>  M-: (executable-find "php")<RET>
Yes, I'm sure, That command returns path to my php.exe

Cheers,
Igor!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]