Fork me on GitHub
#cursive
<
2018-04-25
>
cfleming00:04:21

@dennisa Yes, there’s a page on the boot wiki about it, it’s still a little rough currently: https://github.com/boot-clj/boot/wiki/For-Cursive-Users

cfleming00:04:06

@miikka I’ll try to reproduce that, because I’ve used spec a bit and that definitely worked for me.

cfleming00:04:37

@mfikes Yes, Cursive does support that, although all that code is complicated and messy now so I’m totally willing to believe there’s a bug there.

👍 4
cfleming00:04:53

@sandbags Unfortunately the answer is still no better than this: https://github.com/cursive-ide/cursive/issues/621

sandbags01:04:50

@cfleming righto. i wanted to check it wasn’t a bug. My project was not so big that manually fixing things up was a pain. Thanks for the answer.

joelsanchez07:04:30

how can I control which profiles are used for stub generation?

sandbags08:04:36

@cfleming i don't seem to be able to complete purchase on a license, I click through and get a spinner that never goes away. I am a filthy freeloader so you don't need to worry about broken payment although if it's not local to me it might affect someone buying a commercial license. It might also be an idea to add a warning that the license is going to expire.

cfleming08:04:38

@sandbags Yeah, that happens sometimes, it seems to be an AWS lambda thing. Trying again nearly always fixes it.

cfleming08:04:03

@joelsanchez So I don’t think you can at the moment. What are you trying to achieve?

joelsanchez08:04:54

our project doesn't require React deps by default (it needs a profile for that) and stub generation fails because of this

cfleming08:04:14

Ok, check the lein toolwindow (View-&gt;Tool Windows-&gt;Leiningen), open the Profiles tree entry, select the profile you need and then refresh.

cfleming08:04:52

That should add React as a dep to the project, and then the stubs generation should work.

cfleming08:04:25

I’m curious why it fails without React though, I can’t think of anything which should cause that.

joelsanchez08:04:36

it's a very large monster 🙂

sandbags08:04:37

@cfleming i've given it three tries now and it always seems to get stuck with the spinner right after picking my country.

cfleming08:04:04

@sandbags Oh, is this while the payment popup is up?

cfleming08:04:27

Ok, it must be a problem with the payment provider.

sandbags08:04:27

I see an error in the console related to a new relic js

sandbags08:04:39

that could be local, i'll try whitelisting

cfleming08:04:49

Do you have an adblocker or something?

joelsanchez08:04:49

omg stub generation has worked now 😍 thanks so much

sandbags08:04:03

hrmm... actually in this chrome profile i don't have an adblocker

sandbags08:04:49

okay all JS loading related errors are happening when the paddle popup first appears (i.e. before I enter any data)

cfleming08:04:51

Not sure sorry, they may be having issues but they’re quite JS-env sensitive too. I really hate that they have all that crap in there, I’d change provider to one with less tracking if I could.

sandbags08:04:58

so they might be a red-herring

sandbags08:04:16

have you tried going through it yourself just to make sure it's not an issue local to me?

sandbags08:04:32

but i seem to be stuck though

sandbags08:04:04

i'll try Firefox

joelsanchez08:04:07

another question, it looks like "going to definition" with qualified kws only works with some things but not in general (works with re-frame and spec but not in another thing of ours which looks like re-frame) is this intended? can we do anything?

cfleming08:04:12

Works On My Machine (tm)

cfleming08:04:18

(in Chrome)

sandbags08:04:50

I switch to FF but am stuck at the same place

cfleming08:04:32

@joelsanchez Yes, Cursive only knows about some forms. Are your forms re-frame wrappers or something similar?

joelsanchez08:04:06

we have a large Om project and we developed "re-om", which adds a re-frame-like API to Om

sandbags08:04:00

Okay I have the answer. I use GasMask to have my DNS track a list of spam/attack servers and autoblock them

sandbags08:04:11

looks like that list might be including some stuff Paddle are depending on

sandbags08:04:20

that's either overzealous or worrying depending on your point of view 🙂

joelsanchez08:04:21

we can't make Cursive recognize our forms, right? maybe after it's out there (we plan to do so) you can add the forms?

cfleming08:04:40

@sandbags Yeah, they include New Relic I think. My browser doesn’t even let me open http://newrelic.com to see what it does 😞

sandbags08:04:14

New Relic is AFAIK a legit instrumentation tool for apps

sandbags08:04:22

Back when i was in development i used to use them

sandbags08:04:36

but that was mid 2000's so who knows

cfleming08:04:19

I’m sure they’ve joined the pond scum race to the bottom that is the modern internet 🙂

sandbags08:04:44

Could be. Have my license & once again thank you for making and releasing Cursive in a way a hobbyist can use! 🙂

cfleming08:04:17

@joelsanchez If your forms look just like re-frame, you could use the “resolve as…” functionality for your forms to make Cursive think they work like the re-frame ones.

cfleming08:04:31

Do you actually have re-frame as a dep in your project?

joelsanchez08:04:19

what if I add re-frame, use Resolve as, and then remove re-frame? would that trick Cursive?

cfleming08:04:30

That was my next suggestion 🙂

cfleming08:04:39

Sorry, it’s a bit shit

cfleming08:04:51

I need a better solution for that case.

joelsanchez08:04:12

😂 thank you anyway, I'll try that now

joelsanchez09:04:52

that worked perfectly, truly a "lifehack"

cfleming09:04:24

He Resolved His Keywords With This One Weird Trick!

😂 4
cfleming09:04:35

You Won’t Believe What Happened Next!

hlship21:04:18

In my (really, extrordinarily huge) multi-module app, the "Refresh Leiningen Projects" option doesn't always appear in the command menu ... I often have to use the Leiningen tab and click the refresh button there. Any idea why?

Joe R. Smith23:04:18

Is it possible to wire aligning let bindings, map key/vals, etc to a keystroke? I don’t want them aligned everywhere, just some places. 🙂