This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-14
Channels
- # announcements (2)
- # aws (1)
- # babashka (18)
- # babashka-sci-dev (103)
- # beginners (165)
- # calva (51)
- # cider (8)
- # circleci (1)
- # clj-kondo (22)
- # clj-on-windows (2)
- # cljdoc (1)
- # cljfx (31)
- # cljs-dev (16)
- # clojure (81)
- # clojure-europe (71)
- # clojure-nl (7)
- # clojure-uk (11)
- # clojurescript (20)
- # code-reviews (26)
- # conjure (1)
- # contributions-welcome (1)
- # core-async (15)
- # cursive (8)
- # datomic (8)
- # defnpodcast (2)
- # eastwood (24)
- # emacs (10)
- # events (1)
- # fulcro (4)
- # funcool (31)
- # graalvm (43)
- # graphql (8)
- # honeysql (9)
- # introduce-yourself (1)
- # jobs (12)
- # kaocha (3)
- # lsp (28)
- # malli (4)
- # meander (4)
- # membrane (7)
- # off-topic (64)
- # other-languages (3)
- # pedestal (1)
- # polylith (31)
- # portal (5)
- # re-frame (4)
- # reitit (1)
- # releases (5)
- # rum (2)
- # schema (2)
- # sci (34)
- # shadow-cljs (21)
- # vscode (1)
hello again! is there anything special that needs to be done for cursive to pickup lein middleware? i have this working with both emacs and vscode but with cursive i get an error trying to load the project. i'm trying to load my middleware version-from-git
and hitting this error:
STDERR - Error: cannot resolve leiningen.git-release/version-from-git middleware
A new version of clojure-extras (add-on to Cursive) was released to the marketplace (0.4.5): https://plugins.jetbrains.com/plugin/18108-clojure-extras/ It has the newest clj-kondo and fixes a couple of issues. Thank you @brcosta!
What in the project.clj
governs what paths are added to Excluded Folders
under the Project Structure? For some reason the path .
keeps getting added in one of my projects, which then removes everything and I have to keep manually removing it everytime leiningen synchronises...
There have been issues like this before, see e.g. https://github.com/cursive-ide/cursive/issues/525. But there is a check there which should prevent that from happening now.
The current list of things which get excluded is: target dir, checkout dir, cljx output-path (probably not using that any more), cljsbuild compiler output-dir. Are you using any of those?
This is my :cljsbuild
:
:cljsbuild {:builds
{:dev {:source-paths ["src"]
:compiler {:main example.core
:optimizations :whitespace
:output-to "./Code.js"
:output-dir "target/dev"
:pretty-print true
:externs ["resources/gas.ext.js"]
:foreign-libs [{:file "src/entry_points.js"
:provides ["example.entry-points"]}]}}
:main {:source-paths ["src"]
:compiler {:main example.core
:optimizations :advanced
:output-to "./Code.js"
:output-dir "target/main"
:pretty-print true
:externs ["resources/gas.ext.js"]
:foreign-libs [{:file "src/entry_points.js"
:provides ["example.entry-points"]}]}}}}
If it's not that then I could paste in the whole thing...
The :output-dir
in :cljsbuild
is targeting a subdir "target/{dev,main}"
so not sure why this is happening...
The only other keys I have defined in the defproject
are:
:description :url :min-lein-version :dependencies :plugins (which only contains lein-cljsbuild) :source-paths and :clean-targets
I'd normally not prod the channel but this behaviour in cursive is pretty frustrating as it keeps ignoring my entire project every time lein refreshes... > The :output-dir in :cljsbuild is targeting a subdir "target/{dev,main}" so not sure why this is happening...
Are you able to send me your whole project.clj? You could DM it or email it to <mailto:[email protected]|[email protected]> if you don’t want it to be public.