Fork me on GitHub
#calva
<
2022-07-31
>
Gabriel Kovacs18:07:31

Hi! I am trying to setup a project without leiningen and only use a deps.edn. In my deps.edn I have an alias like this :aliases {:repl {:extra-deps {nrepl/nrepl {:mvn/version "0.9.0"}}}} . To make use of calva I do the following: Calva: Start a Project Repl... choose deps.edn pick the :repl alias Calva: Load/Evaluate Current File.. My question: Is this the best way taking advantage of Calva, or is there a better way?

🧵 1
bringe22:07:09

Hello. This is the standard procedure for jack-in, except you don’t need to have nrepl as an extra dep since the jack-in command will inject it for you.

bringe22:07:07

I noticed in the main thread you said: > This worked when the underlying project was created with leiningen. But now in a non leiningen project the behavior is not the same. Are you having some issue with a deps project?

Gabriel Kovacs18:08:51

I would not call it issues but rather lack of knowledge 😄. I had the impression that calva itself lead me to performing these steps. As far as I can tell it did work. The "project" consists of a deps.edn file and clj file. I assume that jacking-in in a leiningen project is more streamlined than just a deps.edn + clj file 🙂

bringe19:08:58

If there’s anything you think could be improved, please let us know. simple_smile

Gabriel Kovacs19:08:07

I am very happy with calva as it is and that I have the possibility to use it 😀! Thx!

bringe19:08:51

Glad to hear!

lilactown18:07:30

Using the jack in command should inject the necessary dependencies automatically for you

Gabriel Kovacs19:07:43

This worked when the underlying project was created with leiningen. But now in a non leiningen project the behavior is not the same.

bringe22:07:09

Calva version 2.0.290 is out with a couple of minor fixes calva. For one of these fixes I updated the client library we use to communicate with clojure-lsp. Please let us know if you experience any issues. • Fix: https://github.com/BetterThanTomorrow/calva/issues/1810 • Fix: https://github.com/BetterThanTomorrow/calva/issues/1773

🙏 1
calva 1
bringe22:07:04

@UKFSJSM38 Is there anything related to clojure-lsp that Calva could not support before (easily) unless we updated vscode-languageclient?

ericdallo22:07:37

I don't recall of anything @U9A1RLFNV

👍 1
Alexander Crompton10:08:05

Hello! I was running into errors with my development environment. Basically, clojure-lsp wouldn't start up at all in my VSCode; I'd click "Start the clojure-lsp server" and nothing would happen. After fiddling with clojure-lsp for a while, I saw this post and tried downgrading Calva to the previous patch, which solved my problem. I'm not well-enough acquainted with Calva to give more insight to where the issue might lie

ericdallo12:08:10

@U03HHFSUF7F could you share your calva startup window output? like version and OS info

Alexander Crompton12:08:04

Welcome to Calva. Happy Clojure and ClojureScript coding! ❤️

Please check these resources out:
  Calva Documentation: 
  #calva at the Clojurians Slack: 
  Bug reports: 

If you like Calva, please consider how you can contribute: 

Calva is utilizing cider-nrepl and clojure-lsp to create this VS Code experience.
  nREPL dependencies configured:
    nrepl: 0.9.0
    cider-nrepl: 0.28.5
    cider/piggieback: 0.5.3
  clojure-lsp version configured: 2022.06.29-19.32.13

If you are new to Calva, please consider starting with the command:
  **Calva: Fire up the Getting Started REPL**
  

(See `showCalvaSaysOnStart` in Settings to control the auto-showing of this message panel.)

Alexander Crompton12:08:14

(this is with the issue)

Alexander Crompton12:08:49

macOs Monterey, version 12.4

ericdallo12:08:29

It seems it's not using latest clojure-lsp

Alexander Crompton12:08:27

Ah you're right; I downgraded that myself in settings.json earlier when I was trying to debug the issue. With the following output, the issue still manifests:

Welcome to Calva. Happy Clojure and ClojureScript coding! ❤️

Please check these resources out:
  Calva Documentation: 
  #calva at the Clojurians Slack: 
  Bug reports: 

If you like Calva, please consider how you can contribute: 

Calva is utilizing cider-nrepl and clojure-lsp to create this VS Code experience.
  nREPL dependencies configured:
    nrepl: 0.9.0
    cider-nrepl: 0.28.5
    cider/piggieback: 0.5.3
  clojure-lsp version configured: latest

If you are new to Calva, please consider starting with the command:
  **Calva: Fire up the Getting Started REPL**
  

(See `showCalvaSaysOnStart` in Settings to control the auto-showing of this message panel.)

👍 1
bringe15:08:53

@U03HHFSUF7F Do you see any errors in the developer console? Help -> Toggle Developer Tools -> Console tab.

bringe15:08:44

Also, do you see any message or any indication that clojure-lsp didn’t start, besides in the status bar at the bottom?

bringe15:08:59

If anyone else is experiencing issues with clojure-lsp starting since the latest release, please report them in this thread. Installing the previous version of Calva should fix it in the meantime.

Alexander Crompton15:08:22

Thanks for the help troubleshooting! The language client requires VS Code version ^1.67.0 but received version 1.66.0 is coming up a lot in the console

Alexander Crompton15:08:20

> Also, do you see any message or any indication that clojure-lsp didn’t start, besides in the status bar at the bottom? I didn't see any messages per se—no pop-ups, no toasts, nothing I could see directly. My indication that it wasn't working was the status-bar and the fact that I couldn't e.g. command-click functions to jump to their definitions

bringe15:08:07

Oh, hmm. I have an idea of how to fix that.

bringe15:08:11

What’s your version of VS Code, btw?

Alexander Crompton16:08:45

Version: 1.66.0 (Universal)
Commit: e18005f0f1b33c29e81d732535d8c0e47cafb0b5
Date: 2022-03-30T05:50:04.419Z (4 mos ago)
Electron: 17.2.0
Chromium: 98.0.4758.109
Node.js: 16.13.0
V8: 9.8.177.11-electron.0
OS: Darwin arm64 21.5.0

👍 1
Alexander Crompton16:08:08

@U9A1RLFNV Beginner question maybe, but how do I apply this VSIX file? When I download it, it's a zip file that unzips into a directory. When I go (Extension Pane > Meatball Menu > Install from VSIX), there's nothing valid for me to select

bringe16:08:00

Select the zip file, then hit command+i, then edit the extension to replace .zip with .vsix.

bringe16:08:13

Then you can use the VS Code command to install the vsix.

bringe16:08:26

There may be a better way to do the extension change but that’s how I do it.

bringe16:08:57

I’m beginning to suspect you’ll need to update VS Code..

Alexander Crompton16:08:11

Ah okay, I had been trying just to rename the file. This little toast pops up; I didn't realize I was running such an outdated version

bringe17:08:08

Oh, glad it explains that to you.

bringe17:08:38

Let me know if it works after you update.

bringe17:08:56

I’m hoping there aren’t many people on versions < 1.67

Alexander Crompton19:08:41

Bringing VSCode up to 1.69.2 resolved my issues with the latest Calva patch :thumbsup: Thanks for the help! Much appreciated

bringe19:08:37

Awesome! I’ll push out a new version soon.

bringe20:08:12

Version 2.0.291 is out, which will cause a message to be shown if your VS Code version needs to be updated to be compatible with Calva.