Fork me on GitHub
#cursive
<
2018-08-07
>
wilkerlucio02:08:17

hello, today I decided to click on the button to generate stubs from a deps project, but it triggered an error:

wilkerlucio02:08:18

Error generating stubs for module workspaces: Exception in thread "main" java.io.FileNotFoundException: Could not locate cljs/closure__init.class or cljs/closure.clj on classpath., compiling:(/private/var/folders/pp/h6rzplc92z9g5ghxdyxghvvm0000gn/T/create-stub8284594259110546595.clj:2:1)
					at clojure.lang.Compiler.load(Compiler.java:7526)
					at clojure.lang.Compiler.loadFile(Compiler.java:7452)
					at clojure.lang.RT$3.invoke(RT.java:325)
					at user$eval2038.invokeStatic(form-init6387638623671932986.clj:1)
					at user$eval2038.invoke(form-init6387638623671932986.clj:1)
					at clojure.lang.Compiler.eval(Compiler.java:7062)
					at clojure.lang.Compiler.eval(Compiler.java:7052)
					at clojure.lang.Compiler.load(Compiler.java:7514)
					at clojure.lang.Compiler.loadFile(Compiler.java:7452)
					at clojure.main$load_script.invokeStatic(main.clj:278)
					at clojure.main$init_opt.invokeStatic(main.clj:280)
					at clojure.main$init_opt.invoke(main.clj:280)
					at clojure.main$initialize.invokeStatic(main.clj:311)
					at clojure.main$null_opt.invokeStatic(main.clj:345)
					at clojure.main$nu... (show balloon)

wilkerlucio02:08:55

and since then I can't get my project to proper recognize the symbols, from deps or from lein, seems like the project got broken and it's not coming back, is there some way to get around and it back?

wilkerlucio02:08:19

I tried removing the .idea and adding the project back, but no luck there

wilkerlucio02:08:50

never mind, the issue was that I moved core dependencies like clojure and clojurescript to a separated alias to avoid exposing then as regular deps, but for that to work I also have to check it on the aliases on my project, all working now

wilkerlucio03:08:47

@cfleming thanks for putting the labels on project/system aliases on deps, had you though about giving then separated "folders" on the UI?

cfleming03:08:31

I hadn’t, but that might be possible. I’d have to try it out, the checkbox trees are a little funky in Swing.

wilkerlucio03:08:22

hehe, 2018 and we still have a hard time there 😛

Empperi09:08:48

if I drag a cljs file from one package to another it's namespace is not updated accordingly neither are other namespaces which are depending on it

Empperi09:08:57

also, if I use refactor->rename with a cljs namespace it updates it's name on that file just fine but all requires requiring that specific namespace get swapped with just the name I gave. Example:

(ns foo.bar)
; rename above to:
(ns foo.watta)

; in some other namespace I originally had:
(ns foo.other
  (:require [foo.bar :as fb])

; but after refactor->rename I get:
(ns foo.other
  (:require [watta :as fb])

; which obviously does not work...

Empperi09:08:30

having these two problems at the same time make reorganizing cljs code pain

Empperi09:08:54

version I'm using: Built on: 2018-08-01 14:59 Built from: 1.8.0-eap4 Version: 1.8.0-eap4-2018.2

Empperi10:08:27

my current workaround for these issues is to search for references before making any changes, then make the change and then go through the search results I got and fix all references manually

Empperi10:08:01

been doing a major refactoring for this one cljs app for the past two days and I think I could have got this done in less than one if these issues did not exist

joelsanchez11:08:14

is "cursive" a play on "recursive"? someone needed to ask

4
danm12:08:49

I assumed it was "joined up handwriting", but you could be right

slipset14:08:01

As a emacs user it makes me curse...

dnolen15:08:57

are deps.edn aliases supported when starting a plain REPL?

kenny15:08:14

@dnolen Yes. If by plain REPL you mean a Local REPL.

dnolen15:08:44

hrm it doesn’t seem to work?

dnolen15:08:59

I have an alias with :extra-paths and I don’t see this on the classpath?

dnolen15:08:20

by plain REPL I mean Local REPL via clojure.main

dnolen16:08:35

@kenny so :extra-deps work but not :extra-paths?

kenny16:08:50

There is a workaround https://github.com/cursive-ide/cursive/issues/2010#issuecomment-410319862 but IntelliJ doesn't remember that on restart.

kenny16:08:45

FYI, if A depends on B and B has :paths with "resources", Cursive will add B's resources dir to the classpath.

Richard16:08:39

Using the new figwheel-main with cursive, I'm able to get a connected browser window and a working repl. Only thing is, cursive (Idea?) still thinks the repl is a clojure repl, so I can' t load my clojurescript code into it (using the default ALT+Shift+L). Any suggestions on how to allow the cursive editor to load the file into the repl? I guess how to tell cursive the repl is now a Clojurescript repl?