Fork me on GitHub
#cursive
<
2017-02-01
>
wilkerlucio12:02:48

hello, is there a way to remove a keyword from cursive index? often times I typo a keyword for the first time, then I fix it, but the old still on index making it confusing on auto-complete time

imre13:02:21

will file/invalidate caches not do this?

stijn14:02:58

any tips & tricks for an awfully slow repl window?

stijn14:02:34

when editing

stijn15:02:02

it seems to happen when I type (d/d and the repl tries to suggest requiring datomic.api

imre15:02:09

does it get better if you click on the bin? "clear output for current repl"

imre15:02:20

I've had that problem with datomic

okwori19:02:09

Does anyone know why am getting this on IntelliJ IDEA sometimes No nREPL ack received

genec20:02:02

Hi, I just downloaded the intellij community ed and the installed cursive. following along with the website to setup the nrepl and the screenshots don't match and my lein nrepl options are greyed out, so I'm stuck on how to set this up

danielcompton20:02:40

Can you share a screenshot?

genec20:02:33

@danielcompton sure, just a minute..

danielcompton20:02:53

Open up project structure > modules

danielcompton20:02:04

It looks like you might not have your Clojure project added as a module?

genec20:02:46

I created the project with lein new app cursive-test

genec20:02:04

then opened it in intellij

manutter5120:02:07

@genec I do (1) create with lein new … (2) Use “New -> From Existing Sources…”

manutter5120:02:48

it should let you pick Leiningen as the project type, and then that will set up all your options correctly so you can do the REPL stuff

manutter5120:02:43

I remember having similar issues when I first started because I was just opening up project dirs directly instead of using New -> From existing sources.

genec20:02:16

@manutter51 bingo thank you! - the dialogs have changed a bit and you need to select the project.clj (not just the project directory). On the welcome screen you have to select import project and then select the project.clj file to import. Hope this helps some others who want to try intellij / cursive

manutter5121:02:26

I don’t have to select project.clj. Just File -> New -> Create project from existing sources…, and then select the directory, then Import Project from External Model and click Leiningen.

manutter5121:02:53

I’m using IntelliJ Ultimate, not the community edition, might be differences.

manutter5121:02:08

Anyway, glad you’re past the hurdle at least.

genec21:02:07

thanks for the help, is there any way to send a line or block of code from the editor to the repl? (without using the mouse/menu?) I'm used to F# and being able to alt+enter to execute lines of code.

manutter5121:02:38

Yeah, if you look in Preferences under Keymap -> Clojure bindings there’s a bunch of shortcuts, including sending code to the repl

manutter5121:02:16

plus stuff for navigating s-expressions

genec21:02:46

wow - thanks

genec21:02:13

i think i need to upgrade to set the keybindings "current keymap cannot be modified"

cfleming22:02:54

@genec No, that’s because you’re using a default keymap, and they’re immutable.

cfleming22:02:00

@wilkerlucio Unfortunately no, I’m going to look at that index soon since it’s a bit funky.

cfleming22:02:11

It takes a long time to refresh.

cfleming22:02:29

@simon That can happen if your app takes a very long time to initialise - try increasing the timeout at Settings-&gt;Languages &amp; Frameworks-&gt;Clojure-&gt;REPL startup timeout

cfleming22:02:43

You can also get that message if your app totally fails to start for some reason.

okwori22:02:58

@cfleming Thanks! Increased the timeout, Works good now!