This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-04
Channels
- # adventofcode (100)
- # announcements (7)
- # architecture (1)
- # aws (14)
- # beginners (209)
- # calva (30)
- # cider (5)
- # cljdoc (2)
- # cljs-dev (37)
- # cljsrn (2)
- # clojure (133)
- # clojure-dev (20)
- # clojure-finland (1)
- # clojure-italy (10)
- # clojure-nl (19)
- # clojure-spec (56)
- # clojure-uk (49)
- # clojurescript (57)
- # clojurex (8)
- # core-async (2)
- # core-logic (1)
- # cursive (38)
- # data-science (19)
- # datomic (28)
- # devcards (3)
- # duct (8)
- # emacs (28)
- # figwheel (1)
- # figwheel-main (31)
- # fulcro (2)
- # jobs (1)
- # kaocha (1)
- # klipse (2)
- # mount (6)
- # nrepl (43)
- # off-topic (20)
- # pathom (3)
- # pedestal (1)
- # re-frame (15)
- # ring-swagger (1)
- # shadow-cljs (47)
- # spacemacs (19)
- # sql (20)
- # tools-deps (58)
- # unrepl (13)
- # vim (5)
lein repl :connect localhost:42659
Connecting to nREPL at localhost:42659
CompilerException java.lang.ClassNotFoundException: clojure.tools.nrepl, compiling:(null:1:82)
#namespace[user]
Error loading namespace; falling back to user
nil
user=> Bye for now!
from my project deps (in shadow's file)
:dependencies
[
[thheller/shadow-cljs "2.7.6"]
[refactor-nrepl "2.4.0"]
[org.clojure/clojure "1.10.0-alpha6"]
[org.clojure/clojurescript "1.10.339"]
[cider/cider-nrepl "0.19.0-SNAPSHOT"]
[binaryage/devtools "0.9.10"]
[adzerk/env "0.3.1" :scope "test"]
[com.rpl/specter "1.1.2"]
;; [hoplon/hoplon "7.1.0"]
[hoplon/hoplon "7.3.0-SNAPSHOT"]
;; [vigilancetech-com/hoplon "6.0.0-alpha17"]
[cljsjs/markdown "0.6.0-beta1-0"]
[vigilancetech/ui "0.3.0-SNAPSHOT"]
]
@thheller I am trying to use the :node-library
output with AWS Lambda and am running into problems when I take the output and upload it to lambda. Does the output require a specific node version as its minimum?
@vigilancetech try with adding [org.clojure/tools.nrepl "0.2.13"]
to those dependencies.
(Even though I think it used to work with just having the cider deps and shadow injected the rest.)
@royalaid node v6+ is required yes but thats a pretty old version so aws should definitely have that
Here is a repro, if you do a release
and then upload the zip to AWS lambda it just returns null
but it is trying to create a global variable. maybe they don't allow that for some reason?
try 2.7.8
. I changed how the exports are generated so it doesn't rely on the global.
@royalaid just out of curiosity, are there any npm deps in this project? was running into a (potentially) similar thing recently, and wondering if it’s related
I haven't included any in the example project but plan to do a follow up post leveraging AWS's graphql lib for an example
but if you want to include npm deps Shadow's docs have a great section on how to do so
right on. one thing i ran into that may or may not be helpful in your case is that i needed to copy node_modules
into the zip, as thomas is undecided on “single-file” node builds. that might be obvious to most people but i spent a decent bit of time figuring that out, especially with :advanced
on
That is good to know, I will include it in some edit's I want to make to the post
@vigilancetech do you have a user.clj
in your sources that tries to do something with nrepl?
cider-nrepl 0.18+ requires nrepl 0.4+ but you seem to use the older version somewhere somehow?
@pez yes that is true but connecting should still work fine as the protocol itself is unchanged
lein repl :connect localhost:8202
Connecting to nREPL at localhost:8202
shadow.user=>
getting tired of this cider stuff constantly breaking ... gonna have to spend some time with it some day ...
It used to work better before the move to the new sessions system, but it's not that "unstable" now. 🙂
@thheller what ide/editor are you currently using?
@thheller no user.clj
Had a little fun during/after the conj and built a bash script that runs and wait for the watch to be ready and then launches node: https://github.com/elasticpath/fonda/blob/master/scripts/repl To be refined for sure but it works fine for now :)))
Just noticed there is a small bug lol