On Sun, Sep 1, 2019 at 6:13 AM vitalije <[email protected]> wrote:
> I am tempted to put aside all my current tasks and write my own
> launchLeo.py which will monkey patch completely cofiguration code and just
> read settings from the database table. I guess it would greatly reduce
> number of code lines that has to be executed every time Leo opens new
> commander.
>
Very slightly related to this, I was playing around and discovered leo can
be started without reading any .leo files at all. Just delete
config/leoSettings.leo and then run it like this:
HOME=$HOME/tmp/blank python launchLeo.py ~/tmp/new.leo
where ~/tmp/new.leo is a non-existing file (so no settings are are read
from it) and $HOME/tmp/blank doesn't have any myLeoSettings.leo.
Surprisingly leo almost works when launching like this. There are no menus
or keystrokes or right click menus, but mouse clicks work and you can mouse
click onto the minibuffer and run commands. However outline modifications
(i.e. insert-node) cause a core dump with this python stack dump:
Traceback (most recent call last):
File "/home/btheado/src/leo-editor/leo/plugins/qt_frame.py", line 3369,
in tab_callback
c.findCommands.startSearch(event=None)
File "/home/btheado/src/leo-editor/leo/core/leoFind.py", line 596, in
startSearch
self.openFindTab(event)
File "/home/btheado/src/leo-editor/leo/core/leoFind.py", line 531, in
openFindTab
g.app.gui.openFindDialog(c)
File "/home/btheado/src/leo-editor/leo/plugins/qt_gui.py", line 209, in
openFindDialog
d.setStyleSheet(c.active_stylesheet)
AttributeError: 'Commands' object has no attribute 'active_stylesheet'
I'm able to get this same crash by just clicking on the find tab's tab. It
seems strange outline modification causes openFindTab to be called.
While this is likely not a valid mode to be running leo, maybe it does
point to some actual issue?
I'm surprised it causes core to be dumped.
Brian
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/leo-editor/CAO5X8CxHGksfouPOTH27ORmQYmZpntmB95m95zueybiQQoqWpA%40mail.gmail.com.