This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-14
Channels
- # beginners (33)
- # boot (38)
- # clara (21)
- # cljs-dev (1)
- # cljsjs (2)
- # cljsrn (12)
- # clojure (230)
- # clojure-argentina (1)
- # clojure-brasil (3)
- # clojure-dusseldorf (4)
- # clojure-france (9)
- # clojure-italy (1)
- # clojure-russia (123)
- # clojure-spec (46)
- # clojure-turkiye (1)
- # clojure-uk (60)
- # clojurescript (83)
- # core-async (6)
- # cursive (10)
- # datascript (19)
- # datomic (28)
- # defnpodcast (1)
- # emacs (7)
- # figwheel (7)
- # fulcro (29)
- # leiningen (29)
- # lumo (9)
- # off-topic (14)
- # om (1)
- # onyx (25)
- # pedestal (1)
- # protorepl (3)
- # re-frame (10)
- # reagent (41)
- # ring-swagger (11)
- # shadow-cljs (10)
- # testing (5)
- # unrepl (3)
- # vim (3)
Hey all, I'm having trouble loading a namespace and calling a function from the repl
Here is my sole clore.cljs file
(ns my-service-cljs.core
(:require [cljs-lambda.macros :refer-macros [defgateway]]
[cljsjs.firebase]))
(defgateway echo [event ctx]
(println "ok then");
{:status 200
:headers {:content-type (-> event :headers :content-type)}
:body (event :body)})
I tried (load "my-service-cljs.core"), (load "my_service_cljs/core"), (load-namespace ...)
Does anyone know the correct expression to load namespace, and does the specific current directory I'm matter or is it always relative to the project root?
I'm not sure clojurescript lets you load files
is there something wrong with (require 'my-service-cljs.core)
?
thanks, but require doesn't work in the repl either
FileNotFoundException Could not locate core'init.class or core'.clj on classpath. clojure.lang.RT.load (RT.java:456)
did you put a quote at the end of it too?
the error message suggests you did
no, I put it in exactly as you said
the single-quote in your error message is pretty misleading then
I tried it many times with and without the quote
On either side
Just to be clear, in (ns foo.core (:require [bar.core]))
there should be no quotes, and in (require '[bar.core])
there should be one quote on the left.
Thanks, it's that meant for repl or a cljs file?
Or both?
Anyone else seeing random maven cert issues on CircleCI?
Could not transfer artifact joda-time:joda-time:jar:2.7 from/to central ( ): Certificate for <repo1.maven.org> doesn't match any of the subject alternative names: []
@cjsauer thanks for the link, that must be it. It's intermittent
I added a comment to their Jira (only took me 15 min to sign up)
Could not transfer artifact net.percederberg:mibble-parser:pom:2.9.3 from/to mibble (https://nexus.cns.vt.edu/nexus/content/groups/public/): Network is unreachable (connect failed)
I can't reach it here