Fork me on GitHub
#cursive
<
2015-08-30
>
tap10:08:38

I tried to start a repl on Clojure project but I got this error

Exception in thread "main" java.io.FileNotFoundException: Could not locate cljsbuild/compiler__init.class or cljsbuild/compiler.clj on classpath., compiling:(/Users/tap/Library/Caches/IdeaIC14/tmp/form-init7188868106629976839.clj:1:107)
	at clojure.lang.Compiler.load(Compiler.java:7239)
	at clojure.lang.Compiler.loadFile(Compiler.java:7165)
	at clojure.main$load_script.invoke(main.clj:275)
	at clojure.main$init_opt.invoke(main.clj:280)
	at clojure.main$initialize.invoke(main.clj:308)
	at clojure.main$null_opt.invoke(main.clj:343)
	at clojure.main$main.doInvoke(main.clj:421)
	at clojure.lang.RestFn.invoke(RestFn.java:421)
	at clojure.lang.Var.invoke(Var.java:383)
	at clojure.lang.AFn.applyToHelper(AFn.java:156)
	at clojure.lang.Var.applyTo(Var.java:700)
	at clojure.main.main(main.java:37)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
Caused by: java.io.FileNotFoundException: Could not locate cljsbuild/compiler__init.class or cljsbuild/compiler.clj on classpath.
	at clojure.lang.RT.load(RT.java:449)
	at clojure.lang.RT.load(RT.java:412)
	at clojure.core$load$fn__5448.invoke(core.clj:5866)
	at clojure.core$load.doInvoke(core.clj:5865)
	at clojure.lang.RestFn.invoke(RestFn.java:408)
	at clojure.core$load_one.invoke(core.clj:5671)
	at clojure.core$load_lib$fn__5397.invoke(core.clj:5711)
	at clojure.core$load_lib.doInvoke(core.clj:5710)
	at clojure.lang.RestFn.applyTo(RestFn.java:142)
	at clojure.core$apply.invoke(core.clj:632)
	at clojure.core$load_libs.doInvoke(core.clj:5749)
	at clojure.lang.RestFn.applyTo(RestFn.java:137)
	at clojure.core$apply.invoke(core.clj:632)
	at clojure.core$require.doInvoke(core.clj:5832)
	at clojure.lang.RestFn.invoke(RestFn.java:436)
	at user$eval7.invoke(form-init7188868106629976839.clj:1)
	at clojure.lang.Compiler.eval(Compiler.java:6782)
	at clojure.lang.Compiler.eval(Compiler.java:6771)
	at clojure.lang.Compiler.load(Compiler.java:7227)
	... 16 more

Process finished with exit code 1
Exception starting REPL: java.lang.InterruptedException
This project doesn’t related to ClojureScript at all, but the previous project I was working on is a ClojureScript project. Any idea what have I done wrongly? Note: $ lein repl in command line starts the repl fine

tap10:08:23

I found the fix. Invalidate cache and restart intellij. Thanks

Joe R. Smith21:08:48

is there a way to manually invoke the indentation options intellij helper menu?

Joe R. Smith21:08:14

I want to tell cursive to indent a “defsomething” a certain way, but clicking on the defsomething doesn’t show me the light bulb.

cfleming21:08:21

@solussd: Not right now, sorry, I need to make the indentation options editable in the settings pane.

Joe R. Smith21:08:41

any file I can edit? simple_smile

cfleming21:08:46

The lightbulb is usually reliable though, does your defsomething resolve? Can you navigate to it?

cfleming21:08:22

And you have the caret inside a usage of defsomething?

cfleming21:08:35

Not the definition?

Joe R. Smith22:08:00

I also have it suggesting (in a blue popup) to import something

Joe R. Smith22:08:09

maybe that is preventing the lightbulb?

cfleming22:08:25

It’s suggesting to import the defsomething, or something else?

Joe R. Smith22:08:31

something else

cfleming22:08:40

Hmm, that might prevent it, yeah

cfleming22:08:46

I’m not sure.

Joe R. Smith22:08:06

is there a way to tell it to stop suggesting the import?

Joe R. Smith22:08:40

the things it is suggesting to import are declared with my defsomething, so cursive doesn’t see them as defs

cfleming22:08:12

In terms of editing files - is your code style set to be project specific?

cfleming22:08:22

Sadly, there’s not a good solution for that right now either, sorry

cfleming22:08:49

You can exclude the package of the thing it’s trying to import, but that may not be what you want.

cfleming22:08:59

i.e. is your code style scheme “Project”?

Joe R. Smith22:08:11

it’s not “Project"

cfleming22:08:28

Ok, then that requires a little spelunking to find the file - one sec

Joe R. Smith22:08:46

running eap 15, if that matters

cfleming22:08:51

Ok, you probably want to quit IntelliJ since it caches a lot of the settings

cfleming22:08:55

Then look in ~/Library/Preferences/IntelliJIdea15/codestyles/

cfleming22:08:15

Find the file corresponding to the code style you’re currently using

cfleming22:08:55

You’ll see a block that looks like this:

<ClojureCodeStyleSettings>{
  :compojure.core/defroutes :only-indent
  :eway-test.store/with-transaction 1
  :hiccup.core/html :only-indent
  :xodus-test.core/with-transaction 1
}</ClojureCodeStyleSettings>

cfleming22:08:07

Modify as required simple_smile