Fork me on GitHub
#cursive
<
2020-03-10
>
onetom05:03:42

Is the name of a REPL run configuration shown somewhere in a REPL window? I think it would be very useful, because I keep getting lost amongst my REPLs.

cfleming08:03:44

Ugh, I keep meaning to fix this - sorry, I’ll get to it soon. I probably won’t show the whole REPL name since they can be very long to be shown in a tab, but the run config will have a “Display name” field or something similar, which will warn if it’s longer than 16 chars or something.

kenny15:03:12

This would be quite useful to me too.

onetom16:03:39

Is there some hard tab width limit in IntelliJ? Because to be honest, I would rather see the tabs filling out the whole available space than being the same size... The new iTerm2 has this option and it's pretty good. I even maximized the number of editor tabs to 1 (per split), so that would be really helpful it they would fill out the whole width of their panes.

onetom05:03:54

I've started to switch them into some namespaces, so at least not all REPL tabs say Local: user but I still have a lot of similar namespaces across my projects, like <company-name>.util or <company-name>.datomic :/

onetom05:03:51

Aaaah... I was wondering why the Re-execute last command REPL command feature has stopped working... When the Add forms sent from editor to REPL history option is off, the last command is whatever has been typed in the REPL window manually, not whatever has been evaluated the last time (from the editor probably). I find this unintuitive 😕 I turned off the Add forms from editor to REPL history because I hardly ever want to edit those within the REPL editor pane. I will just turn that option back on for now and think more about this. I think we - as in the Clojure community - should talk more about how everyone is using the REPL, because it seems there are fundamental differences, depending on what tooling someone uses, which then also depend on how code is organized and named, etc.

serioga08:03:41

Did it stop working from hotkey or from menu as well?

cfleming08:03:25

@U086D6TBN Interesting case, I hadn’t considered that. As you might have guessed, the “execute last command” uses the REPL history, and indeed with that option enabled those commands will not be added to the history. I wonder if Cursive should maintain a “last executed command” in the REPL state independent of the REPL history. I do wonder if other people would find that behaviour unintuitive, though.

onetom08:03:37

Yeah, I agree, I'm not sure if it's only unintuitive for me, because of my workflow...

onetom08:03:38

@U0HJNJWJH i works, just my understanding of the "last command" was different than cursive's understanding 🙂

cfleming08:03:17

I guess I assumed that someone who has Add forms from editor to history disabled thinks of those executions as truly transient.

ikitommi06:03:25

does anyone know how to configure idea to open a link with file $FILENAME:$ROW:$COL syntax (e.g. clj-condo default output) to the right position (row & col) in the file?

src/cljs/myapp/frontend/navbar.cljs:61:40: warning: unused binding data

cfleming08:03:22

I’m not sure, IntelliJ might have something like that. Where do you see this output - in the built-in terminal, or in the output of a run config, or in the REPL?

cfleming08:03:30

Or somewhere else?

imre08:03:47

intellij's Go to file... action does support that

imre08:03:01

I used it in the past couple of weeks a lot

imre08:03:46

it's a copy-paste thing that way however

ikitommi10:03:36

@U0567Q30W it’s the default what clj-kondo emits. Integrates nicely via file-watchers, but not via open: https://github.com/borkdude/clj-kondo#command-line

cfleming10:03:57

Ok, so you’re executing that command in the terminal within IntelliJ?

ikitommi10:03:34

from external terminal (iterm2)

cfleming10:03:06

Ok, so you want a command you can execute to make IntelliJ open at a position?

ikitommi10:03:28

works oob with visual studio for example.

ikitommi10:03:43

didn’t find such settings with IDEA.

cfleming10:03:42

I don’t trick my iterm2 out much, but I’m pretty sure it supports this, i.e. supporting text matches as links.

ikitommi10:03:43

it does. I guess I should do a script that changes the format from the default one to IDEA-supported.

ikitommi10:03:05

didn’t work as expected, need to forget this for now. thanks anyway

ikitommi06:03:14

Idea open the file from the link, but without the position info within the file