You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone https://github.com/fulcro-community/fulcro-exercises.git and open the project in Calva
Jack in, selecting deps.edn and the :serve alias
Manually promote the repl by running (shadow/repl :main)
a) Try to evaluate the src/holyjak/fulcro_exercises.cljs file, or b) evaluate a single form from the file
Evaluation of the file gives a popup with error `Running the contributed command: 'calva.loadFile' failed.' Evaluating a single sexp doesn't do anything. The repl type in the repl is shown as 'cljc/clj' and the repl type in the file is shown as 'clj'.
Workaround:
After the first three steps, manually reconnect the repl (ctrl-alt-c ctrl-alt-c), this time selecting the shadow-cljs repl type. Now the repl's type in the bottom bar is 'cljc/cljs' and in the file 'cljs', and evaluation works.
What also doesn't work:
Trying to jack in directly to the shadow-cljs repl. Calva tries to launch it with npx, but the project isn't set up for it.
Ideas:
The project has been set up like https://shadow-cljs.github.io/docs/UsersGuide.html#deps-edn, but there is no support from calva for a shadow repl that is not started with the JS version of shadow-cljs itself. I suppose some kind of new option ("shadow-cljs via deps.edn" perhaps, or "shadow-cljs via clj") for this would need to be added, with the current shadow-cljs repl type renamed to "shadow-cljs via npx" for clarity.
Other option would be to have a way to tell calva what a repl's type is, overriding any automatic logic.
The text was updated successfully, but these errors were encountered:
Steps to reproduce:
git clone https://github.com/fulcro-community/fulcro-exercises.git
and open the project in Calva(shadow/repl :main)
Evaluation of the file gives a popup with error `Running the contributed command: 'calva.loadFile' failed.' Evaluating a single sexp doesn't do anything. The repl type in the repl is shown as 'cljc/clj' and the repl type in the file is shown as 'clj'.
Workaround:
After the first three steps, manually reconnect the repl (ctrl-alt-c ctrl-alt-c), this time selecting the shadow-cljs repl type. Now the repl's type in the bottom bar is 'cljc/cljs' and in the file 'cljs', and evaluation works.
What also doesn't work:
Trying to jack in directly to the shadow-cljs repl. Calva tries to launch it with npx, but the project isn't set up for it.
Ideas:
The project has been set up like https://shadow-cljs.github.io/docs/UsersGuide.html#deps-edn, but there is no support from calva for a shadow repl that is not started with the JS version of shadow-cljs itself. I suppose some kind of new option ("shadow-cljs via deps.edn" perhaps, or "shadow-cljs via clj") for this would need to be added, with the current shadow-cljs repl type renamed to "shadow-cljs via npx" for clarity.
Other option would be to have a way to tell calva what a repl's type is, overriding any automatic logic.
The text was updated successfully, but these errors were encountered: