agda-mode-vscode icon indicating copy to clipboard operation
agda-mode-vscode copied to clipboard

Goto definition won't work on Windows

Open ice1000 opened this issue 3 years ago • 11 comments

As title.

ice1000 avatar Feb 02 '21 15:02 ice1000

I said it doesn't work on Windows because I assume it works on @banacorn's machine, and IIRC he's using a Mac.

ice1000 avatar Feb 02 '21 15:02 ice1000

I wonder if there's a way to debug this.

ice1000 avatar Feb 02 '21 15:02 ice1000

Thanks, I'll check this out on my gaming PC 😉

banacorn avatar Feb 03 '21 09:02 banacorn

Don't forget that we have nightly binary releases :)

ice1000 avatar Feb 03 '21 10:02 ice1000

Root cause: file paths are case-insensitive on Windows I get C:\... from the editor and c:\... from Agda 🥲

banacorn avatar Mar 02 '21 16:03 banacorn

Can't wait to see new release

ice1000 avatar Mar 02 '21 17:03 ice1000

Well, it still doesn't seem to work. Can you test if it works for you? @banacorn

ice1000 avatar Jun 21 '21 11:06 ice1000

Hey folks, I seem to be running into this issue. Any way I can help debug?

davidmrdavid avatar Nov 17 '21 02:11 davidmrdavid

I got this again about 1 or 2 months ago, too. And reinstalling everything doesn't seem to fix the problem.

ShreckYe avatar Dec 16 '21 06:12 ShreckYe

This issue is still a thing, my goto-definition doesn't seem to work.

An example is:

 ≤-lemma : (m n : ℕ) → suc m ≤ suc n → m ≤ n
 ≤-lemma m n (≤-suc m n p) = p

When I attempt to goto-definition, F12, on ≤-suc it only recognises or suc, wherever the cursor is currently over. Even if I just try to jump to suc it cannot find anything. All the same No definition found for {whatever}. This is a really useful feature and my friend on Mac is able to with no issues ! :(

Worth mentioning that ≤-suc is defined in the exact same file, not that it should matter.

mxs1285 avatar Mar 01 '22 14:03 mxs1285

When I attempt to goto-definition, F12, on ≤-suc it only recognises ≤ or suc, wherever the cursor is currently over.

This is because the language server didn't give a response, so vscode defaults to its own silly lexer

ice1000 avatar Mar 02 '22 03:03 ice1000

When I attempt to goto-definition, F12, on ≤-suc it only recognises ≤ or suc, wherever the cursor is currently over.

This is because the language server didn't give a response, so vscode defaults to its own silly lexer

Is it possible that #149 resolves this?

fredrik-bakke avatar Aug 24 '23 08:08 fredrik-bakke