Fork me on GitHub
#cursive
<
2017-11-15
>
taylor01:11:25

I think if you hover over the macro def, a little light bulb might appear allowing you to select some macro formatting options @nick319

taylor02:11:43

> However to adjust the indentation settings for a particular macro, you’ll need to do the following. Find an instance of the macro in your code, and position the cursor over the macro symbol. You’ll get an intention lightbulb which will allow you to modify the indentation using Alt Enter.

cfleming02:11:48

@nick319 Or are you saying that you can’t use @taylor’s solution because Cursive doesn’t detect def-comp-events as a macro?

cfleming02:11:27

Does def-comp-events resolve correctly? i.e. if you Ctrl/Cmd-click on it, does it navigate to the definition? Or is it marked in yellow?

cfleming03:11:11

@hiskennyness I’m pretty sure there’s no key combo to delete run configs.

cfleming03:11:37

AFAIK you can only do it from the Edit Configurations dialog.

Mudge03:11:03

@cfleming It is not being resolved. Why not?

Mudge04:11:50

The macro comes from a library that is installed in my local maven repository

Mudge04:11:09

@cfleming Here is how it looks:

Mudge04:11:10

(ns clojuretest-client.windows.main-window (:require [ignition-project :refer [def-comp-events system]])) (def-comp-events "root.Power Table" (mouseEntered [event] (println "I am very glad. Does this change now?") (println event)) (initialize [source] (println "initializing with style. self:" source)))

Mudge04:11:41

def-comp-events is unresolved. I have ignition-project in the project.clj file like so:

Mudge04:11:53

:dependencies [[org.clojure/clojure "1.8.0"] [perfect-abstractions/ignition-project "1.0.0"] [org.clojure/tools.nrepl "0.2.12"]]

Mudge04:11:27

Why is def-comp-events unresolved?

cfleming04:11:48

@nick319 How is def-comp-events defined in that library?

Mudge04:11:08

Like this:

Mudge04:11:09

(defmacro def-comp-events [comp-path & functions] `(def-comp-events-fn comp-path 'functions))

Mudge04:11:14

@cfleming will unresolved symbols in the library cause unresolved symbols in projects that use that library?

Mudge05:11:01

@cfleming can there be a feature that allows me to set the indentation on unresolved symbols?

Mudge05:11:32

That would be really helpful because then I wouldn't have to deal/worry about unresolved symbols

cfleming09:11:48

@nick319 That’s strange, that should definitely work. I’ll try to reproduce it tomorrow.

sandbags20:11:51

@cfleming other way around but, yes

steveb8n23:11:30

“Live Share” looks really useful for remote devs. https://www.youtube.com/watch?v=fWXe1HQ1wVA&amp;t=13s Anyone know if something like this exists in IntelliJ or on roadmap?