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

Connecting to running REPL fails if project has never had Calva REPL file #2605

Open
TuggyNE opened this issue Jul 17, 2024 · 1 comment
Open
Labels
bug Something isn't working connect

Comments

@TuggyNE
Copy link

TuggyNE commented Jul 17, 2024

###STR

  1. Create new project with e.g. Leiningen
  2. Start a non-Calva REPL, e.g. lein run
  3. Run Calva: Connect to a Running REPL Server in the Project (from palette or C-C, C-C)
  4. Select appropriate project type, e.g. Leiningen

###Expected
Connection to the REPL, possibly confirming host:port details first.

###Actual
VS Code dev tools console shows unhandled exception:

Error writing to results doc: CodeExpectedError: cannot open file:///Users/ntuggy/programs/primary/srv/caddy-auth/.calva/output-window/output.calva-repl. Detail: Unable to read file '/Users/ntuggy/programs/primary/srv/caddy-auth/.calva/output-window/output.calva-repl' (Error: Unable to resolve nonexistent file '/Users/ntuggy/programs/primary/srv/caddy-auth/.calva/output-window/output.calva-repl')
    at o.$tryOpenDocument (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:2217:111412)

Creating the directory and empty file resolves this exception.

Version: Calva 2.0.467 in VS Code 1.91.1 (Universal) (macOS Monterey, Intel)

@PEZ
Copy link
Collaborator

PEZ commented Sep 3, 2024

Hi! I can't reproduce this. Do you see any other console errors that could give us a clue? Like maybe when the file is created, that goes wrong and shows up in the console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working connect
Projects
None yet
Development

No branches or pull requests

2 participants