venantius / ultra

A Leiningen plugin for a superior development environment
Eclipse Public License 1.0
1.24k stars 37 forks source link

Using `with-profile` in `lein test` removes syntax highlighting #74

Closed daveliepmann closed 7 years ago

daveliepmann commented 7 years ago

lein test produces syntax-highlighted test output. All is right in the world.

lein with-profile <profile> test produces test output without syntax highlighting. Thousands weep.

On: Leiningen 2.7.1 on Java 1.8.0_25 Java HotSpot(TM) 64-Bit Server VM [venantius/ultra "0.5.1"]

venantius commented 7 years ago

May I see your (or a duplicable) project.clj?

daveliepmann commented 7 years ago

I'm seeing this behavior in multiple projects, but https://github.com/daveliepmann/uruk/blob/master/project.clj is one that's publicly available.

venantius commented 7 years ago

Can I see your ~/.lein/profiles.clj as well?

daveliepmann commented 7 years ago

Such a personal question! :) I haven't cleaned this up in a while, but here it is:

{:user {:plugins [[lein-ritz "0.7.0"]
                  [lein-difftest "1.3.8"]
                  [lein-pprint "1.1.1"]
                  [lein-ancient "0.6.8"]
                  [jonase/eastwood "0.2.3"]
                  [lein-localrepo "0.5.3"]
                  [lein-bikeshed "0.2.0"]
                  [lein-kibit "0.1.3"]
                  [venantius/ultra "0.5.1"]]
        :dependencies [[ritz/ritz-nrepl-middleware "0.7.0"]]
        :repl-options {:nrepl-middleware
                       [ritz.nrepl.middleware.javadoc/wrap-javadoc
                        ritz.nrepl.middleware.simple-complete/wrap-simple-complete]}}
 :repl {:plugins [[lein-ritz "0.7.0"]
                  [lein-difftest "1.3.8"]
                  [lein-pprint "1.1.1"]
                  [lein-ancient "0.6.8"]
                  [jonase/eastwood "0.2.3"]
                  [lein-localrepo "0.5.3"]
                  [refactor-nrepl "2.0.0"]
                  [cider/cider-nrepl "0.14.0"]
                  [lein-bikeshed "0.2.0"]]
        :dependencies [[ritz/ritz-nrepl-middleware "0.7.0"]]
        :repl-options {:nrepl-middleware
                       [ritz.nrepl.middleware.javadoc/wrap-javadoc
                        ritz.nrepl.middleware.simple-complete/wrap-simple-complete]}}}
daveliepmann commented 7 years ago

lein with-profile +<profile> test works fine.