Closed
Description
There is an issue in VS Code on MS-Windows where moving to the definition of a symbol to another file doesn't happen properly
To reproduce on MS-Windows
- Create a new project with poetry called
issue-info
, andbasilisp
and install it in the venv
> poetry new --src issue-info
> cd issue-info
> poetry add basilisp
> poetry install
- Create the following files from on the project root, so that b.lpy references
issue-info.a/abc
./basilisp.edn
(Empty)
./src/issue_info/a.lpy
(ns issue-info.a)
(defn abc []
5)
./src/issue_info/b.lpy
(ns issue-info.b
(:require [issue-info.a :as a]))
(a/abc)
- Run the nREPL server, an
.nrepl-port
file with the port number should be created at the project root.
(issue-info-py3.11) PS D:\bas\issue-info> poetry run basilisp nrepl-server
nREPL server started on port 64523 on host 127.0.0.1 - nrepl://127.0.0.1:64523
- In VS Code, open up the project folder, and the
./src/issue_info/b.lpy
file. PressCtrl-Alt-C Ctrl-Alt-C
to connect to the server, and selectbasilisp
as the project. It should connect to the server. - In the
b.lpy
editor window, pressCtrl-Alt-C
to evaluate the file. Place the cursor in the(a/abc)
form, and press F12 to go to the definition, but the error depicted in the screenshot is shown.
This is because the nREPL server sends a local file path in response to an info
req, but Calva expects a URI as per spec.
PR to follow.
Metadata
Metadata
Assignees
Labels
No labels