Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leo fails to start with: leo --gui=console #637

Closed
LewisNeal opened this issue Dec 14, 2017 · 9 comments
Closed

Leo fails to start with: leo --gui=console #637

LewisNeal opened this issue Dec 14, 2017 · 9 comments
Assignees
Labels

Comments

@LewisNeal
Copy link
Contributor

Running leo from my pip installed leo at ...\Python\Python36\lib\site-packages\leo
Rather than the usual

launchleo.py --gui=console
I tried
leoc --gui=console
This successfully starts Leo with Console gui.

However I tried

leo --gui=console
This results in a spinning wheel for 5 seconds, then the wheel disappears. Leo console GUI does not start.

I consider this a minor issue and have only reported so I have a record for the 'Starting Leo with the console gui' documentation at http://leoeditor.com/console-gui.html

@edreamleo
Copy link
Member

edreamleo commented Dec 14, 2017 via email

@LewisNeal
Copy link
Contributor Author

I'm referring to the use of leo and leoc scripts, the executable wrappers around launchLeo.py created by Matt Wilkie.
I am running Leo from the console. I'm just pointing out that using:
leo --gui=console
doesn't work. You get a spinning wheel for 5 seconds, then the wheel disappears.

And in contrast using:
leoc --gui=console
does work, and starts Leo with it's console gui.

@maphew
Copy link
Member

maphew commented Dec 15, 2017

We could add a 3rd wrapper for console gui, leocc for sake of argument. It would just be an alias for python3 path\to\launchLeo.py --gui=console, just like:

  • leo script is functionally identical to pythonW.exe path\to\leo-editor\launchLeo.py
  • leoc script is functionally identical to python.exe path\to\leo-editor\launchLeo.py

About the names: It's always felt a bit funny to me that leoc isn't gui=console, but I started using the name leoc before console gui existed. It's purpose is to echo the Leo log window reports to the command shell instead of swallowing them (to find errors like the one opening this issue). I haven't thought of a better name.

For the putative 3rd one: leo-shell maybe?

@maphew
Copy link
Member

maphew commented Dec 15, 2017

leo-console or leo-con to be consistent with command line parameter

@LewisNeal
Copy link
Contributor Author

leo-console
+1

@edreamleo edreamleo self-assigned this Dec 18, 2017
@edreamleo
Copy link
Member

edreamleo commented Dec 18, 2017 via email

@edreamleo edreamleo assigned maphew and LewisNeal and unassigned edreamleo Dec 18, 2017
@edreamleo edreamleo added the Bug label Dec 21, 2017
maphew added a commit that referenced this issue Jan 7, 2018
console_scripts don't appear to be able to use parameters. There's no
way for me to pass `--gui=console` in setup.py. So I'm trying to
figure out how to do that from a new function in `runLeo.py` instead.

Leo build: 20180106230224
maphew added a commit that referenced this issue Jan 11, 2018
@maphew
Copy link
Member

maphew commented Jan 11, 2018

Pull request #650 changes the scripts like so:

  • leo - start Leo in normal graphical mode (qt)
  • leo-c, leo-console - start Leo in console (curses) mode
  • leo-m, leo-messages - start Leo in normal (qt) mode, and echo log messages to the starting shell

leo-m is new name for an old thing. leo-c is a new thing, re-using an old name. There might be some confusion over this, but I don't think it will be serious or long lasting because leo-c hasn't been talked about or promoted very much. In short, I think it's worth the pain, if any, in order have names that more closely match the results.

edreamleo added a commit that referenced this issue Jan 11, 2018
Adds command line scripts for starting in console mode and with shell messages (#637)
@edreamleo
Copy link
Member

I added the BackBurner label to indicate that it is up to others to deal with this.

@maphew
Copy link
Member

maphew commented Mar 8, 2018

Closing this as the core issue of "how to start leo in console mode" has been solved with introduction of leo-console launch script.

There still remains a background issue that --gui=... parameter passed to any of the Leo wrapper scripts in PYTHONHOME\Scripts has no effect. I tried to figure out why that parameter disappears while others work but failed. I don't think it's a fruitful line to follow up right now so am leaving it to sleep.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants