On 2/2/2014 9:20 PM, Dee wrote:
I recently became interested in trying Leo as a PIM after learning
that it does outlining with CLONES -- WOOHOO!
Welcome. ONE OF US....
But I'm having some problems:
ISSUE 1 - pythonw.exe won't run Leo
-------------
I can run the Leo editor via python.exe, but not via pythonw.exe.
For example, it works to run any of the following, which use python.exe:
- C:\Leo\launchLeo.py
- C:\Python33\python.exe C:\Leo\launchLeo.py
- C:\Windows\py.exe C:\Leo\launchLeo.py
However, when I try to use pythonw.exe, the splash screen and a small
window open and then quickly close, and the editor never opens, e.g.:
- C:\Python33\pythonw.exe C:\Leo\launchLeo.py
- C:\Windows\pyw.exe C:\Leo\launchLeo.py
Interestingly, pythonw.exe does work if I run it from a batch file
with > Log.txt, like this:
C:\Python33\pythonw.exe C:\Leo\launchLeo.py > Log.txt
I can then close the command window, and the editor remains open.
(I got the idea to try that from this post):
https://groups.google.com/d/msg/leo-editor/bSgl7p9mPJ8/MUm2HhH2qEEJ
Here are posts where other people reported the same or similar problems:
https://groups.google.com/d/msg/leo-editor/hDHIBAaAeIs/DcDzPx4J0YwJ
https://groups.google.com/d/msg/leo-editor/oDZh2MHuwMY/ss9agOodEk8J
https://groups.google.com/d/msg/leo-editor/r7bEAuqFxBE/sd3MNKXUkhcJ
https://groups.google.com/d/msg/leo-editor/aS8DcFwP4c0/G1l21E-7l_0J
https://groups.google.com/d/msg/leo-editor/qglPWiqnyog/0IZKAcVBhK0J
... Yeah, I know, it's probably because I'm running /Vista/ ...
You should try using Matt's script that creates leo.bat files for
Windows:
http://bazaar.launchpad.net/~leo-editor-team/leo-editor/trunk3/view/head:/leo/scripts/create-leobat.bat
(also found in leo/scripts/create-leobat.bat).
ISSUE 2 - clipboard shenanigans
-------------
When I run Leo, after the editor opens, a large quantity of text has
been placed on my clipboard, including a lengthy excerpt from - of all
things - /War and Peace!/ :o
At the bottom of this post I have pasted some of what gets copied to
my clipboard. The entire clipboard contents are a whopping 5628
characters.
But even MORE unnerving is that after I close the Leo editor, if I
type something in my text editor (NoteTab) and then paste from the
clipboard, it DELETES whatever I just typed!!
This seems like a *major* bug. Is there anything in the console when
this happens? You only get the console output when running from
python.exe, not pythonw.exe. Also, the War and Peace snippet seems to
be from Leo's docs... are you opening any of the leoDocs.leo files?
ISSUE 3 - setting an external editor
-------------
I can't figure out how to set NoteTab as my external editor.
In quickstart.leo there's a headline called "Using your favorite
editor to edit nodes," but its instructions go WAY over my head.
It contains a command, so I thought, maybe if I just execute it, a
lovely dialog will pop up and ask me for the path of my text editor!
But when I pressed Ctrl+B, I just got an error in the Log.
I tried copying the command (g.app.db['LEO_EDITOR'] = "gvim") to a
separate headline and executing it, and at first I assumed it didn't
do anything, because I got no message in the Log... But later I
discovered that my context menu had changed from "Edit in Notepad" to
"Edit in gvim" ... Wait a minute! And of course, running that didn't
do anything either.
So I changed the code to g.app.db['LEO_EDITOR'] = "NoteTab", so now my
context menu LOOKED great: "Edit in NoteTab"... but of course it still
didn't do anything.
So I added the full path for the NoteTab executable to the code, but I
just got another error...
Oh, the trials of being a noob...
So... I'm excited about Leo's potential, but tbh, it's making me a
little nervous the way it keeps "sneaking around" on me! ;)
I will be most grateful for any help. :)
Hmm... those instructions are for Unix/Linux types, not Windows machines.
I've never gotten Leo to play nicely with anything on Windows aside from
notepad. But you could certainly try something like this:
g.app.db['LEO_EDITOR'] = 'C:\\Program Files\\path\\to\\NoteTab.exe'
(Notice the use of \\ instead of \... Python can be picky about Windows
paths sometimes -- \\ prevents \ from escaping characters, which causes
some issues.)
Hope this helps!
-->Jake
--
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/groups/opt_out.