This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-14
Channels
- # announcements (40)
- # aws (9)
- # babashka (21)
- # beginners (75)
- # calva (56)
- # chlorine-clover (1)
- # cider (12)
- # circleci (1)
- # clj-kondo (7)
- # cljsrn (13)
- # clojars (3)
- # clojure (171)
- # clojure-dev (11)
- # clojure-europe (64)
- # clojure-nl (11)
- # clojure-spec (6)
- # clojure-uk (9)
- # clojurescript (31)
- # conjure (1)
- # cursive (7)
- # datascript (7)
- # datomic (9)
- # emacs (4)
- # fulcro (65)
- # introduce-yourself (1)
- # jobs-discuss (7)
- # kaocha (7)
- # lsp (39)
- # missionary (5)
- # off-topic (54)
- # pathom (10)
- # re-frame (6)
- # shadow-cljs (110)
- # tools-deps (41)
Couldn't find an explicit mention, but I guess calva does not support multiple different projects in the same workspace? For example frontend project with a shadow repl, and a different backend project with a deps.edn repl, running simultaneously?
We currently do not support that. You’ll need to run each in separate VS Code windows. There is some info about it here: https://calva.io/workspace-layouts/
If you make each window a separate VS Code Workspace you can use the Peacock extension to easily see which one is backend/frontend.
Heh, ok. I had thought that the workspace layouts refers to how the screen is chopped to different parts 🙂
Would "multiproject repos" or "multiproject workspaces" be ok? I know that the page also mentions the basic case of one repo, one project, one workspace, but I'd assume that nobody would go looking for docs in such situation
Have y’all ever looked into adding “rename file/rename dir” actions in calva/clojure-lsp before? I was going to file an issue, but I figured I’d ask here first in case there was some important reason why it hasn’t already been built.
rename file already works but only renaming the namespace form which will trigger the file change later
but yeah, those are features recently introduced into the LSP protocol, so feel free to open an issue about that on clojure-lsp
if you hover over (ns foo.|bar)
where |
is your cursor, and call the rename
refactor (F2 I think on Calva), it should work
I am trying to evaluate a form but for some reason nothing happens and the Calva Output is empty; anybody has any advice where to start looking?
Strange. you should at least see this in the output window when you Jack-in:
; Jacking in...
; Starting Jack-in Terminal: clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version,"0.8.3"},cider/cider-nrepl {:mvn/version,"0.26.0"}}}' -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
The first message should appear immediately and the second when you have selected the project type…Try Jacking in again and see if it happens something different this time. Is all I can think of right now…
Please let us know if it happens again. Until then, let’s celebrate that things work for you again! 🎉
Can you file an issue from VSCode? I think it's in the help menu. That will attach some info about your system that might give us a clue what's going on.
I am going to try to reproduce this again but it seems like it might happen when I am on a specific file. If I make sure that no file is opened in VSCode it works first shot @U0ETXRFEW
VS Code version: Code 1.60.1 (83bd43bc519d15e50c4272c6cf5c1479df196a4d, 2021-09-10T17:09:14.403Z)
OS version: Darwin x64 20.6.0
Restricted Mode: No
<details>
<summary>System Info</summary>
|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-1068NG7 CPU @ 2.30GHz (8 x 2300)|
|GPU Status|2d_canvas: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: enabled<br>opengl: enabled_on<br>rasterization: enabled<br>skia_renderer: disabled_off_ok<br>video_decode: enabled<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|3, 2, 2|
|Memory (System)|32.00GB (4.03GB free)|
|Process Argv|--crash-reporter-id 2e9af703-4d89-4e79-9bfa-cbaaef346bf2|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (7)</summary>
Extension|Author (truncated)|Version
---|---|---
calva|bet|2.0.211
remotehub|Git|0.14.0
python|ms-|2021.9.1230869389
vscode-pylance|ms-|2021.9.1
jupyter|ms-|2021.8.2041215044
jupyter-keymap|ms-|1.0.0
vscode-gitweblinks|red|2.5.2
</details><details>
<summary>A/B Experiments</summary>
vsliv368:30146709
vsreu685:30147344
python383:30185418
pythonvspyt678:30270856
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551cf:30345471
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
vscextlang:30333561
binariesv615:30325510
vsccppwt:30364497
pythonvssor306:30344512
bridge0708:30335490
pygetstartedc2:30360494
bridge0723:30353136
pythonrunftest32:30365366
pythonf5test824:30361777
javagetstartedt:30364666
pythonvspyt187:30365361
pydsgsc2:30361791
vssid140cf:30363604
vssur157:30365996
</details>
<!-- generated by issue reporter -->
@U0ETXRFEW ^ Not too sure how much this is going to help you
I might say something’s up when you leave the REPL opened for long time, maybe trying to connect to a port that’s busy because of something else
Very strange. Please post it as an issue, including the issue reporter thing above. This might take us a while to figure out and the visibility of an issue can help us get input from others.
I doubt a bit that it is java related, because the repl seems to start nicely. It is Calva that seems to get stuck on something. (From what I read from the screenshots.)
That is also what I was thinking now that I’ve tried again. What’s interesting is that the problem seems to go away if I completely close VSCode and start over.
Not too sure if this helps @U0ETXRFEW but basically when this weird error happens it seems like even if I try to connect manually the socket is closed.
Hi i am trying to get the debugger running in calva where i need to run lein repl on the command line because of my environment. I tried following the instructions and set up a profiles.clj like so
{:user {:plugins [ [cider/cider-nrepl "0.22.4"] ]
:dependencies [[nrepl/nrepl "0.8.3"]]
:repl-options {:nrepl-middleware ["cider.nrepl/cider-middleware"] } }}
However if i run lein repl now i see this error that i cant understand
[WARNING] No nREPL middleware descriptor in metadata of #'cider.nrepl/cider-middleware, see nrepl.middleware/set-descriptor!
Syntax error (IllegalArgumentException) compiling at (/tmp/form-init11253749944262238488.clj:1:74).
Key must be integer
Please helpI can’t immediately see why that would happen, but maybe you can instead try copying Calva’s Jack-in command line (there’s a command for that) and use that one to start the REPL? You might need a slightly different command line, but if the copied one works without errors, you can probably adapt it to your needs.
understood will try that thanks
just in case if anyone tries to search for this it does have a solution based on the cider docs when i had the profile set like this
{:repl {:plugins [[cider/cider-nrepl "0.26.0"]]
:dependencies [[nrepl/nrepl "0.8.3"]]}}
it works like it says on the calva docshere is the minimal suggested config on cider https://docs.cider.mx/cider/1.1/basics/middleware_setup.html#using-leiningen
I can now set break points calva is awesome thank you
Is there a command that allows to open a namespace file by pasting a full namespace name? The issue mostly related to underscores and dashes conversion. When I use go to file operation in vscode, I need to remove all the dashes, otherwise it wouldn’t find the file.
This is an issue for that: https://github.com/BetterThanTomorrow/calva/issues/545