Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:BetterThanTomorrow/calva into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
PEZ committed Sep 24, 2024
2 parents 6b31dd5 + 2c11127 commit 91c7f09
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ Changes to Calva.

## [Unreleased]

- Fix: [Can't start REPL in lein projects with backtick on project.clj](https://github.com/BetterThanTomorrow/calva/issues/2633)

## [2.0.474] - 2024-09-22

- [Synchronize the file extensions for Calva and Calva Spritz](https://github.com/BetterThanTomorrow/calva/issues/2629)
- [Terminal output pretty printing fails when using `printerFn` pretty print option](https://github.com/BetterThanTomorrow/calva/issues/2630)
- Fix: [Terminal output pretty printing fails when using `printerFn` pretty print option](https://github.com/BetterThanTomorrow/calva/issues/2630)

## [2.0.473] - 2024-09-21

Expand Down
6 changes: 5 additions & 1 deletion src/cljs-lib/src/calva/parse.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
"Parses out all top level forms from `s`.
Returns a vector with the parsed forms."
[s]
(let [pbr (rt/string-push-back-reader (str/replace s #"#=\(" "nil #_("))]
(let [pbr (rt/string-push-back-reader (-> s ; tools.reader croaks on some Clojure constructs
; at least the way we use it here
; And we're not interested in actually parsing these
(str/replace #"#=\(" "nil #_(")
(str/replace #"`" "'")))]
(loop [parsed-forms []]
(let [parsed-form (tr/read {:eof 'CALVA-EOF
:read-cond :preserve} pbr)]
Expand Down
4 changes: 3 additions & 1 deletion src/nrepl/project-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ async function leinDefProject(): Promise<any> {
const parsed = parseForms(data);
return parsed.find((x) => x[0] == 'defproject');
} catch (e) {
void vscode.window.showErrorMessage('Could not parse project.clj');
void vscode.window.showErrorMessage(
"Could not parse project.clj. You'll need to start the REPL manually, and then use the Connect REPL command instead."
);
throw e;
}
}
Expand Down

0 comments on commit 91c7f09

Please sign in to comment.