Hmm - with branch ekr-server-erro-message (and opening a file of zero
bytes), I now get:
Launching server with command: python3
/home/jkn/leo-editor/leo/core/leoserver.py --port 32125
Starting LeoBridge Server 1.0.4 (Launch with -h for help)
can not import leo.plugins.importers.occam
can not import leo.plugins.importers.occam
LeoServer: init leoBridge in 0.21 sec.
LeoBridge started at localhost on port: 32125.
Ctrl+c to break
server: User Connected, Total: 1, Limit: 1
Leo 6.7.1-devel, ekr-server-error-message branch, build da0766f0cc
2022-09-30 20:44:52 -0500
Python 3.10.6, LeoGui: dummy version
linux
read outline in 0.00 seconds
read outline in 0.00 seconds
read outline in 0.00 seconds
read outline in 0.00 seconds
server: Unexpected Exception! 'NoneType' object has no attribute
'findCommands'
Traceback (most recent call last):
File "/home/jkn/leo-editor/leo/core/leoserver.py", line 5178, in ws_handler
answer = controller._do_message(d)
File "/home/jkn/leo-editor/leo/core/leoserver.py", line 4467, in _do_message
result = func(action, param)
File "/home/jkn/leo-editor/leo/core/leoserver.py", line 4483, in
_do_server_command
return func(param)
File "/home/jkn/leo-editor/leo/core/leoserver.py", line 1195, in open_file
c.findCommands.ftm = StringFindTabManager(c)
File "/home/jkn/leo-editor/leo/core/leoGui.py", line 599, in __init__
self.init_widgets()
File "/home/jkn/leo-editor/leo/core/leoGui.py", line 640, in init_widgets
c, find = self.c, self.c.findCommands
AttributeError: 'NoneType' object has no attribute 'findCommands'
server connection finished. Total: 0, Limit: 1
Shutting down leoserver
Closing Leo Server
Checking for changed commanders...
Stopped leobridge server
I'm checking with other files...
J^n
On Saturday, October 1, 2022 at 2:36:00 PM UTC+1 jkn wrote:
> On Saturday, October 1, 2022 at 2:07:33 PM UTC+1 Edward K. Ream wrote:
>
>> On Sat, Oct 1, 2022 at 4:33 AM jkn <[email protected]> wrote:
>>
>>> OK, a slight non-definitive update:
>>>
>>> Without changing any SW, it looks like I may have (accidentally) been
>>> loading a totally empty old .leo file,
>>> ie of 0 bytes length. I just picked this as an 'old, no-longer needed'
>>> test file, without looking
>>> at the contents.
>>>
>>> Leo itself doesn't seem to have an issue with opening this file, it
>>> creates a 'null' headline etc.
>>>
>>
>> Looks like an edge case :-) Have you had a chance to test PR #2900
>> <https://github.com/leo-editor/leo-editor/pull/2900>?
>>
>> Not yet. How can I 'open a file' if it doesn't exist? ;-o
>
> BTW, for me, with VSCodium (under LInux), the 'file open' etc. dialog
> doesn't appear on top
> of the main screen; I have to ALT-TAB to get to it. This is nothing to do
> with LeoInteg,
> but does this occur for anyone else? Kcould be KDE, I guess...
>
> J^n
>
>
--
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/914f292a-7af8-4f6e-a901-f89912f154c8n%40googlegroups.com.