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

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

Re: Flymake and tramp


From: Jonathan Groll
Subject: Re: Flymake and tramp
Date: Thu, 7 May 2009 17:35:39 +0200
User-agent: Mutt/1.5.18 (Linux mail 2.6.18.8-linode16 i686)

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.




reply via email to

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