This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-18
Channels
- # adventofcode (9)
- # alda (2)
- # babashka (89)
- # beginners (86)
- # bristol-clojurians (1)
- # calva (54)
- # chestnut (2)
- # cider (18)
- # clj-kondo (19)
- # clojure (160)
- # clojure-brasil (2)
- # clojure-europe (6)
- # clojure-italy (8)
- # clojure-nl (46)
- # clojure-spec (52)
- # clojure-uk (45)
- # clojured (4)
- # clojuredesign-podcast (11)
- # clojurescript (15)
- # core-async (50)
- # datomic (41)
- # devops (3)
- # emacs (10)
- # fulcro (95)
- # graalvm (11)
- # graphql (3)
- # kaocha (1)
- # luminus (1)
- # malli (4)
- # off-topic (13)
- # overtone (3)
- # pathom (8)
- # re-frame (13)
- # reitit (10)
- # shadow-cljs (83)
- # spacemacs (2)
- # specter (9)
- # tools-deps (3)
- # vim (2)
is anyone successfully using calva with vim keys?
yeah looks like "Remap Calva’s `clearInlineResults` " has helped I didn't initially see how it was breaking what I was trying to do
what counts as clojure cli
option when starting a repl? all I have is a deps.edn
file (not using lein or boot) what else do i need for it to work?
right now the connection just hangs and never opens
@alidcastano That should work. Can you describe a bit more about your project and the steps you take to jack-in?
@pez yes, I'm trying atom at the moment because vscode's parinfer doesn't interact well with vim, trying to see if I can move away from Cursive for teaching purposes
@alidcastano , and can you describe the steps you take in trying to connect?
open up project in vscode (no workspaces) > run calva start connection > clojure cli anything else I should be more specific about? i just started this prooject but here's my deps
{:paths ["src" "resources"]
:deps {com.cognitect/anomalies {:mvn/version "0.1.12"}
com.datomic/client-cloud {:mvn/version "0.8.81"}
com.datomic/ion {:mvn/version "0.9.35"}
org.clojure/clojure {:mvn/version "1.10.1"}}
:mvn/repos {"datomic-cloud" {:url ""}}}
Calva tries to compensate with a good Paredit: https://calva.readthedocs.io/en/latest/paredit.html
@alidcastano what do you do to “run calva start connection”?
Haha, no problem, I just need to know the specifics. Can you share the project on github? Maybe that is the fastest way I can check what is going on….
there's not much too it yet, basically a fresh setup. just this deps.edn
file
(ns resoflect.core
(:require [datomic.client.api :as d]))
(def cfg {:server-type :ion
:region "us-east-1"
:system "resodb"
:creds-profile "default"
:endpoint " "
:proxy-port 8182})
(def client (d/client cfg))
and this src/example
file
(ns example.core
(:require [datomic.client.api :as d]))
(def cfg {:server-type :ion
:region "us-east-1"
:system "example"
:creds-profile "default"
:endpoint " "
:proxy-port 8182})
(def client (d/client cfg))
i can ofc share it but idt it's anything speccific to my setup, I was maybe wondering if I was missing a dependency that calva uses to start the repl server
but connecting to repl via clojure
command and loading namespace manually and everything works
then open that project in Calva and jack-in, selecting no aliases, Calva just starts the project and connects.
what'st he jack in terminal? only other thing i see is the statusbar that says "launching repl using clojure cli"
I don’t think it should matter what terminal you have. This should happen in an integrated terminal inside vscode.
created project with command you posted above, and ran same steps, same issue so yea only thing i can think of is the terminal configuration
Another thing you can try is to start the repl from the terminal yourself and then use the Calva connect command. This command should be what you need to start the REPL:
clojure -Sdeps '{:deps {nrepl {:mvn/version "0.6.0"} cider/cider-nrepl {:mvn/version "0.22.4"}}}' -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
Can you file an issue about it? Use the Report Issue command in the VS Code help menu, which will include version details. Include a small repro and the info about connect working.
ok here you go: https://github.com/BetterThanTomorrow/calva/issues/526 thanks for taking time to try and resolve issue
also can ofc schedule a Zoom chat if you think that would help. but happy to just start repl manually and connect for now that you showed me how