Fork me on GitHub
#cursive
<
2016-01-03
>
yuris04:01:02

@simax99 @cfleming: Hi guys following the REPL window resizing keyboard problem, just noticed something. If I open a REPL window before starting a REPL session, the keyboard shortcuts work. When I start a REPL session in this window, the shortcuts still work up until the moment when the message "Connecting to local nREPL server..." is issued. At that point, the resize shortcuts stop working, and only clicking on the Tools icon reinstates them. It also seems that stopping/restarting REPL or closing/opening REPL window no longer have any effect on the shortcuts until the project is closed. (Windows 10, IJ 15, but I think I observed this behavior on Win 8.1 and IJ 14 IIRC)

simax9910:01:29

@yuris: @cfleming Ticket logged with JetBrains support https://youtrack.jetbrains.com/issue/IDEA-149936 re: REPL tool window resize problem. Lets see what they come up with.

meow19:01:47

I'm editing a defrecord using Cursive and it is failing to resolve any methods with dashes or bangs! Is this a known issue? Here is my code:

(defrecord FaceMesh [face-set]
  IPolygonMesh
  (faces [m] (:face-set m))
  (edges [m] (or (:edge-set m) (keys (:edge-faces-map m)) (mm/edge-set m)))
  (verts [m] (or (:vert-set m) (keys (:vert-npfs-map m)) (mm/vert-set m)))
  (assoc-edge-faces-map [m] (mm/assoc-edge-faces-map m))
  (assoc-face-area-map [m] (mm/assoc-face-area-map m))
  (assoc-face-circ-map [m] (mm/assoc-face-circ-map m))
  (assoc-face-dist-map [m point] (mm/assoc-face-dist-map m point))
  (assoc-vert-npfs-map [m] (mm/assoc-vert-npfs-map m))
  (centroid [m] (mm/centroid m))
  (edge-faces-map [m] (or (:edge-faces-map m) (mm/edge-faces-map m)))
  (face-color-map [m] (:face-color-map m))
  (face-normal-map [m] (or (:face-normal-map m) (mm/face-normal-map m)))
  (scale [m factor] (mx/scale (vec (mp/verts m)) factor) m)
  (scale! [m factor] (mx/scale! (vec (mp/verts m)) factor) m)
  (vert-faces-map [m] (or (:vert-faces-map m) (mm/vert-faces-map m)))
  (vert-normal-map [m] (or (:vert-normal-map m) (mm/vert-normal-map m)))
  (vert-npfs-map [m] (or (:vert-npfs-map m) (mm/vert-npfs-map m))))

meow19:01:32

It also fails to resolve any arguments for the methods that have dashes or bangs.

meow19:01:08

So lots of highlighted code in this file. Note that the code works just fine. It's only Cursive that is confused.

jaen20:01:46

Hmm, I have (-get-event-handlers [this] ...) in my defrecord and it is resolved properly, so maybe something else is up?

jaen20:01:20

At least in so far as it is not highlighted as an unknown symbol, ctrl+click doesn't navigate to the protocol (that might be intentional though I suppose).

meow20:01:53

@jaen: It's strange. I haven't written that many defrecords before so this is the first time I've seen this.

cfleming20:01:38

@meow: That should work fine, I’ll check this later on.

meow20:01:24

@cfleming: Yeah, it isn't causing me any real problems - just kind of annoying. No hurry.