Here is the simplest, cleanest way I have found to get the extension working. I assume that the leo settings have already been set:
1. Open vscode and load the leointeg folder. 2. Press CNTL-F5. 3. Wait for a second window to open. In the second window, the left-hand strip of icons should have a Leo icon: a square with eyes and some whiskers sticking out. If it doesn't, the the extension hasn't launched. 4. Go to the "Terminal" tab in this new window. In the Terminal panel. type <python> <path-to-leobridgeserver.py> <ENTER> where <python> is your python launcher (e.g., py-leo-git for me, or "py" for many Windows users), and < path-to-leobridgeserver.py> can be gotten from the extension's settings (see below). This will launch the leo bridge server. 5. There should be a pane in the left-hand pane labeled "Integration". It will show "Connecting". Hover the mouse above the top line of the panel and two icons will appear. The left icon resembles a pair of connectors to be mated. Click that icon and the extension will connect to Leo through the server. If you have not set the settings yet, or need to copy the location of the leobridgerserver, after step 3, hover over the top line of the "Integration" pane and click on the settings icon (the right-hand one of the two icons that will appear). This will open a settings pane where you can enter or change the path to the server file. On Wednesday, June 9, 2021 at 9:26:59 AM UTC-4 [email protected] wrote: > On Wednesday, June 9, 2021 at 9:09:03 AM UTC-4 Edward K. Ream wrote: > >> >> To summarize what I have so far, in the "Leo Integration Settings" panel >> (the blue link) I have: >> >> Start Server: Off >> Connect to Sever: Off >> Leo Server Path: c:\leo.repo\leo-editor\leo\core\leoserver.py >> Python Command: C:\Users\edreamleo\Python\Python39\python.exe >> > > Mine settings are slightly different: > > Start Server: On > Connect to Sever: On > Leo Server Path: C:\Tom\git\leointeg\leobridgeserver.py > Python Command: py-leo-git > > I get the same result whether the server settings are on or off, because > of the failure of the start-server command. > > >> Now nothing (apparently) happens when I hit the "Connect to Sever" button >> the first time, but the second time I hit the button it says "Already >> Connected". So something is amiss :-) >> > > When I run the extension after starting the server, the "Leo Integration" > panel shows the message "Connecting" but nothing happens. If you hover > over the top line of that panel, two icons appear, one for settings and the > other apparently showing two connectors being mated. If I click on that > one (and sometimes when I hover over it), then the connection happens and > the extension starts to work. > > -- 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/c7342c14-097b-43c5-aecb-95109bf963e1n%40googlegroups.com.
