On Fri, 18 Jul 2014 10:29:30 -0700 (PDT)
"Edward K. Ream" <[email protected]> wrote:

> As of a recent rev, Leo now has a new pylint command.  If pylint is 
> installed, it will run pylint on all Python @<file> nodes of a tree.
> 
> The command first looks down the tree, and runs each file found.  If
> none are found, it runs pylint on the nearest parent Python @<file>
> tree.
> 
> Using this command is *much* easier and more flexible than the
> previous way of laboriously specifying lists of files to check.  As a
> result, I have easily checked sets of files never previously checked.

For me it just says:

('pylint rc file not found:', 
u'/mnt/usr1/usr1/home/tbrown/.leo/leo/test/pylint-leo-rc.txt')
pylint: done

When that's resolved, are there commands for jumping to the next /
previous issue?  I had that set up as a script once, I can dig that up
if it's useful.

> P.S. Leo waits for pylint while executing the command.  Code is in
> place to spawn processes without waiting using
> g.execute_shell_commands, but it doesn't seem to work: eventually all
> console output disappears.

Completely off topic, but thanks for the opportunity to share ;-)

I recently wanted a Python 3.4 app. to call a Python 2.7 app, and
wanted the long running (4 hours sometimes) 2.7 app to talk back to the
3.4 app so the latter could display progress info.

I gave up trying to find a clean way to do it using stdin/out
conversation.  Sarge has an expect() method, but I didn't want to use
that.  subprocess module is just full of warnings about deadlocks.

Sooo... and this made my day, I had the 3.4 app pass the 2.7 app the
address of an XMPRPC server the 2.7 app could use to send progress
messages back to the 3.4 app.  +10 for Python making this kind of thing
so easy.

But... it gets better... I was thinking I needed to add a bunch of
calls to the RPC proxy in the 2.7 code, but it was already using
logging, so a simple subclass of HTTPHandler and I was done, all the
chatter from the 2.7 app via logging.SOMETHING() was available in the
3.4 app to keep the user updated on progress.

http:/xkcd.com/353/

Cheers -Terry

> EKR
> 

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to