Fork me on GitHub

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.


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.


This would be quite useful to me too.


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.


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 :/


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.


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


@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.


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


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


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


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


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?


Or somewhere else?


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


I used it in the past couple of weeks a lot


it's a copy-paste thing that way however


@U0567Q30W it’s the default what clj-kondo emits. Integrates nicely via file-watchers, but not via open:


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


from external terminal (iterm2)


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


works oob with visual studio for example.


didn’t find such settings with IDEA.


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


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


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


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