Fork me on GitHub
#cursive
<
2016-01-27
>
meow06:01:45

I'm on a borrowed Windows 10 laptop about to install IntelliJ/Cursive, do I need to install git first?

moizsj07:01:33

Does cursive support private repos? I mean can it handle lein dependencies coming from a private repo?

puzzler07:01:02

Speaking of git support, it seems to me that IntelliJ doesn't store the ignore file information, entered through its git interface, in .gitignore. Anyone else encountered this? If I'm right, where is it storing that information?

danielcompton07:01:59

@puzzler: not too sure on your point, though on a tangent, I like the .ignore plugin

meow07:01:26

The GitHub integration is fantastic.

meow07:01:22

@danielcompton: I'll have to install that .ignore plugin.

cfleming08:01:52

@moizsj: How are your private repos accessed? Cursive should support this, although there’s an issue with the s3 private wagon which I haven’t had time to look at.

cfleming08:01:37

Cursive basically just delegates to lein, so it should all work, modulo the fact that Cursive does a lot of classloader magic to invoke lein so plugins are occasionally funky

cfleming08:01:10

@puzzler: I must admit I’ve never tried that, I just use .gitignore directly. I’ll check tomorrow.

moizsj08:01:10

@cfleming: we do use s3 wagon private. I actually did lein deps from outside cursive and then hit refresh in Cursive, and everything seems ok. But I dont know if it would've worked if I hadnt done lein deps first. What sort of issues should I expect with s3 wagon private? And what are the workarounds if any?

cfleming08:01:57

@moizsj: lein deps on the command line is usually the best workaround since then the artifacts will be cached in your m2 repo. That may not work correctly if you’re using snapshots though, it may try to contact the repo every time then depending on the configuration.

cfleming08:01:40

I haven’t investigated that one.

moizsj08:01:55

@cfleming: thx, the workaround seems easy to deal with. While I have you here, is Cursive's inability to resolve symbols coming defonce or other macros a known issue?

moizsj08:01:08

*coming from

cfleming08:01:03

@moizsj: Yes, it is. defonce should work though, I saw the issue about that but haven’t had time to look at it. The reference issue for macros is https://github.com/cursive-ide/cursive/issues/147

imre08:01:13

@cfleming: good to know the feature is being looked at

cfleming08:01:45

@imre: Yes, that’s really the #1 outstanding thing in Cursive

imre08:01:59

it would be nice to also be able to define these on the project level

imre08:01:10

in addition to some central repo

cfleming08:01:24

Unfortunately the full fix is complicated, which is why I still haven’t released it a year and a half later.

cfleming08:01:39

Yes, that will be required for in-house macros in private projects.

imre08:01:43

yeah, I'm sure it's not as simple as I might imagine

moizsj08:01:58

defonce isnt working (its also dynamic)

cfleming09:01:19

@moizsj: BTW you asked about the error output colour in the REPL - I think it’s under Console Colours-&gt;Error Output

cfleming09:01:32

Let me know if that doesn’t work.

moizsj09:01:41

@cfleming: Thanks I'll double check but I think i tried that. Abt the defonce, something like this does not work (defonce ^:dynamic some-str "test")

moizsj09:01:02

@cfleming: checked it, does not have any affect

cfleming09:01:52

@moizsj: That’s weird.

cfleming09:01:00

I’ll try to take a look tomorrow

cfleming09:01:28

@moizsj: I’m pretty sure that’s the colour it uses. One thing you could try is changing the colour and restarting IntelliJ. It’s possible I look the colour up once and store it in a static variable, rather than looking it up each time.

cfleming09:01:45

(which I shouldn’t do, obviously)

moizsj09:01:30

@cfleming: yup thats what it was, works after restart

cfleming09:01:46

Ok, great, at least there’s a workaround

moizsj09:01:15

@cfleming: thanks a bunch

gerred16:01:38

does Cursive work pretty well with WebStorm? I have both, but if when doing web dev I can just stick with WebStorm that'd be pretty great.

shaun-mahood17:01:15

@gerred: Do you mean using WebStorm instead of intelliJ?

gerred17:01:36

Are there any IntelliJ specific (projects, apis) features? The IntelliJ elixir plugin does, but I couldn't find anything in Cursive.

shaun-mahood17:01:49

As far as I know it only works with IntelliJ

hlship19:01:01

I'm doing some more interesting things with ANSI escape codes; moving the cursor around to do some stuff. What are the odds of Cursive's output window handling save cursor position / cursor up / cursor horizontal absoluate / clear to end of line / restore cursor position (s A G K u, respectively)?

hlship19:01:18

Even the Terminal window does a lousy job on these. Looks great in Terminal.app, though.

cfleming21:01:26

@gerred: Unfortunately Cursive doesn’t work in WebStorm right now, Cursive relies on the Java support in IntelliJ which isn’t present in WS. There’s some hope that it might in a soonish kind of timeframe, JetBrains have a project to modularise IntelliJ which will make the Java support into a normal plugin which could be installed in WebStorm, PyCharm etc.

cfleming21:01:31

@hlship: If you file an issue I can look at it. I have some infrastructure around this now, but I’d have to look at the details of how they work.

gerred21:01:39

ah ha, that makes sense.