calva

Wednesdays you might find @U0ETXRFEW in the Gather Calva space. Invite is https://gather.town/invite?token=GZqrm7CR and the password is `Be kind`.
ullrich 2020-10-22T12:42:10.408Z

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
ullrich 2020-10-23T11:39:49.427800Z

Thanks @pez! 2.0.129 fixed it โค๏ธ

ullrich 2020-10-22T12:47:26.408200Z

Iโ€™m on 2.0.218 btw. The behavior seems to have changed in 2.0.217

ullrich 2020-10-22T12:59:40.408600Z

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 ๐Ÿ˜„

pez 2020-10-22T15:48:06.409600Z

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

โค๏ธ 1
Ben Yang 2020-10-22T17:05:21.412200Z

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 "<http://example.com/FIXME>"
  :license {:name "Eclipse Public License"
            :url "<http://www.eclipse.org/legal/epl-v10.html>"}
  :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?

bringe 2020-10-22T17:35:59.412800Z

This sounds like https://github.com/BetterThanTomorrow/calva/issues/821

bringe 2020-10-22T17:37:05.414300Z

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

bringe 2020-10-22T17:37:18.414500Z

@yang.benjamin1998

๐Ÿ‘€ 1
bringe 2020-10-22T19:35:41.416500Z

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
bringe 2020-10-22T19:37:11.417400Z

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.

pez 2020-10-22T19:37:19.418Z

You are a hero, @brandon.ringe!

3
โค๏ธ 4
bringe 2020-10-22T19:38:19.419100Z

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.

bringe 2020-10-22T22:09:42.420500Z

https://calva.io/output/#stack-traces Demo gif in the docs

Ahahac 2020-10-22T23:58:19.422100Z

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?

Ahahac 2020-10-23T09:59:39.427400Z

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

bringe 2020-10-23T16:08:45.428100Z

Thanks for reporting! Will look into this asap