Fork me on GitHub
#cursive
<
2017-03-22
>
thosmos00:03:36

just installed cursive into a fresh IdeaC 2017.1 on Ubuntu 16.04 and after restarting, IdeaC fails to load and hangs

cfleming00:03:32

@thosmos Which version did you install?

thosmos00:03:02

not sure, it was the one that shows up when you search plugin repositories from within IdeaC

thosmos00:03:09

will try again

cfleming00:03:12

I think that might be https://github.com/cursive-ide/cursive/issues/1210 - this is fixed in the latest EAP build, but not the release builds.

cfleming00:03:04

@thosmos If you don’t have Cursive configured to install EAP builds, you can install this one one-off by downloading https://plugins.jetbrains.com/plugin/download?updateId=33304 and then installing it using Settings-&gt;Plugins-&gt;Install from Disk...

thosmos00:03:32

that didn't fix it

thosmos00:03:02

if I remove the plugin from ~/.Idea/config/plugins then it loads fine

thosmos00:03:31

is there a place to download older versions of IdeaC? I can't find anything but 2017.1 on their website

cfleming02:03:29

I’m concerned that it’s hanging, though 😞

thosmos02:03:32

oh! I missed that

cfleming02:03:39

It works fine on 2017.1 for me.

cfleming02:03:08

Actually, I’m still on the EAP, I didn’t notice the release - I’ll get the release and check.

cfleming02:03:49

@thosmos So it works fine for me with the 2017.1 release, and I’m pretty sure others have had it working for a while too.

cfleming02:03:04

Do you have many other plugins installed?

thosmos02:03:05

on ubuntu 16.04?

cfleming02:03:41

No, but I’d be very surprised if there were some platform interaction - I’ve literally never had a problem with that, barring a few Swing UI issues.

cfleming02:03:09

It’s much more likely to be some incompatibility between plugins - that has happened from time to time before.

thosmos02:03:15

i didn't have anything other the the default ones installed. maybe it was something about the project I had loaded, which was non-clojure

thosmos02:03:28

i'll try again

thosmos02:03:14

it worked this time. I created a blank project first, so that once the plugin was installed, it would open to the blank project instead of my other one.

thosmos02:03:56

seems like it was something in my other project

cfleming02:03:05

@thosmos Ok, let me know if the problem occurs again and we can investigate.

thosmos02:03:20

ok thanks for your responsiveness

cfleming02:03:07

@danielcompton No, that’s not expected - I think that’s a side effect of making the action available in the menus

cfleming02:03:08

@yonatanel Generally, those actions are only available when you have an active REPL

yonatanel08:03:57

@cfleming It was active. I'll keep working with it and see.

achikin09:03:00

Can’t understand how Thread element under cursor works

achikin09:03:20

I have a form say (a (b (c d)))

achikin09:03:52

When i place cursor on d and press a hotkey - it gives me (a (b (-> d (c))))

achikin09:03:46

When I select the whole form and ask cursive to thread it - it gives me error Element must be within a list

achikin09:03:10

Or Cannot thread element at this position

achikin09:03:31

Aha, got it.

achikin09:03:06

But it leaves braces even if there are no parameters in forms (-> 1 (+) (-) (+))

cfleming09:03:34

@achikin Right, that should be a config setting - personally I like that.

yonatanel13:03:49

@cfleming I think to run tests they must be open in the current edit tab, otherwise my only option is to run the last test command.

yonatanel13:03:48

AND initially you have to also be in that namespace in repl.

polymeris17:03:51

IDEA 2016.2.5

polymeris17:03:30

putting :as params on its own line (as it should be), seems to fix it

carocad17:03:52

@cfleming quick question. does the cljs environment support automatic recognition of file namespace on form evaluation? I find myself constantly going to the top of the file and evaling the ns form so that everything gets def'ed on the correct ns 😞

cfleming21:03:42

@yonatanel Yes, you can re-run the previous tests you ran, or run one or all tests from the current ns.

cfleming21:03:05

You shouldn’t have to be in that NS in the REPL, though.

cfleming21:03:18

If you’d prefer that to work in some other way I’m open to suggestions.

cfleming21:03:04

@polymeris That looks bad, could you file an issue for that please?

cfleming21:03:36

@carocad I’m not sure what you mean - do you mean that when you send a form from the editor, that it gets evaluated in the file namespace?

carocad16:03:57

yes exactly. Lets say I am in file core.cljs with ns example.core and then I switch to another file fabric.cljs with ns example.fabrich and eval a form there. The evaled symbol is reported as #example.core/my-symbol not as #example.fabric./my-symbol which is what I was expecting

carocad16:03:53

I must say though that I have quite a special configuration. I have a react-native app with a figwheel repl connected to cursive so I dont know if that has some effect on it

carocad18:04:57

@cfleming are you use to thread conversation? 🙂

cfleming22:04:35

@carocad Yes, but I did miss this one, I’m not sure how

cfleming22:04:30

There’s a config setting for this: Settings-&gt;Languages &amp; Frameworks-&gt;Clojure-&gt;Evaluate forms in REPL namespace - does that help?

cfleming22:04:53

How are you connecting your Figwheel REPL - using nREPL?

carocad12:04:27

unfortunately the option that you told me to enable didnt fix the problem 😞

carocad12:04:54

in case it might help, here is the project.clj that I am using. https://github.com/n7a235/phone.app.hive/blob/master/project.clj

carocad12:04:27

it is still a very unstable thing so I wouldnt bet on it but it could provide you more information

cfleming23:03:57

@bfabry Are you still having that problem with the REPL completion?

bfabry23:03:47

I am, but I've been caught up with other stuff. I'll try some things next week to fix it

cfleming23:03:55

Ok, no worries.

cfleming23:03:01

Let me know when you have some time to debug it.