unison icon indicating copy to clipboard operation
unison copied to clipboard

find.global not working as expected (trunk as of 2021-07-02)

Open alvaroc1 opened this issue 2 years ago • 1 comments

My understanding is that find.global should search the entire code base (maybe incorrect?). It doesn't seem to work. It only works for me from the top-level:

.alvaro> find.global : Nat -> Nat

  ❓
  
  I couldn't resolve any of these symbols:
  
      1 | Nat -> Nat
  
  
  Symbol   Suggestions
           
  Nat      No matches

.alvaro> cd .
.> find.global : Nat -> Nat

  1.  base.Nat.complement : Nat -> Nat
  2.  base.Nat.increment : Nat -> Nat
  ...

alvaroc1 avatar Jul 04 '22 17:07 alvaroc1

Yeah, it’s not resolving the names in the type signature - it’s using only local names for that.

I think we could allow all names in the type signature, with precedence given to local names.

pchiusano avatar Jul 04 '22 20:07 pchiusano