Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include a change directory command with the jack-in command line #2147

Closed
PEZ opened this issue Apr 8, 2023 · 0 comments
Closed

Include a change directory command with the jack-in command line #2147

PEZ opened this issue Apr 8, 2023 · 0 comments

Comments

@PEZ
Copy link
Collaborator

PEZ commented Apr 8, 2023

When the user starts the the REPL without using Calva for it and then connects Calva to that REPL it happens that the manually started REPL is started in the wrong directory. clojure does not complain about this, since it doesn't need a deps.edn file in order to start.

When Calva starts the REPL (a.k.a. Jack-in) this is not a problem, because Calva will run the command in the directory selected by the user. However, the command for copying the Jack-in command line, which is otherwise very helpful in getting the REPL start command right, does not include the change of directory (because Jack-in doesn't really do a change directory, it just runs the command passing on a config containing cwd pointing to the project root).

If we let Jack-in include the command for changing directory as an absolute path, then copying out that command and running it, it would work, regardless of which directory it is run from.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant