Fork me on GitHub
#portal
<
2022-12-13
>
jumar09:12:09

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)

djblue17:12:55

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.

jumar18:12:45

I’ll try to debug it a bit

jumar04:12:48

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 problem

Ben Lieberman18:12:03

I'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

djblue18:12:28

Might need to install the portal vscode plugin

🙌 1
Ben Lieberman18:12:53

aha, silly me! I completely forgot that I did this on my old comp 💀 thanks @U1G869VNV