Fork me on GitHub
#cursive
<
2019-07-07
>
wilkerlucio01:07:06

@cfleming just tried this (full deps):

{:paths
 ["src/server" "src/client" "src/shared" "resources"]

 :deps
 {cheshire                          {:mvn/version "5.8.1"}
  clj-http                          {:mvn/version "3.10.0"}
  com.cognitect/transit-clj         {:mvn/version "0.8.313"}
  com.cognitect/transit-cljs        {:mvn/version "0.8.256"}
  com.wsscode/pathom                {:mvn/version "2.2.16"}
  fulcrologic/fulcro                {:mvn/version "2.8.11"}
  com.fulcrologic/fulcro            {:mvn/version "3.0.0-alpha-15"}
  com.fulcrologic/fulcro-garden-css {:mvn/version "3.0.4"}
  fulcrologic/fulcro-incubator      {:mvn/version "0.0.35"}
  io.bdrc/jena-stable-turtle        {:mvn/version "0.6.0"}
  io.pedestal/pedestal.jetty        {:mvn/version "0.5.5"}
  io.pedestal/pedestal.route        {:mvn/version "0.5.5"}
  io.pedestal/pedestal.service      {:mvn/version "0.5.5"}
  org.apache.jena/jena-arq          {:mvn/version "3.12.0"}
  org.apache.jena/jena-core         {:mvn/version "3.12.0"}
  org.apache.jena/jena-iri          {:mvn/version "3.12.0"}
  org.apache.jena/jena-tdb          {:mvn/version "3.12.0"}
  org.clojure/clojure               {:mvn/version "1.10.0"}
  org.clojure/data.csv              {:mvn/version "0.1.4"}
  potemkin                          {:mvn/version "0.4.5"}}

 :aliases
 {:dev
  {:extra-paths ["src/dev" "src/cards"]
   :extra-deps  {binaryage/devtools         {:mvn/version "0.9.10"}
                 fulcrologic/fulcro-inspect {:mvn/version "2.2.5"}
                 gnl/ghostwheel             {:mvn/version "0.4.0-SNAPSHOT"}
                 nubank/workspaces          {:mvn/version "1.0.8"}}}

  :test
  {:extra-paths ["src/test"]}

  :prod
  {:extra-deps {gnl/ghostwheel.stubs {:mvn/version "0.3.9"}}}}}

wilkerlucio01:07:24

but it still marking src/test as source root, not test root, am I missing something?

cfleming04:07:00

@wilkerlucio No, that should work, I’ll try that

cfleming04:07:14

Do you have something in your user deps.edn?

cfleming04:07:36

@minhnhat10bk You can use Expand Selection (https://cursive-ide.com/userguide/paredit.html#selecting-things) to select it, and then Delete or Backspace to delete it. There isn’t a single built-in action.

wilkerlucio14:07:39

@cfleming I do have a user deps, but there is nothing with the word test there

cfleming22:07:56

@wilkerlucio Could you go to Help-&gt;Debug log settings…, add #cursive.deps.DepsProjectResolver in there, refresh your project and send me the output?

wilkerlucio18:07:12

@cfleming not related to what we are talking, but on the topic of keyword destructuring, would be nice if Cursive could refactor this: {:keys [::flow/data-property ::flow/data ::editor/update-data]} to {::flow/keys [data-property data] ::editor/keys [update-data]}. I remember you were talking about making the later one option to cursive use during refactoring, so I imagine if you could use the same algorithm to give an explicit option to convert from one to the other

cfleming22:07:19

Sure, once I have implemented one, re-using the logic for the other should be easy.