Fork me on GitHub
#cursive
<
2019-09-13
>
thumbnail06:09:24

I don’t have a file DUMMY.clj :thinking_face:

cfleming08:09:01

@jeroen.dejong Yes, I’ve seen that one from time to time, I think it’s to do with the REPL but I’ve not tracked it down yet.

thumbnail08:09:37

It happens after a refresh, upon which a formatter is run as well.

joelsanchez11:09:39

I could only find an old test that's disabled since 1.5.3 https://github.com/clojure/clojure/commit/fba9b9ac90341e6fc86c59ceaf39f3dd0e224320 and a test in la-clojure https://github.com/JetBrains/la-clojure/blob/e00046ffc1b385429eec57c5f426304517f7bfb1/test/org/jetbrains/plugins/clojure/completion/ClojureBasicCompletionTest.java if the clojure test were enabled, it would be possible to trigger it by running all the tests, but...

cfleming11:09:14

No, it looks like that file name is used when an AST is created from text, which shouldn’t have parinfer run on it. I’ll see if I can detect that case and fix it.

joelsanchez11:09:50

@U0567Q30W completely off-topic but, re-frame keyword resolution hasn't been working properly lately, is this because of platform bugs as usual?

cfleming11:09:14

No, shouldn’t be - what’s happening?

joelsanchez11:09:26

I can go to a keyword but I can't go back to the usages

cfleming11:09:59

So cmd-click works, but alt-f7 doesn’t?

joelsanchez11:09:31

in fact, alt-f7 does work, but CTRL+B doesn't

joelsanchez11:09:36

it used to show a small dialog with the usages

joelsanchez11:09:51

well, cmd-click used to do the same, and that's the behavior with variables, but it stopped working for namespaced kws

cfleming11:09:45

> A while ago, I made a change to allow keywords to be associated with definitions. Previously keywords had no definition, but simply came into existence on first use. But several frameworks define entities using keyword identifiers - spec and re-frame both do this. So I added the concept of keyword definitions, but the implementation wasn’t entirely successful. Cursive would then treat keywords used in these contexts more like vars, but it wasn’t obvious when that change happened and it was very confusing. It also led to things like Find Usages and Rename behaving differently when keywords were used in the two contexts (as a definition, and as a standard keyword in e.g. destructuring). In this release I’ve modified how this works - keywords now work as they did previously, but you can still navigate to the definitions if they exist and they still show up in the structure view as you would expect.

cfleming11:09:09

Can you file an issue for the differences you’re seeing now and I’ll see if I can fix them?

joelsanchez11:09:41

yes, thank you

cfleming11:09:13

@U5LPUJ7AP Thanks. Is alt-cmd-f7 what you want there?

joelsanchez11:09:23

sorry I don't use a mac. it's "Go To -> Declaration or Usages"

joelsanchez11:09:16

I have a feeling that it always goes to the declaration, because it moves the cursor to the beginning of the declaration, instead of going to the usages...

cfleming11:09:51

Oh, sorry, check the shortcut under Edit | Find | Show Usages…

cfleming11:09:24

I think it sounds like the problem is that Ctrl-B used to show that, but now doesn’t, is that right?

joelsanchez11:09:31

yep, that's what I want then

joelsanchez11:09:01

so this is "show usages" and alt-f7 is "find usages". today I learnt...

cfleming11:09:00

I’ll check why Cmd-B doesn’t do that any more.

joelsanchez11:09:27

I have updated the issue, since the problem is much simpler than what I thought https://github.com/cursive-ide/cursive/issues/2233

joelsanchez11:09:32

thank you a lot!

cfleming11:09:41

Great, thanks!

kenny13:09:04

I also used to rely on this a lot. I could've sworn there was already an issue for it but I can't find it.

cfleming08:09:40

It’s definitely a virtual file of some kind, i.e. not one you’d have in your project.

kenny18:09:03

One of the modules in my project has stopped resolving a namespace from a :local/root dep. I'm 100% sure it's actually on the classpath because I can load the namespace without error when using "Run with Deps" REPL option. If I use "Run with IntelliJ project classpath", the namespace is not on the classpath.

kenny18:09:35

I'm fairly certain it's related to changing branches.

kenny18:09:52

And manually clicking the refresh button does not update the deps.

kenj23:09:12

I’m trying to connect to an nREPL (shadow-cljs) in Cursive as a remote repl. I am using localhost and the nRepl port specified but get the following error. I thought with a remote repl you would just need a host/port. What am I missing?

kenny23:09:43

Is there a Module selected in the Run Configuration? It's near the bottom under Common options

kenj00:09:35

there wasn’t - none was available at the time. I’ve since re-created the project which includes a deps.edn and that got the project to show up in the available dropdown

kenj00:09:55

now I’m just stuck with it not starting for a different reason =/

kenj00:09:34

hah, I got it finally!

kenj00:09:07

it wasn’t clear to me Cursive strictly needed a deps.edn or lein project or whatever to function