Fork me on GitHub
#cursive
<
2022-12-21
>
d5p00:12:36

with the new feature in 1.12.5 that inserts requires from completions etc, it breaks our formatting if the insert makes it the first require entry like the following:

(ns converter.coerce
  (:require [clojure.string :as str]
            [clojure.tools.logging :as log]))
if I insert say a clj-time requirement from a completion, it formats it as:
(ns converter.coerce
  (:require
    [clj-time.core :as t]
    [clojure.string :as str]
    [clojure.tools.logging :as log]))
instead of retaining our existing formatting (which is fine when it inserts it in other positions)

cfleming09:12:58

Looks like a bug, yes - could you file an issue please, and I’ll get that fixed for the next build.

kendall.buchanan23:01:09

We’re seeing this bug too, although it appears to do this every time.

cfleming03:01:14

I filed this as https://github.com/cursive-ide/cursive/issues/2763, it’s fixed for the next build.

d5p23:01:29

ahh awesome thanks, just got back from my holidays today and was going to follow this up!

d5p00:12:48

i can't see a way to customise this , bug?

Miķelis Vindavs12:12:15

When searching for usages of a symbol, the line items only show the file name. There doesn’t seem to be anyway to include the full path or the full namespace. The “File structure” toggle doesn’t change anything either. If there are multiple files with the same name it’s impossible to tell them apart. I think this is a regression

3
Miķelis Vindavs12:12:01

It would be nice if it added just enough information to disambiguate between files in the result set. But even always showing the full NS / file path would be ok. Currently the only workaround is opening the full find tool window

Miķelis Vindavs12:12:26

And in the full find tool window, a similar problem exists - the file structure setting is ignored, the only way to tell them apart is by enabling group by package which adds a lot of noise

Miķelis Vindavs12:12:42

is there any way to customize this that I’m missing?

Miķelis Vindavs12:12:00

also note that even enabling the preview (cut off in my screenshot above) only shows the file name, not the path or anything else

Miķelis Vindavs12:12:22

by comparison, the find in files dialog always shows the full path of each file

cfleming21:12:45

I looked into this a while ago. Unfortunately this is an IntelliJ dialog that I can’t customise, and I don’t think there’s any way to achieve this. I’ll ask again in the plugin support slack.