Fork me on GitHub
#cursive
<
2019-01-23
>
Joel G04:01:59

I’m using cursive to edit some .cljc files, but some of the documentation (press F1 when on symbol) isn’t working properly - I think because it can’t choose between the clojure and clojurescript versions of the function. Is there a recommended workaround for this?

cfleming08:01:57

@joel834 Only nagging me to fix it, sorry 😞

Joel G08:01:51

Aha no worries, it’s not a big deal since I can look it up pretty fast in the repl just next to the code.

cfleming07:01:31

@joel834 This looks like the issue, I’ve moved it to look at in the next release: https://github.com/cursive-ide/cursive/issues/1645

Sy Borg11:01:00

@cfleming I'm using v1.8.0-2018.3

Sy Borg11:01:56

it just keeps asking me to refresh tools version

dadair20:01:39

Is it possible to change how cursive does [clojure.test :refer :all] when creating new test namespaces? I’d like to change to [clojure.test :as t]

cfleming20:01:30

@dadair Yes, Settings-&gt;Editor-&gt;File &amp; Code templates-&gt;Clojure Test File

dadair20:01:50

Thank you!

joelsanchez12:01:42

man I had no idea about this. amazing

joelsanchez12:01:00

I feel personally attacked by the existence of :refer :all so this is good to know

cfleming22:01:04

Hehe - I’m actually in the process of revamping my documentation which will help with things like this (assuming that someone reads it, of course), but it’s slow going as I get distracted on a regular basis.

cfleming20:01:49

@sy_borg Can you send a screenshot of that message? Also, are you on Windows?

Sy Borg20:01:40

@cfleming yes, I'm on Windows

cfleming20:01:53

@sy_borg If you hit OK on that dialog, can you then press Apply?

Sy Borg20:01:09

@cfleming there's no "Apply" - "Previous", "Finish", "Cancel", "Help"

cfleming20:01:05

Oh, right, sorry - this is the import dialog, not the Settings one. Finish, in that case.

Sy Borg20:01:14

@cfleming when I press "Finish" that window (Cannot save settings - refresh...) appears again

cfleming20:01:24

@sy_borg Ok, let’s try something different. Instead of trying to import a project (so cancel out of that if you have an import open), then go to Settings-&gt;Build, Execution, Development-&gt;Build Tools-&gt;Clojure Deps. Select “Use tools.deps directly” there, hit Refresh, then Download, and then OK if all that works correctly.

Sy Borg20:01:10

it worked, thanks

cfleming20:01:24

@sy_borg And you can import now?

Sy Borg20:01:03

@cfleming yes, it was imported ok

cfleming20:01:21

Great! I’ll see if I can reproduce that problem with the import dialog.

Sy Borg21:01:31

@cfleming thanks again. it seems that in my case import dialog settings don't override global settings

Sy Borg21:01:28

global settings' tools.deps parameter was set to "none"

cfleming21:01:59

I think what it is is if the import dialog is the one that you open first (which it will be for most users), when the latest version is populated in the combo box it’s not written to the settings. I suspect that manually changing the combo box to a different version and then setting it back to the most recent one would also work, since the settings are updated when the combo box is changed.

cfleming21:01:45

@sy_borg Right, that’s because the value from the combo box wasn’t persisted somehow.

Sy Borg21:01:52

I tried changing versions, it didn't help

cfleming21:01:25

That’s weird then - I’ll see if I can reproduce that.