This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-06
Channels
- # bangalore-clj (7)
- # beginners (51)
- # bigdata (1)
- # cider (97)
- # cljsjs (2)
- # clojure (41)
- # clojure-dev (2)
- # clojure-dusseldorf (5)
- # clojure-nl (16)
- # clojure-russia (43)
- # clojure-spec (13)
- # clojure-uk (59)
- # clojurescript (24)
- # community-development (16)
- # datomic (18)
- # defnpodcast (1)
- # editors (96)
- # figwheel-main (6)
- # fulcro (13)
- # jobs-discuss (2)
- # jobs-rus (8)
- # off-topic (8)
- # onyx (11)
- # pedestal (3)
- # re-frame (18)
- # reitit (2)
- # shadow-cljs (158)
- # spacemacs (7)
- # tools-deps (3)
- # vim (3)
after updating to shadow-cljs 2.4.30, the I get an empty .nrepl-port
, and shadow-cljs server
shows shadow-cljs - nREPL server started on port
(no port shown). the shadow-cljs.edn is very simple:
{:dependencies [[zprint "0.4.10"]
[funcool/cuerdas "2.0.5"]]
:source-paths ["src"]
:builds {:test2 {:target :node-script
:main fmtz2.core/main
:output-to "out/test2.js"}}}
@samuel.wagen there should be a warning printed on startup if nrepl fails?
shadow-cljs - config: /Users/bupkis/dev/test2/shadow-cljs.edn cli version: 2.4.30 node: v10.8.0
shadow-cljs - starting ...
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.xnio.nio.NioXnio$2 (file:/Users/bupkis/.m2/repository/org/jboss/xnio/xnio-nio/3.3.8.Final/xnio-nio-3.3.8.Final.jar) to constructor sun.nio.ch.KQueueSelectorProvider()
WARNING: Please consider reporting this to the maintainers of org.xnio.nio.NioXnio$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
shadow-cljs - server version: 2.4.30
shadow-cljs - server running at
shadow-cljs - socket REPL running on port 55789
shadow-cljs - nREPL server started on port
@samuel.wagen should be fixed in 2.4.31
it now starts the nrepl server, but when I do (shadow/node-repl)
from Cursive - I get RuntimeException Can't resolve find-ns clojure.lang.Util.runtimeException (Util.java:221)
if i start the server, and in another terminal do shadow-cljs clj-repl
and from that I do (shadow/node-repl)
- I get to the CLJS repl no problem
could it be connected to another problem I'm having with versions >2.4.28? it also has issues in a project where I use refactor-nrepl (`[WARNING] No nREPL middleware descriptor in metadata of #'refactor-nrepl.middleware/wrap-refactor, see nrepl.middleware/set-descriptor!`), but I guess that's not a shadow issue, more of an issue between the new nrepl and refactor-nrepl
I said above it's in a different project, just thought it could be related since it started in >2.4.28 too.
weird. let me blow away the .shadow-cljs
directory and try again. the config is above - very vanilla
I tracked the problem down to tools.logging a while ago but thought it was just masking a different underlying issue
that thread is ridiculous, why are they being so stubborn to even acknowledge the issue, not to mention accept a fix
I shouldn't have made it about load time ... and really should have just started by patching tools.logging instead
Hi, i’ve just done a release build and it’s pretty obnoxiously large (~5Mb) , is there any way to figure out what the contributors are ?
Hm.. I'm getting a warning cljs.core.ICounted is not a protocol
when trying to implement a record with custom counting, however my tests seem to show that it's working correctly. Am I missing something?
@samuel.wagen the find-ns
issue should hopefully be fixed in 2.4.32
. I can no longer reproduce it at least.
anyone using the aws-sdk? It’s adding like 2Mb to my build, I’m only requiring the following
["aws-sdk" :default AWS]
["aws-sdk/clients/s3" :default S3]
if you import aws-sdk
it'll bring in every single thing including the stuff you don't actually use
I’m trying to use shadow-cljs in a small project which uses some npm modules that I want to require in my ClojureScript code. I’m using Emacs with CIDER and followed the instructions on https://shadow-cljs.github.io/docs/UsersGuide.html#cider to start a server and connect to the repl, but running M-x cider-connect
times out with the error:
[nREPL] Establishing direct connection to localhost:55098 ...
[nREPL] Direct connection to localhost:55098 established
helm-M-x: Sync nREPL request timed out (op clone id 1)
I’m very new to all of this ClojureScript stuff and want to try it out so any help would be appreciated. Thanks!@samarthkishor1 I don't know anything about cider unfortunately
cider is in this weird spot right now due to the nrepl 0.4 migration. are you on 0.18.0 already?
I tried my best at supporting both nrepl versions but that has proven to be much harder than anticipated
I upgraded to the latest version of cider this morning and the dependencies section of my shadow-cljs.edn file looks like this:
:dependencies [[cider/cider-nrepl "0.18.0"]]
I got the repl to run but I can’t send expressions to the repl from a cljs buffer or evaluate them. At least I have something to work with though. Thanks!
don't forget about all of this https://shadow-cljs.github.io/docs/UsersGuide.html#_launch_the_clojurescript_repl
M-x cider-create-sibling-cljs-repl
doesn’t seem to be a command. I’ll look in the cider docs to see if it got renamed to something else
<< Building for release >>
[:mp360] Compiling ...
The required namespace "doublethedonation.integrations.app" is not available.
[:ddregister] Compiling ...
The required namespace "doublethedonation.register" is not available.
[:ddplugin] Compiling ...
The required namespace "doublethedonation.external" is not available.
[:mp360partners] Compiling ...
The required namespace "doublethedonation.partner-portal.app" is not available.
@kanwei how are you calling things? << Building for release >>
looks like something custom maybe?
the errors sugguests that maybe the classpath isn't configured properly. but nothing changed regarding that in 2.4.32
@kanwei could you maybe try with http://github.com/degree9/boot-shadow
it was originally based on that gist (or a similar one)
alternatively try with the standalone cli app as @thheller suggests
@thheller where was that modified? Is this something I can patch in the boot task directly?
@thheller boot does I believe as it abstracts the actual classpath with a virtual one, via the fileset concept
https://github.com/thheller/shadow-cljs/commit/e9bd399ab82f9ac826f880ab51a50f67bac5783f
@thheller we should be able to provide a class path, since boot requires building it’s own
@kanwei try 2.4.33, sorry about that. didn't think anyone was relying on that old behaviour since it doesn't work in java9+
@flyboarder does boot work with java9+?
yep all the way to Java 11
(boot.pod/get-classpath)
right, so we need to be able to pass a classpath to shadow-cljs config
I guess you could replace the shadow.build.classpath/get-classpath
fn with something that calls the boot thing?
or we can build the pod using an existing classpath from shadow
where is the shadow class path being constructed?
I wonder if I can just use that?
Is it just checking the property? or does it build it’s own?
https://github.com/thheller/shadow-cljs/blob/master/src/main/shadow/build/classpath.clj#L35-L43
@alandipert Do you know of a way to fix this classpath issue above? Ideally I’d like to just patch it within a boot task to the shadow pod
@thheller I’ll keep looking into this and see if I can patch it from the boot task instead of requiring changes to the internals of shadow
from what I know its no longer possible to inspect the classpath by looking at classloaders in java9+
Boot has to be doing something that makes this possible 😛
but that might not actually be true. so if someone knows a way to still do it in java9+ I'm happy to consider it
@flyboarder its only a problem is something actually tries to inspect the classpath. you don't usually have much reason to do so
@thheller looks like there was an issue open to add boot class path support to external tools, a quick check for boot.class.path
could also do the trick
@kanwei can you post your boot environment also? Does it include the source folders that are also in shadow-cljs.edn?