From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jonathan Groll Newsgroups: gmane.emacs.help Subject: Re: Flymake and tramp Date: Thu, 7 May 2009 17:35:39 +0200 Message-ID: <20090507153539.GA22035@groll.co.za> References: <20090507144906.GA19830@groll.co.za> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: ger.gmane.org 1241710584 4281 80.91.229.12 (7 May 2009 15:36:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 May 2009 15:36:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 07 17:36:14 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M25dt-0001Ya-Hp for geh-help-gnu-emacs@m.gmane.org; Thu, 07 May 2009 17:36:13 +0200 Original-Received: from localhost ([127.0.0.1]:39403 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M25ds-0004pK-SN for geh-help-gnu-emacs@m.gmane.org; Thu, 07 May 2009 11:36:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M25dT-0004kc-5L for help-gnu-emacs@gnu.org; Thu, 07 May 2009 11:35:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M25dN-0004bE-Vs for help-gnu-emacs@gnu.org; Thu, 07 May 2009 11:35:46 -0400 Original-Received: from [199.232.76.173] (port=35195 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M25dN-0004aW-LO for help-gnu-emacs@gnu.org; Thu, 07 May 2009 11:35:41 -0400 Original-Received: from mail.groll.co.za ([67.18.176.185]:52729) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M25dN-0003mS-1l for help-gnu-emacs@gnu.org; Thu, 07 May 2009 11:35:41 -0400 Original-Received: by mail.groll.co.za (Postfix, from userid 1004) id 697A2757B6; Thu, 7 May 2009 17:35:39 +0200 (SAST) Content-Disposition: inline In-Reply-To: <20090507144906.GA19830@groll.co.za> User-Agent: Mutt/1.5.18 (Linux mail 2.6.18.8-linode16 i686) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64229 Archived-At: 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.