Also, may I suggest, since you start the server with 'python' instead of 
"py -3" to change that launch command in leoInteg's setting webview,. (as 
shown in the readme) so that you could now start it automatically from 
leoInteg.



On Saturday, June 13, 2020 at 4:14:28 PM UTC-4, Félix wrote:
>
> Thanks for that! 
>
> Very much appreciated!!! 
>
> I'm surprised by your point #12: 
>
> > Editing the outline *fails*. I see this in the separate console window:
>
> I modify both the outline and body contents, save , etc... without any 
> problems. But I suspect it has something to do with the websockets because 
> of your earlier message : Websocket error: connect ECONREFUSED 127.0.0.1:
> 32125 although you stated that you thought it may have been related to 
> the launching of python with 'py -3'... I'll have to investigate.
>
> i'll reboot into my windows partition to try 'exactly' what you did : I'm 
> going to open the same LEO file with leointeg... maybe there was something 
> in it that makes the JSON crash... (how could that be?) What version of leo 
> were you using? (I'm gonna 'git pull' in leo's folder to get your latest 
> version... havent done that in a while.)
>
> Also, what do you mean by 'modifying the outline?' did you try something 
> simple such as 'ctrl+u' to move a node up? or via the command palette 
> (ctrl+shift+p)? or an icon on a node when you mouse-hover on it? 
>
> Please take a look at the test sheet I did 
> https://docs.google.com/spreadsheets/d/1M7TA3J0hkBpU4BkyChThrhzwKxhTPtQHacXDYRvEQes/edit?usp=sharing
>  It 
> states the various ways to interact with leo via leointeg and may be useful 
> to more rapidly "pin-point" any problems.
>
> I'll report with more details as soon as I try this out. Please dont 
> hesitate to report back with more details too at your leisure :)
>
> Félix
>
> On Saturday, June 13, 2020 at 2:25:28 PM UTC-4, Edward K. Ream wrote:
>>
>> I have spent several pleasant hours playing with leointeg. There are 
>> still problems.
>>
>> The following are based on detailed notes I took as I worked:
>>
>> 1. The leointeg video <https://www.youtube.com/watch?v=rutt11xL54I> was 
>> extremely valuable. I don't want to see screen shots in Leo issues, because 
>> I am so familiar with Leo. But here, in a completely new environment, 
>> seeing vs-code in action was exactly what a newbie such as myself needs.
>>
>> Félix, would you be interested in creating a similar video for Leo 
>> itself? It would guide people to installing and running Leo the first time.
>>
>> 2. I wasted an hour or more not following the video's instructions. It's 
>> *crucial 
>> *to install the *latest* version of node.js, namely 12.18.0. I 
>> downloaded node.js from https://nodejs.org/en/download/.
>>
>> It's probably also wise to update to the latest version of vs-code as 
>> well. I am running 1.46.0.
>>
>> 3. One thing not shown in the video. When installing node.js, *do NOT 
>> install the optional tools!* If you do, you will likely install python 
>> 3.8 in a most inconvenient manner. I eventually backed out of the 3.8 
>> installation.
>>
>> 4. I did a fresh install of leointeg: git clone 
>> https://github.com/boltex/leointeg.git
>>
>> 5. On my machine, there is no way to open the leointeg folder using "Open 
>> with Code", probably because I didn't install vs-code additions to the file 
>> browser. No problem. I just used vs-code's "Open Folder" option.
>>
>> 6. From the terminal (in vs-code), I did npm install, as shown in the 
>> video. It worked as shown in the video.
>>
>> BTW, the video doesn't make clear (to a newbie) how you opened the 
>> terminal. I opened the terminal from the Terminal menu.
>>
>> 7. As shown in the video, I clicked the "Run Extension" triangle. Very 
>> clear.
>>
>> I assume F5 would have done the same thing, but it's easier to show 
>> clicks in a video.
>>
>> Success! For the first time *ever* most everything works.  I see 
>> "Starting type checking service..."
>>
>> In the debug console I see:
>>
>> leoInteg upgraded from v0.1.9 to v0.1.10.
>> leoInteg startup launched in 5 ms.
>>
>> 8. I now see two windows.
>>
>> - It was helpful for the video to show the windows being resized. That 
>> resizing made clear that there are, in fact, two separate windows.
>>
>> - I see the Leo Lion in one of the windows. Some debugging messages 
>> appear in the *other* window.
>>
>> 9. Starting the server from within vs-code *fails*:
>>
>> Starting server with command : py -3 c:\leo-repo\leointeg\leobridgeserver
>> .py
>> Websocket error: connect ECONREFUSED 127.0.0.1:32125
>>
>> I suspect the problem is related to "py -3".
>>
>> 10. Starting the server in a separate console works:
>>
>> > cd c:\leo-repo\leointeg
>> > python leobridgeserver.py
>>
>> Now I see an "Open Leo File" button in vs-code!
>>
>> 11. Choosing LeoDocs.leo shows the outline.
>>
>> I see this server message in the separate console window:
>>
>> Leo file opened. Its outline contains 2579 nodes positions.
>> Testing app.test_round_trip_positions for all nodes: Total time: 0.047 
>> sec.
>>
>> 12. Editing the outline *fails*. I see this in the separate console 
>> window:
>>
>> Caught Websocket Disconnect Event
>> Stopping leobridge server
>>
>> *Summary*
>>
>> The video was incredibly helpful. It would be great if Leo had something 
>> similar.
>>
>> Following the installation instructions is mandatory :-) Beware of 
>> installing separate node.js tools.
>>
>> I was not able to start the server from within vs-code. I was able to 
>> install the server from a separate console.
>>
>> I was able to load a .leo file. Changing the file disconnected vs-code 
>> from the server.
>>
>> This is all great progress.  Many thanks, Félix, for the plugin and the 
>> video.
>>
>> As I mentioned in another thread, it would be most helpful to know all 
>> possible details of what the server does and how it does it. 
>>
>> 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/f410f52a-1451-4243-9f36-3d0bd5740cb9o%40googlegroups.com.

Reply via email to