This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-01
Channels
- # announcements (2)
- # babashka (26)
- # beginners (26)
- # biff (18)
- # boulder-clojurians (2)
- # cider (16)
- # clj-kondo (34)
- # cljs-dev (4)
- # clojure (22)
- # clojure-denver (10)
- # clojure-europe (16)
- # clojure-nl (1)
- # clojure-norway (10)
- # clojure-uk (2)
- # clojurescript (25)
- # conjure (3)
- # cursive (11)
- # datomic (11)
- # dev-tooling (6)
- # emacs (6)
- # etaoin (7)
- # events (1)
- # fulcro (6)
- # humbleui (11)
- # hyperfiddle (15)
- # instaparse (2)
- # introduce-yourself (2)
- # jobs-discuss (1)
- # lsp (26)
- # malli (7)
- # reitit (5)
- # releases (1)
- # sci (6)
- # shadow-cljs (16)
- # specter (5)
- # vim (5)
I have been using this setup from the cider docs, https://docs.cider.mx/cider/cljs/shadow-cljs.html#using-shadow-cljs-with-deps-edn-and-custom-repl-initialization in user.clj it defaults to :app but it looks like it should be selectable or configurable when you jack in as the function has 2 forms. is it possible to change just setup portfolio and looking for a way to switch between :app and :portfolio if this is possible.
Is there a way to use a certain jdk for just one project? I want to tinker around with virtual threads but I don't want to change my system jdk.
I've used a docker container / https://code.visualstudio.com/docs/devcontainers/tutorial for this
If you're using VS Code/Calva and devcontainers, it's surprisingly straightforward
See https://github.com/danielmartincraig/coffi-demo-deps for an example of how I used JDK 18 and https://github.com/IGJoshua/coffi to try out the new features of project panama
Sorry, I know you asked in the Cider channel; maybe devcontainers can be used in emacs/cider too
coffi certainly looks interesting, and I can take a look at the docker solution until another solution pops up.
In case you didn't know, SDKMan makes changing the system jdk relatively pain-free
that might be worth looking into as well
if you try SDKMan you might be interested in checking out its https://sdkman.io/usage#env
https://www.jenv.be/ is a very simple to use tool to set the version of Java jdk to use
SDKMan is a good option for managing your JDK environment docker tends to complicate things a bit when it comes to jacking in
Hi everyone, I’m having trouble running tests in a Clojure project with CIDER. Specifically, I’m trying to use the cider-test-run-project-tests
function, but it keeps telling me that there are no tests to be run, even though there are. I’m using a deps.edn
project and have confirmed that my test files are named properly and located in the right directory. I can run them from the command line with clojure -M:test
. Any ideas on what might be causing this issue? Thanks in advance for your help!
have you evaluated all of the forms in the project yet? it ought to evaluate all forms on startup, but if there’s a form that fails to evaluate and yet you don’t hear about it, the tests might will have been prevented from loading
yes. also I believe that clojure -M:test
would do that as well