Fork me on GitHub
#cursive
<
2018-08-13
>
potetm17:08:15

Do there happen to be any plans to warn on ^{:deprecated "foo"} vars (e.g. w/ a strikethrough as they do w/ Java)?

dnolen19:08:13

hrm in a multi-module project it doesn’t seem I can access the Deps tab? Leiningen tab comes up fine

cfleming19:08:40

@dnolen That can happen when the project is first created, if you close the project and re-open it will appear.

cfleming19:08:47

That’s fixed in the next EAP

dnolen19:08:10

ah great - yeah seems fixed now

cfleming19:08:36

@potetm Not currently, but there should be. I’d like that myself for Java interop actually.

vuuvi19:08:57

@cfleming is there any plan on adding in midje support to cursive?

dnolen19:08:58

hrm what about paths that are “out of content root”? do I need to symlink to make the Deps stuff happy?

dnolen19:08:35

I have a mono repo where we have paths like "../other-lib"

cfleming23:08:35

@dnolen Hmm, that won’t work at the moment, I can add that. I think symlinking would be the best for now, yeah. Are those paths shared across different projects?

cfleming23:08:01

i.e. do you have two projects which each use ../other-lib?

cfleming23:08:58

@alexkeyes Probably not, at least not in the short term. I believe Midje is more or less abandoned, and it’s hard to support due to the number of macros it uses.

vuuvi12:08:15

thanks for the response. it makes a lot of sense. We are trying to move back to clojure.test anyway.

cfleming23:08:32

I did try once and gave up, I have more useful macro support tools now so I could have another go but I don’t think many people use it any more so it’s unlikely to be a priority.

cfleming23:08:23

@p-himik I think in that case Cursive should resolve to both, but it’s possible there’s some weirdness there. When you say it highlights usages, do you mean the transient highlighting in the editor, or the Find Usages command?

p-himik02:08:05

I mean, sometimes it underlines them as errors, sometimes it does not. The error is "Incorrect arity".

cfleming22:08:02

That’s very strange. I assume your redefined functions use the same arities as the originals?

p-himik02:08:37

No, as I mentioned earlier: "The fix includes adding a signature to an already existing function."

p-himik02:08:04

The error is caused by the new arity, but the error is sporadic, and it shouldn't even be an error.

cfleming23:08:05

@dnolen If those paths are shared by various projects I think you’ll still have problems since different modules can’t share the same content root. In that case I think you’ll have to make a deps project out of it and use :local/root.