This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-07
Channels
- # beginners (95)
- # cider (131)
- # cljdoc (12)
- # cljsjs (2)
- # clojure (209)
- # clojure-dev (1)
- # clojure-italy (3)
- # clojure-nl (10)
- # clojure-russia (37)
- # clojure-spec (19)
- # clojure-uk (182)
- # clojurescript (136)
- # cursive (28)
- # datomic (28)
- # editors (55)
- # figwheel-main (1)
- # fulcro (36)
- # hyperfiddle (12)
- # jobs (1)
- # jobs-discuss (55)
- # luminus (1)
- # mount (1)
- # off-topic (28)
- # onyx (18)
- # reagent (17)
- # ring-swagger (4)
- # rum (14)
- # shadow-cljs (22)
- # spacemacs (15)
- # tools-deps (16)
- # vim (26)
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" 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)
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:
(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...
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
Ah. That one is a bug https://github.com/cursive-ide/cursive/issues/2010
There is a workaround https://github.com/cursive-ide/cursive/issues/2010#issuecomment-410319862 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?