Fork me on GitHub
#calva
<
2020-10-22
>
ullrich12:10:10

Hi there 👋 Did something change in the way that Calva tries to find shadow-cljs.edn? It used to try and find it in one of the parent folders of the currently opened file. Now it seems to just look at the root of the opened workspace. For context: in our project the shadow-cljs.edn files does not live in the root, but in a subfolder.

👍 2
ullrich12:10:26

I’m on 2.0.218 btw. The behavior seems to have changed in 2.0.217

ullrich12:10:40

In the 2.0.218 release notes it mentions that https://github.com/BetterThanTomorrow/calva/issues/821 fixed a problem around that, but the issue got reopened. https://github.com/BetterThanTomorrow/calva/pull/580 looks like it might bring general support for out of root project dirs, but it’s stale. We actually have 1 mono repo with 3 shadow-cljs.edn configs living in different directories, so one setting won’t be enough 😄

pez15:10:06

Yes, use 2.0.126 for now, we'll need to address this asap.

❤️ 1
ullrich11:10:49

Thanks @U0ETXRFEW! 2.0.129 fixed it ❤️

Ben Yang17:10:21

Hey, trying to get Calva working, and I keep running into a "No supported Jack-in project types detected." I'm using Leiningen. After doing lein new app temp, I have a project.clj file that looks like the following:

(defproject temp "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url ""
  :license {:name "Eclipse Public License"
            :url ""}
  :dependencies [[org.clojure/clojure "1.8.0"]]
  :main ^:skip-aot temp.core
  :target-path "target/%s"
  :profiles {:uberjar {:aot :all}})
However, when I do CTRL-ALT-C and CTRL-ALT-J to Jack-in, I'm getting the "No project types" error message. Is there anything I'm missing?

bringe17:10:05

Try installing version 2.0.126 and see if it works for you. Jack-in for multi project directories is broken as of .127. I'm looking into it today

bringe19:10:41

Ok Calva friends, version https://github.com/BetterThanTomorrow/calva/releases/tag/v2.0.129 is out now, and fixes the jack-in issue for multi-project workspaces, as well as adds stack trace improvements! 🎊 Please report any issues.

❤️ 4
bringe19:10:11

You should now see stack traces like this in the output window. You can ctrl+click (cmd+click on Mac) the file names to navigate to the respective file+line.

pez19:10:19

You are a hero, @brandon.ringe!

❤️ 4
calva 3
bringe19:10:19

You can also hover over the symbols in the stack trace to see symbol documentation as you can in normal editors, and ctrl+click (cmd+click on Mac) them to peek definition.

Ahahac23:10:19

Hi there. I have a problem with jacking-in. It gives me "Unable to resolve filesystem provider with relative file path 'c:\Apps\xyz-app/.calva/output-window/.clj-kondo'". Has anybody seen this?

fadrian04:10:45

What version are you running? If it's 2.0.127, then check out the post a few back and either downgrade to 2.0.126 or upgrade to 2.0.129.

Ahahac09:10:39

I was running 2.0.129. Rolled back to 2.0.125 and it work's ok now. So 129 is still broken then

bringe16:10:45

Thanks for reporting! Will look into this asap