-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.io.FileNotFoundException: Could not locate env__init.class, env.clj or env.cljc on classpath. #458
Comments
This looks like there's an outdated dependency somewhere. Some library is looking for the redblackrose.env namespace and not seeing it. |
Hmm, I just generated the project so that's odd. Is this perhaps an error in the template? Also how should I go about figuring out which dependency is outdated and how should I replace it? (I'm a newbie to Clojure but not to programming.) |
Yeah, it looks like there might be an issue with the combination of the options selected. I'm not seeing the same issue without the I don't use boot myself, so not too familiar with troubleshooting it. However, with Leiningen you can use lein-ancient to see if there are any outdated dependencies in the project. If you have more of the stacktrace available, then we could see what library is trying to call the |
Alright! The full stacktrace is
|
Is redblackrose the name of your project by any chance? |
Yes |
Ah ok, so it looks like there might be a problem with boot setup in the template then. @DonyorM any chance you could take a look at this? :) |
I'm getting the same error using +boot. |
First error that I see after running java.nio.file.NoSuchFileException: src/cljc
Not sure if that's a proper workaroundbut if I run java.io.FileNotFoundException: Could not locate bootluminus/env__init.class, bootluminus/env.clj or bootluminus/env.cljc on classpath.
Which looks like build.boot fails to set proper source path to get access to Related part of build.boot
cat env/dev/clj/bootluminus/env.clj
(ns bootluminus.env
(:require
[selmer.parser :as parser]
[clojure.tools.logging :as log]
[bootluminus.dev-middleware :refer [wrap-dev]]))
(def defaults
{:init
(fn []
(parser/cache-off!)
(log/info "\n-=[bootluminus started successfully using the development profile]=-"))
:stop
(fn []
(log/info "\n-=[bootluminus has shut down successfully]=-"))
:middleware wrap-dev}) cat ~/.boot/boot.properties
#http://boot-clj.com
#Sat May 02 07:11:53 EEST 2020
BOOT_VERSION=2.8.3
BOOT_CLOJURE_VERSION=1.10.1
BOOT_CLOJURE_NAME=org.clojure/clojure
@yogthos Perhaps you may give me some ideas on what I can try to make it boot successfully? |
Unfortunately, I'm not too familiar with boot myself. @DonyorM implemented the feature originally, and might be able to help here. |
To help, I think that That said, it might not be the only issue re the |
Hi! I just setup a new project with the options +aleph +reitit +auth +postgresql +cljs +re-frame +graphql +boot +kibit but I'm getting on odd error on
build run
The text was updated successfully, but these errors were encountered: