On Sun, Jul 5, 2020 at 11:56 PM Matt Wilkie <[email protected]> wrote:
*> My notes from getting vscode and Leointeg working today. Both tools are completely new to me.* Thanks Matt. This will help Leonistas start playing with Félix's work. > Switch back to the original vscode window. Open a terminal in vscode [Ctrl-Shift-`] and start the leobridge server manually. python leobridgeserver.py Interesting you should mention this. It shouldn't be necessary because (as you say) after running leoInteg you will see (by default) two buttons when you select the Leo icon on the left margin: "Connect to server" and "Start Server". Below those buttons you will see "View leoInteg's configuration settings." On Linux, the "Start Server" button doesn't work, but starting leobridgeserver.py manually does work. A line containing an fstring fails, so presumably leoInteg is using python 2 instead of 3. This despite a configuration that says run "python", which on my machine does in fact run python 3. Ok. I got things to work on Linux. The default python is supposed to be "python3" on Linux, but I had to enter "python3" explicitly. Hold on a second. The configuration settings link brings up the configuration settings, but it appears that the settings page doesn't show the present settings!! For me, right now, the extension is acting properly and automatically starts the server and connects to it. So I see the "Open Leo File" button. But that's not what is showing in the configuration page! Hold on another second. When I reload vs code I now *do* see the settings I entered. *Tentative Conclusion* Changing settings does work, but the configuration settings link won't show the updated settings under some circumstances. Maybe this also happens on Windows, but I've only seen this on Linux. These problems would be very hard for Félix to find, because everything works for him, so he's not changing settings. *> What seems to be needed in every new vscode session:* 1. *Selecting the python interpreter* 2. *Running "python leobridgsever.py" * See my tentative conclusions above. Our confusions are the normal growing panes for new software. Edward -- 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/CAMF8tS38_EU8dbGGQEE_AtKqfdaeo7qUKznbUvAi-z7PR8Nv_w%40mail.gmail.com.
