This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-30
Channels
- # announcements (15)
- # beginners (143)
- # boot (2)
- # calva (48)
- # cider (93)
- # cljsrn (2)
- # clojure (127)
- # clojure-europe (3)
- # clojure-italy (8)
- # clojure-losangeles (8)
- # clojure-nl (10)
- # clojure-spec (67)
- # clojure-uk (51)
- # clojurescript (20)
- # cursive (9)
- # data-science (2)
- # datomic (10)
- # duct (13)
- # figwheel-main (1)
- # fulcro (74)
- # instaparse (10)
- # jobs (3)
- # joker (8)
- # juxt (4)
- # lumo (1)
- # malli (11)
- # nrepl (3)
- # off-topic (4)
- # pathom (5)
- # pedestal (6)
- # planck (5)
- # re-frame (18)
- # reagent (5)
- # reitit (17)
- # shadow-cljs (165)
- # sql (30)
- # vim (12)
- # xtdb (6)
newbie question - if i generate a project with lein such as lein new compojure
and then i open that with Calva - what do i need to do so that the project is processed and my jacked-in repl can resolve say (defroutes app-routes ...
inside src/projc/handler.clj without saying "unresolved symbols" that are defined in project.clj?
Dear Calva-friends: Please help test this RC of Calva. https://1823-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.56-dev-dc80b5f2.vsix It contains these changes: * Provide option to select the initial view colum for REPL window * Removed useWSLconfiguration option because the the use of Calva is fully supported through the Remote - WSL extension. * REPL window freezes when the evaluation takes a long time * REPL window gets sluggish with large data structures * REPL colours and logo get too much attention Which should mean that @m373h4n, @filipematossilva and @mattly might be extra interested in providing testing help. There has been some needed changes in our Clojure lexer, which shouldn’t break anything, but hey, it is central code in Calva so we need to be extra careful before releasing.
@U0ETXRFEW how do I use that file?
oh inside vscode I have a "install from .vfix" command
that must be it
It’s mentioned here: https://github.com/BetterThanTomorrow/calva/wiki/Testing-VSIX-Packages
Please note that I have just changed my mind about the repl column setting and posted a new vsix for the testing. See channel.
I am testing the "open repl window on connect" option as that was the one I really cared about
works well!
I'll install the other one and keep using it as normal
how do I go back to the released version?
ah I see on the page you linked
great!
I think there is a “Use another version…” option on the Calva entry menu in the extensions pane. That should also be mentioned on that wiki page.
(defproject test2 "0.1.0-SNAPSHOT"
:description "FIXME: write description"
:url ""
:min-lein-version "2.0.0"
:dependencies [[org.clojure/clojure "1.10.0"]
[compojure "1.6.1"]
[ring/ring-defaults "0.3.2"]]
:plugins [[lein-ring "0.12.5"]]
:ring {:handler test2.handler/app}
:profiles
{:dev {:dependencies [[javax.servlet/servlet-api "2.5"]
[ring/ring-mock "0.3.2"]]}})
;; => Syntax error compiling at (project.clj:1:1).
;; Unable to resolve symbol: defproject in this context
not sure i'm loading it how calva expects it 🙂
So i'm using wsl, I see the repl loaded all of the jars/deps
and loaded namespace in repl
i'll try this on my mac
@byronm, I think that it is that the linter doesn’t know about the defroutes
macro. See ifhttps://calva.readthedocs.io/en/latest/linting.html can offer some guidance.
Is Calva Not understanding the :refer :all? do i have something goofy in there?
ahh, i'll go check that out
It’s not Calva really, it’s clj-kondo that advices you to not use :refer :all
. (But it is Calva that brings in clj-kondo, so your question belongs here anyway.)
@byronm clj-kondo advises against :refer :all
because not using it mostly yields clearer code
here are some options you can use to silence the warnings for compojure:
https://github.com/borkdude/clj-kondo/blob/master/screenshots/compojure-config.png
the :clj-kondo/config
bit needs to go inside .clj-kondo/config.edn
in your root project folder
Inspect fails under calva. The Swing window is "invalid." It works perfectly with command line repl, but not under calva. Any help?
@david.hoyt, have you looked “under” the vscode window?
Oops. My bad. Thanks.
@m373h4n, @filipematossilva and @mattly, use this build for your testing instead. It skips having a setting for REPL window view column, and instead remembers where the window was last moved to and re-opens it there. It’s less maintenance for Calva devs this way and less things for the users to have to know about. https://1827-125431277-gh.circle-artifacts.com/0/tmp/artifacts/calva-2.0.56-dev-ff643ad1.vsix
Oops. My bad. Thanks.