Fork me on GitHub
#calva
<
2022-05-20
>
pinkfrog00:05:19

Is it possible to adjust the initial editor width (percentage of the whole screen) that calva repl takes?

pez04:05:01

I don’t think so.

tlonist02:05:18

How do I view the corresponding Java source code using calva+vscode? For example,

(type [])
clojure.lang.PersistentVector
cmd+clicking from intellij I could get to the implementation, and I'd like to do the same thing in vscode. Any advice on this?

pez04:05:47

It's pretty broken right now with Java sources look-up. I can't really advice much.

tlonist05:05:32

oh man. so there really is no way to look up for the source code? 😂

pez08:05:24

In theory, if you have the sources on your classpath, it should work. But to my experience, the stars must also align. That is probably more a symptom that I don't fully understand the mechanisms involved.

👀 1
pez04:05:53

Latest clojure-lsp improves things a bit, I think.

clojure-lsp 1
Ramon Rios09:05:13

Hello everyone. When i have an error when running tests, it just shows :error-while-loading my-ns Does anybody can say if it’s possible to configure a more detailed error message?

bringe03:05:17

That error is shown while running tests? It looks like you might have an issue with code in that namespace. If you load the file for that namespace, you might see a more detailed error message in the Calva output window.

zakkor09:05:20

Do you guys think it would be nicer if Calva just showed nothing instead of "undefined" for functions/vars without a docstring?

2
pez10:05:27

Or, ”(No docs)”

☝️ 1
pinkfrog11:05:26

Maybe just nothing.

zakkor12:05:47

If I wanted to create a PR for this, where in the codebase should I look?

pez12:05:03

Just guessing here, @U03EC9KU17H: It could be happening in infoparser.ts

👍 1
zakkor15:05:51

@U0ETXRFEW That was it :thumbsup: I opened a PR here, it was a very simple fix. https://github.com/BetterThanTomorrow/calva/pull/1732

❤️ 1
zakkor15:05:04

While testing I noticed that Calva actually has the correct behaviour while the REPL is not started yet, and the problem only starts once you boot up the REPL and start evaluating things. So I just made it not show anything, rather than "(No docs)", as that's the current behaviour. (I also checked some other extensions like the default JS/TS one and they have the same behaviour of just not showing anything if it doesn't exist)

zakkor15:05:28

Also, should I add something to the change log if this isn't referring to/closing a specific issue?

pez16:05:35

The change should be referring to a specific issue. 😃

pez16:05:58

(The checklist has an item for this.)

zakkor16:05:30

👍 will create an issue for it and make the changes requested

pez18:05:02

Save the date! joyride

clojure-spin 4
joyride 4
seancorfield19:05:04

When did Calva get the green highlight in the right-hand gutter to indicate parts of the file that have been eval'd into the REPL since the last edit? 💚

pez19:05:56

Glad you like it! I think the answer is

## [1.1.11] - 2018-03-20

- Add inline annotations for interactive code evaluation results.
😃

pez19:05:33

It is red if the eval resulted in an error. And white while it is evaluating.

seancorfield19:05:31

I have never noticed it before today... I've seen the inline color overlay on the code in the file, but never the gutter highlighting...

pez20:05:47

It's a lot of competing highlighting in that gutter often for me at least.

✔️ 1
Hamid Sadeghian05:05:12

it's a very useful feature: • a visual indicator of what's already eval'd • and the eval results • exactly where such visual clues are needed basically fulfilling the need for playground / notebook functionality if only all of that wouldn't disappear the moment a single character is changed

practicalli-johnny21:05:47

Using Calva for the first time in a while and was a bit confused about the naming of the Jack-in options It seems Clojure CLI projects are referred to as deps.edn projects after the configuration file name, whereas Leiningen projects are referred to as Leiningen (and not their project.clj configuration). Perhaps it would be simpler to use one naming approach for each type of project. Or maybe its just me....

practicalli-johnny21:05:21

There is quite an impressive list of options these days, amazing job.

pez21:05:21

It's a bit messy with the naming, agreed.

pez21:05:49

And also we could do a better job at figuring out which options are really valid for a particular project.

😃 1
seancorfield21:05:43

I think this has come about because no one really knows what to call deps.edn-based projects? Are they CLI? tools.deps (what a lot of people called them early on)? Or...? But "everyone" knows the name Leiningen and they talk about "Leiningen projects" or "lein projects".

pez21:05:05

Yeah. I renamed it from Clojure CLI to deps.edn because of a lot of questions around that. Since the rename, no questions. And no-one ever was confused about Leiningen so it was never renamed. 😃

pez21:05:10

But I don't think Leiningen folks would be confused about project.clj either, so it could be renamed to that.

practicalli-johnny23:05:55

On https://clojure.org/guides/getting_started it's called Clojure CLI, so that's what I've been calling it.

pez13:05:47

With Calva a lot of choices are made based on what keeps the support level down. If people have troubles understanding what Clojure CLI we notice at the Calva support desk. 😃

seancorfield17:05:16

@U05254DQM It's worth pointing out that is very new -- Alex just reworked the old Getting Started into Install Clojure -- so a couple of weeks ago it still looked like this, which doesn't use that phrase directly: https://github.com/clojure/clojure-site/blob/7e2326370da453e1d206c42d3c255840fcf2b04b/content/guides/getting_started.adoc -- referring to "Clojure tools" and "command line tools" instead. So Getting Started is new content, as is Editors (some content taken from the old Tools page) and Structural Editing. Install Clojure is an updated version of what used to be Getting Started.

practicalli-johnny18:05:39

Oh, maybe Alex copied it from me then 😂😂😂 I've been using Clojure CLI for what seems like an eternity

mathpunk23:05:44

I've got the opposite as John -- I installed VSCode, VSSpaceCode, and Calva yesterday, and when I try and jack in to a project with a deps.edn file, the only project types available are nbb, joyride, and babashka

mathpunk23:05:53

I've only made one configuration change to keybindings.json and I don't know where else to experiment with configuration. :thinking_face:

mathpunk23:05:09

(It was to enable escape to leave insert mode)

pez23:05:27

Doesn't sound like a configuration problem...

mathpunk23:05:53

It's the end of my day but if you've got any pointers I'll give them a try in the morning

pez23:05:22

Drawing blank right now...

mathpunk23:05:53

oops... the morning of Monday I suppose. Maybe I'll try installing Calva sans VSSpaceCode

pez23:05:26

I don't think it is about VSSpaceCode either. 😃

pez23:05:57

Is deps.edn in the root of the folder opened in the VS Code window?

mathpunk14:05:45

Ahhh. I had just opened the file, not paying any attention to folder structure or whatever. Now I get more options when jacking in; however, the repl output says it's never heard of bb or clojure. They are both installed.

pez15:05:55

It could be that the environment that VS Code is running in do not find them. Try starting VS Code from a command line with code. (You can install this with the VS Code command: Shell Command, install code command in PATH.)

mathpunk15:05:32

There we go. :thumbsup::skin-tone-2:

clojure-spin 1