Fork me on GitHub
#cursive
<
2018-03-12
>
genekim03:03:17

Thank you @rarous and @mfikes and @cfleming! I’ll try it out this week!

tony.kay20:03:53

Colin, I notice that in CLJC files, the “reformat” action in Cursive makes a mess of conditional splicing….e.g., this is what I get:

(ns fulcro.client.dom
  (:refer-clojure :exclude [map meta time mask select])
  #?(:cljs (:require-macros [fulcro.client.dom :as dom]))
  (:require
    [clojure.string :as str]
    [fulcro.client.impl.protocols :as p]
    [fulcro.util :as util]
    [clojure.spec.alpha :as s]
    #?@(:clj  (
    [clojure.core.reducers :as r]
    [clojure.future :refer :all]
    [fulcro.checksums :as chk])
        :cljs ([cljsjs.react]
                [cljsjs.react.dom]
                [goog.object :as gobj])))
even if I try to manually wrap the stuff up, it still forces it down. This makes using parinfer, for example, corrupt the code. I would expect something like:
(ns fulcro.client.dom
  (:refer-clojure :exclude [map meta time mask select])
  #?(:cljs (:require-macros [fulcro.client.dom :as dom]))
  (:require
    [clojure.string :as str]
    [fulcro.client.impl.protocols :as p]
    [fulcro.util :as util]
    [clojure.spec.alpha :as s]
    #?@(:clj  ([clojure.core.reducers :as r]
               [clojure.future :refer :all]
               [fulcro.checksums :as chk])
        :cljs ([cljsjs.react]
                [cljsjs.react.dom]
                [goog.object :as gobj])))