Fork me on GitHub

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


Error generating stubs for module workspaces: Exception in thread "main" 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(
					at clojure.lang.Compiler.loadFile(
					at clojure.lang.RT$3.invoke(
					at user$eval2038.invokeStatic(form-init6387638623671932986.clj:1)
					at user$eval2038.invoke(form-init6387638623671932986.clj:1)
					at clojure.lang.Compiler.eval(
					at clojure.lang.Compiler.eval(
					at clojure.lang.Compiler.load(
					at clojure.lang.Compiler.loadFile(
					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)


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?


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


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


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


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


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


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


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:

; rename above to:
(ns foo.watta)

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

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

; which obviously does not work...


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


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


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


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


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


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


As a emacs user it makes me curse...


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


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


hrm it doesn’t seem to work?


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


by plain REPL I mean Local REPL via clojure.main


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


There is a workaround but IntelliJ doesn't remember that on restart.


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


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?