all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* flymake and tramp
@ 2008-07-19 15:28 Joe Bloggs
  0 siblings, 0 replies; 8+ messages in thread
From: Joe Bloggs @ 2008-07-19 15:28 UTC (permalink / raw)
  To: help-gnu-emacs

Has anyone been able to get flymake to work with tramp?
Is it possible?


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Flymake and tramp
@ 2009-05-07 14:49 Jonathan Groll
  2009-05-07 15:35 ` Jonathan Groll
  0 siblings, 1 reply; 8+ messages in thread
From: Jonathan Groll @ 2009-05-07 14:49 UTC (permalink / raw)
  To: help-gnu-emacs

When I open a ruby buffer using tramp's ssh method I get a popup
stating:

Flymake: Configuration error has occured while running (ruby -c
buffername_flymake.rb). Flymake will be switched OFF

("buffername.rb" in the above will be the name of the file I'm opening)

I assume I need to supply tramp with hints as to where to find ruby?
Or flymake.el? But, the message implies a configuration error, is
there a tramp log perhaps that will show the error? Customizing
flymake-log-level to 3 results in the following in *Messages* which
doesn't say all that much more:

switched OFF Flymake mode for buffer blogg.rb due to fatal status
CFGERR, warning Configuration error has occured while running (ruby -c
blogg_flymake.rb)

I wonder too why it appends _flymake to the filename, such a file does not exist!

If I ssh into the same host and open the same buffer in emacs -nw, flymake
works fine and stays on.

Regards,
Jonathan Groll.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Flymake and tramp
  2009-05-07 14:49 Flymake " Jonathan Groll
@ 2009-05-07 15:35 ` Jonathan Groll
  2009-05-26 19:45   ` Michael Albinus
  0 siblings, 1 reply; 8+ messages in thread
From: Jonathan Groll @ 2009-05-07 15:35 UTC (permalink / raw)
  To: help-gnu-emacs

On Thu, May 07, 2009 at 04:49:06PM +0200, Jonathan Groll wrote:
> When I open a ruby buffer using tramp's ssh method I get a popup
> stating:
>
> Flymake: Configuration error has occured while running (ruby -c
> buffername_flymake.rb). Flymake will be switched OFF
>
> ("buffername.rb" in the above will be the name of the file I'm opening)
>
> I assume I need to supply tramp with hints as to where to find ruby?
> Or flymake.el? But, the message implies a configuration error, is
> there a tramp log perhaps that will show the error? Customizing
> flymake-log-level to 3 results in the following in *Messages* which
> doesn't say all that much more:
>
> switched OFF Flymake mode for buffer blogg.rb due to fatal status
> CFGERR, warning Configuration error has occured while running (ruby -c
> blogg_flymake.rb)
>
> I wonder too why it appends _flymake to the filename, such a file does not exist!
>
> If I ssh into the same host and open the same buffer in emacs -nw, flymake
> works fine and stays on.


Got more verbose logging out (replaced real IPs with x.xxx):

file /ssh:192.168.x.xxx:/var/www/blog/blogg.rb, init=flymake-ruby-init
flymake is running: nil
file /ssh:192.168.x.xxx:/var/www/blog/blogg.rb, init=flymake-ruby-init
[3 times]
create-temp-inplace: file=/ssh:192.168.x.xxx:/var/www/blog/blogg.rb
temp=/ssh:192.168.x.xxx:/var/www/blog/blogg_flymake.rb
saved buffer blogg.rb in file
/ssh:192.168.x.xxx:/var/www/blog/blogg_flymake.rb
started process 16787, command=(ruby -c blogg_flymake.rb),
dir=/ssh:192.168.x.xxx:/var/www/blog/
received 73 byte(s) of output from process 16787
file /ssh:192.168.x.xxx:/var/www/blog/blogg.rb, init=flymake-ruby-init
parsed '/usr/bin/ruby: No such file or directory -- blogg_flymake.rb
(LoadError)', no line-err-info
file /ssh:192.168.x.xxx:/var/www/blog/blogg.rb, init=flymake-ruby-init
process 16787 exited with code 1
cleaning up using flymake-simple-cleanup
deleted file /ssh:192.168.x.xxx:/var/www/blog/blogg_flymake.rb
blogg.rb: 0 error(s), 0 warning(s) in 0.93 second(s)
switched OFF Flymake mode for buffer blogg.rb due to fatal status
CFGERR, warning Configuration error has occured while running (ruby -c
blogg_flymake.rb)
Mark set

A temp-inplace file is created by flymake, reading the above it seems
that this is a path issue, or is that wrong? I tried adding
/var/www/blog to $PATH in ~/.shrc and ~/.bashrc on the remote host,
and also customized "Tramp Remote Path" but none of those worked
yet...

Regards,
Jonathan.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Flymake and tramp
  2009-05-07 15:35 ` Jonathan Groll
@ 2009-05-26 19:45   ` Michael Albinus
  2009-05-29  7:59     ` Jonathan Groll
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Albinus @ 2009-05-26 19:45 UTC (permalink / raw)
  To: Jonathan Groll; +Cc: help-gnu-emacs

Jonathan Groll <lists@groll.co.za> writes:

>> When I open a ruby buffer using tramp's ssh method I get a popup
>> stating:
>>
>> Flymake: Configuration error has occured while running (ruby -c
>> buffername_flymake.rb). Flymake will be switched OFF
>
> A temp-inplace file is created by flymake, reading the above it seems
> that this is a path issue, or is that wrong? I tried adding
> /var/www/blog to $PATH in ~/.shrc and ~/.bashrc on the remote host,
> and also customized "Tramp Remote Path" but none of those worked
> yet...

Which Emacs and Tramp versions are you using?

> Regards,
> Jonathan.

Best regards, Michael.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Flymake and tramp
  2009-05-26 19:45   ` Michael Albinus
@ 2009-05-29  7:59     ` Jonathan Groll
  2009-06-07 16:37       ` Michael Albinus
  0 siblings, 1 reply; 8+ messages in thread
From: Jonathan Groll @ 2009-05-29  7:59 UTC (permalink / raw)
  To: Michael Albinus; +Cc: help-gnu-emacs

On Tue, May 26, 2009 at 09:45:09PM +0200, Michael Albinus wrote:
>Jonathan Groll <lists@groll.co.za> writes:
>
>>> When I open a ruby buffer using tramp's ssh method I get a popup
>>> stating:
>>>
>>> Flymake: Configuration error has occured while running (ruby -c
>>> buffername_flymake.rb). Flymake will be switched OFF
>>
>> A temp-inplace file is created by flymake, reading the above it seems
>> that this is a path issue, or is that wrong? I tried adding
>> /var/www/blog to $PATH in ~/.shrc and ~/.bashrc on the remote host,
>> and also customized "Tramp Remote Path" but none of those worked
>> yet...
>
>Which Emacs and Tramp versions are you using?

GNU Emacs 23.0.91.1 (i486-pc-linux-gnu, GTK+ Version 2.16.0) of
2009-04-05 on palmer, modified by Debian
2.1.15

Regards,
Jonathan




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Flymake and tramp
  2009-05-29  7:59     ` Jonathan Groll
@ 2009-06-07 16:37       ` Michael Albinus
  2009-06-09 14:16         ` Jonathan Groll
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Albinus @ 2009-06-07 16:37 UTC (permalink / raw)
  To: Jonathan Groll; +Cc: help-gnu-emacs

Jonathan Groll <lists@groll.co.za> writes:

> On Tue, May 26, 2009 at 09:45:09PM +0200, Michael Albinus wrote:
>>Jonathan Groll  writes:
>>
>>>> When I open a ruby buffer using tramp's ssh method I get a popup
>>>> stating:
>>>>
>>>> Flymake: Configuration error has occured while running (ruby -c
>>>> buffername_flymake.rb). Flymake will be switched OFF
>>>
>>> A temp-inplace file is created by flymake, reading the above it seems
>>> that this is a path issue, or is that wrong? I tried adding
>>> /var/www/blog to $PATH in ~/.shrc and ~/.bashrc on the remote host,
>>> and also customized "Tramp Remote Path" but none of those worked
>>> yet...
>>
>>Which Emacs and Tramp versions are you using?
>
> GNU Emacs 23.0.91.1 (i486-pc-linux-gnu, GTK+ Version 2.16.0) of
> 2009-04-05 on palmer, modified by Debian
> 2.1.15

In `flymake-start-syntax-check-process' of flymake.el, `start-process'
is called. This does not work on remote hosts. Instead of,
`start-file-process' shall be used.

> Regards,
> Jonathan

Best regards, Michael.




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Flymake and tramp
  2009-06-07 16:37       ` Michael Albinus
@ 2009-06-09 14:16         ` Jonathan Groll
  2009-06-09 14:51           ` Michael Albinus
  0 siblings, 1 reply; 8+ messages in thread
From: Jonathan Groll @ 2009-06-09 14:16 UTC (permalink / raw)
  To: Michael Albinus; +Cc: help-gnu-emacs

On Sun, Jun 07, 2009 at 06:37:24PM +0200, Michael Albinus wrote:
>Jonathan Groll <lists@groll.co.za> writes:
>
>> On Tue, May 26, 2009 at 09:45:09PM +0200, Michael Albinus wrote:
>>>Jonathan Groll  writes:
>>>
>>>>> When I open a ruby buffer using tramp's ssh method I get a popup
>>>>> stating:
>>>>>
>>>>> Flymake: Configuration error has occured while running (ruby -c
>>>>> buffername_flymake.rb). Flymake will be switched OFF
>>>>
>>>> A temp-inplace file is created by flymake, reading the above it seems
>>>> that this is a path issue, or is that wrong? I tried adding
>>>> /var/www/blog to $PATH in ~/.shrc and ~/.bashrc on the remote host,
>>>> and also customized "Tramp Remote Path" but none of those worked
>>>> yet...
>>>
>>>Which Emacs and Tramp versions are you using?
>>
>> GNU Emacs 23.0.91.1 (i486-pc-linux-gnu, GTK+ Version 2.16.0) of
>> 2009-04-05 on palmer, modified by Debian
>> 2.1.15
>
>In `flymake-start-syntax-check-process' of flymake.el, `start-process'
>is called. This does not work on remote hosts. Instead of,
>`start-file-process' shall be used.

It works! Do I need to open a bug report to have this permanently
fixed, or do you perhaps have commit rights to fix this one?

Many thanks,
Jonathan




^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Flymake and tramp
  2009-06-09 14:16         ` Jonathan Groll
@ 2009-06-09 14:51           ` Michael Albinus
  0 siblings, 0 replies; 8+ messages in thread
From: Michael Albinus @ 2009-06-09 14:51 UTC (permalink / raw)
  To: Jonathan Groll; +Cc: help-gnu-emacs

Jonathan Groll <lists@groll.co.za> writes:

>>In `flymake-start-syntax-check-process' of flymake.el, `start-process'
>>is called. This does not work on remote hosts. Instead of,
>>`start-file-process' shall be used.
>
> It works! Do I need to open a bug report to have this permanently
> fixed, or do you perhaps have commit rights to fix this one?

I have commit rights. However, I'm not so familar with flymake.el; it
might be better if somebody else reviews the proposed change.

Furthermore, GNU Emacs 23 is frozen while in pretest phase. So it might
be, that the patch must be postponed until after the release of 23.1.

For these reasons I prefer, if you could write a bug report.

> Many thanks,
> Jonathan

Best regards, Michael.




^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-06-09 14:51 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-19 15:28 flymake and tramp Joe Bloggs
  -- strict thread matches above, loose matches on Subject: below --
2009-05-07 14:49 Flymake " Jonathan Groll
2009-05-07 15:35 ` Jonathan Groll
2009-05-26 19:45   ` Michael Albinus
2009-05-29  7:59     ` Jonathan Groll
2009-06-07 16:37       ` Michael Albinus
2009-06-09 14:16         ` Jonathan Groll
2009-06-09 14:51           ` Michael Albinus

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.