unisonweb / elm-browser

A Unison Github repo explorer in Elm
MIT License
34 stars 4 forks source link

Can't see all definitions in my codebase #59

Closed nicklawls closed 4 years ago

nicklawls commented 4 years ago

If I navigate to . in my unison shell and run ls, I get the following

.> ls

  1. base/      (470 definitions)
  2. builtin/   (265 definitions)
  3. hobbits/   (8 definitions)
  4. lib/       (80 definitions)
  5. mylibrary/ (8 definitions)

However, here's what the browser looks like after initial load

image

It's rendering everything as if it'scd'd into .builtin, and even then namespaces within .builtin aren't showing up

nicklawls commented 4 years ago

Hm, I cloned my unison monorepo into a new directory, ran the browser on it, and got this

image

I've confirmed that the head is different in the two directories

I'm also extremely fuzzy on what branches and and head even are... could be user error

nicklawls commented 4 years ago

@seagreen figured it out!

I didn't know that my ucm session was attached to the .unisiondirectory in my home directory ... I didn't know that was the default!

I assumed it was reading .unison from my current directory, which is what the unison-browser server was doing.

mitchellwrosen commented 4 years ago

That's odd... seems like a bug in ucm to me. I'd expect local ./.unison to have precedence over ~/.unison. Maybe file an issue or ask about it in Slack?