Fork me on GitHub
#cursive
<
2020-02-28
>
Timur Latypoff08:02:08

Is there a way to make Cursive's linting work properly with https://github.com/ptaoussanis/encore 's custom if-let/when-let (where multiple binding expressions allowed)?

Timur Latypoff08:02:49

Currently it highlights local bindings as unknown variables.

cfleming09:02:24

You should be able to tell cursive to resolve them both as let.

Timur Latypoff10:02:27

@cfleming worked like charm, thank you! Due to some bug, the symbol resolution context menu was not popping up properly, so I had to go to definition of the symbol, and add the custom resolutions from there!

cfleming10:02:59

Hmm, that’s odd. I’m glad you’ve got it working, though!

👍 4
stijn08:02:09

@cfleming I'm having trouble reopening a project with Cursive after IntelliJ closed. I always get the following exception. The project in question was created with 'Empty Project' and I'm adding a set of deps.edn projects as modules.

cfleming09:02:32

@U0539NJF7 Is that an old project?

stijn09:02:57

no, I created it just yesterday

stijn09:02:26

I will try again with the latest cursive, remove the .idea folder an all .iml files

cfleming09:02:10

That’s very weird - that code is used for migrating old projects.

stijn09:02:42

ok, it works now. I think it was due to some remaining .iml or .idea files

cfleming09:02:08

Did you create a new project in a directory containing an old one, or something like that?

stijn09:02:22

I was moving from a 'one project per deps.edn' to a project that contains more deps.edn files as modules instead

stijn09:02:48

so yes, probably some old config files that were still there in the directories of the old projects

cfleming09:02:54

Ok, that makes sense.

stijn09:02:18

I also have the impression that you cannot have these modules imported into 2 different projects

stijn09:02:15

as it creates an .iml in the folder of the module

cfleming09:02:15

You can specify where the module file should live, but that sounds like a dangerous thing to be doing to me.