This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-12-13
Channels
- # adventofcode (54)
- # aleph (1)
- # announcements (2)
- # aws (123)
- # babashka (1)
- # beginners (41)
- # calva (21)
- # cider (1)
- # clj-kondo (58)
- # cljdoc (4)
- # clojure (123)
- # clojure-austin (1)
- # clojure-belgium (6)
- # clojure-dev (11)
- # clojure-europe (33)
- # clojure-nl (1)
- # clojure-portugal (1)
- # clojure-uk (3)
- # clojurescript (20)
- # community-development (32)
- # conjure (1)
- # datomic (17)
- # etaoin (8)
- # events (1)
- # fulcro (1)
- # hyperfiddle (7)
- # malli (3)
- # nrepl (3)
- # off-topic (17)
- # other-languages (1)
- # polylith (4)
- # portal (7)
- # releases (3)
- # remote-jobs (1)
- # shadow-cljs (18)
- # test-check (24)
- # testing (3)
- # timbre (1)
- # xtdb (7)
I'm trying to use portal inside a larger clojure app via leiningen
lein repl.
user=> (require '[portal.api :as p])
Syntax error compiling at (portal/runtime/jvm/launcher.clj:1:1).
namespace 'portal.runtime.jvm.server' not found
What could be a reason for that?
This is using latest portal version 0.35.0 - defined in ~/.lein/profiles.clj
.
It works fine when used outside the project (`lein repl` with no project.clj)Very weird, not sure how profiles.clj interacts with project.clj :thinking_face: I would expect all files in the jar to be available or unavailable.
I found the problem by trying to load the portal.runtime.jvm.server namespace
Caused by: java.lang.RuntimeException: No such var: server/as-channel
at clojure.lang.Util.runtimeException (Util.java:221)
It turned out that we were using an old http-kit version (2.2.0).
Upgrading to 2.6.0 fixed the problemI'm on a new machine that I'm not quite used to yet but I get this error when I call portal/open
:
; Execution error (ExceptionInfo) at portal.runtime.jvm.launcher/get-config (launcher.clj:26).
; No config file found: vs-code.edn
aha, silly me! I completely forgot that I did this on my old comp 💀 thanks @U1G869VNV