unisonweb / ucm-desktop

A desktop app companion to the UCM CLI

Home Page:https://unison-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Error" on Windows startup.

aryairani opened this issue · comments

image

This is on a new codebase but ucm has already been started up previously. I used the .msi installer.

ucm 0.5.28

Let me know how I can help!

Just added some more error details to this message in the latest release, but its likely that it can't connect to UCM.

Side note: also looks like there's some issue with the window controls (min, max, close).

@aryairani another possible reason might be if UCM is started after the desktop app is started. The app handles that case poorly right now. See #10

I am running into same problem

image

on the other hand, I have UCM running as described in instructions

image

accessing http://127.0.0.1:4444/asdf manually in the browser indeed gives 404, while http://127.0.0.1:4444/asdf/api is fully functional

@DejanMilicic did you by chance start the desktop app before starting the cli? (It doesn't automatically recover if its started in the wrong order atm)

@DejanMilicic did you by chance start the desktop app before starting the cli? (It doesn't automatically recover if its started in the wrong order atm)

I just verified it one more time - I started ucm, and after that I started ucm-desktop

@DejanMilicic thanks, thats super helpful.

Ok so turns out this needs to be run with this command:

$env:UCM_TOKEN="asdf"; $env:UCM_PORT="4444"; ucm headless --allow-cors-host http://tauri.localhost

(difference is http vs https in the --allow-cors-host option).

Close this out, use the instructions above to run the app on Windows.
I'm tracking the lack of the min, max, close buttons here: #14