tom-sherman / unison-vscode-ui

Unison UI inside VS Code
7 stars 3 forks source link

Can't connect to UCM (v0.5.17) #22

Open tankorsmash opened 7 months ago

tankorsmash commented 7 months ago

This extension seems great! Having UCM integrated into VSCode is neat. Unfortunately I can't get it going myself

Once I paste my api/ URL, I get an error saying " image

Unexpected token # in JSON at position 0

Going to the /api URL myself shows it as a plaintext page:

## Unison Codebase Manager API

Provides operations for querying and manipulating a Unison codebase.

## GET /non-project-code/definitions/terms/by-hash/:hash/summary

### Captures:

- *hash*: A hash reference for a term. E.g. @abcdef, #abcdef, @@builtin, ##builtin, abcdef

Am I using the wrong URL maybe? I got it from running api inside of ucm

h-david-a commented 6 months ago

Having the same issue with ucm 0.5.19 & VS plugin version 0.1.5

h-david-a commented 6 months ago

Answering myself: URL should end with "non-project-code" and be like this: http://127.0.0.1:53853/R9iUqEzibFHTgsxM/api/non-project-code File tree works like a charm: image

But opening files doesn't work :(

tankorsmash commented 6 months ago

I'm on ucm 0.5.17, but appending that, like http://127.0.0.1:45179/<KEY>/api/non-project-code/ for me doesn't connect either. Wonder why I can't connect and you're able to but not open any files.