Fork me on GitHub
#cursive
<
2023-05-26
>
Eduardo Lopes13:05:00

When using cursive on a Clojure CLI project I am facing an issue when I create a folder that is not src, I created a dev folder to be a toolbox for my repl environment. But every time I reload IntelliJ it show this message on first print and code is not highlighted propperly. Trying setting Modules on Project Structure it gives a warning that is imported from Maven and configuration might be lost. Is this something about cursive, Intellij or something I'm missing on my configurations? I'm really believing that is the last case 😅

imre13:05:32

have you got your dev folder as extra-paths in one of your aliases?

imre13:05:46

have you got that alias ticked in your "deps" tool window?

Eduardo Lopes13:05:21

{:paths ["src" "resources"]
 :deps {org.clojure/clojure             {:mvn/version "1.11.1"}
        io.pedestal/pedestal.service    {:mvn/version "0.5.7"}
        io.pedestal/pedestal.route      {:mvn/version "0.5.7"}
        io.pedestal/pedestal.jetty      {:mvn/version "0.5.7"}
        com.stuartsierra/component      {:mvn/version "0.4.0"}
        com.stuartsierra/component.repl {:mvn/version "0.2.0"}
        org.slf4j/slf4j-simple          {:mvn/version "1.7.28"}
        clj-http/clj-http               {:mvn/version "3.12.3"}}
 :aliases
 {:api {:ns-default cloped.core
        :exec-fn start-api
        :exec-args {:env :prod}}
  :run-m {:main-opts ["-m" "cloped.clojure-backend-auth"]}
  :run-x {:ns-default cloped.clojure-backend-auth
          :exec-fn greet
          :exec-args {:name "Clojure"}}
  :build {:deps {io.github.clojure/tools.build
                 {:git/tag "v0.9.2" :git/sha "fe6b140"}}
          :ns-default build}
  :test {:extra-paths ["test"]
         :extra-deps {org.clojure/test.check {:mvn/version "1.1.1"}
                      io.github.cognitect-labs/test-runner
                      {:git/tag "v0.5.1" :git/sha "dfb30dd"}}}
  :dev  {:main-opts ["-e" "(require 'cloped.dev) (in-ns 'cloped.dev)" "-r"]
         :extra-paths ["dev"]
         :extra-deps {org.clojure/tools.namespace {:mvn/version "1.4.4"}
                      io.github.nubank/morse {:git/tag "v2023.04.30.01" :git/sha "d99b09c"}}}}}

Eduardo Lopes13:05:38

On my :dev alias yes, I've added to extra-paths

Eduardo Lopes13:05:59

But is not ticked :thinking_face:

Eduardo Lopes13:05:29

Maybe is because of this it appears as deps (system) on clojure deps window?

Eduardo Lopes13:05:58

I ticked now btw

Eduardo Lopes13:05:36

Yes, it solved. Thanks a lot 😄

imre13:05:18

yeah, I think it's dev you need to tick, not deps

imre13:05:24

👍:skin-tone-3:

Eduardo Lopes13:05:50

:thinking_face: it worked just by ticking deps

Eduardo Lopes13:05:11

I'll check it all any way