protorepl

jasongilman 2016-08-26T01:43:44.000264Z

I haven't seen keybinding issues before like that. @legatus7 can you try directly invoking the command using the command pallette?

jasongilman 2016-08-26T01:44:25.000265Z

That will determine if it's actually a keybinding problem or something else.

jasongilman 2016-08-26T15:41:16.000267Z

@carocad: pretty cool! I'm excited to see the final product and try it out.

2016-08-26T16:30:26.000268Z

@jasongilman yeap 🙂 I think we might even be able to have inline exceptions for every command but that would be a far update. Too many changes at once wouldn't be good jeje

2016-08-26T16:47:43.000269Z

BTW: do you have any idea why are we still getting those (form-init1234532.clj) things on the exceptions? it seems that proto-repl can recognize other files, but not the current file where things are executed 😕 What I mean is that if I have an error in a function which calls another function in another file, the file is correctly reported back. But if the error is in the current file where I defined the function then it fails ...

jasongilman 2016-08-26T18:22:21.000271Z

I need to look into that. It's specifying the file name to nREPL but the code block is just reported as form in the exception. I need to understand more about how Clojure stack traces are generated.

moxaj 2016-08-26T18:37:59.000272Z

@jasongilman hey there, trivial PR waiting on proto-repl-charts (cannot be compiled on the latest alpha version of clojure because of a typo), please take a look!

2016-08-26T18:42:50.000273Z

Oh I think I found the reason or at least a clue. If you load the complete file that defines the functions with bugs and then call it with bad input the exception correctly reports the file where the functions where defined ! It seems that this problem only happens if you send the function definition to the repl

richiardiandrea 2016-08-26T18:54:50.000274Z

Oh guys that's pretty!

richiardiandrea 2016-08-26T18:56:00.000275Z

I so like that you get the callee highlighted, good job! Can I use this as feature request for cider? 😄

richiardiandrea 2016-08-26T19:03:29.000276Z

also, about stacktraces, this is a snipped to convert them to a list of strings + optional data:

(merge {:stacktraces (mapv str (.getStackTrace ex))}
       (when-let [data (ex-data ex)] {:ex-data data}))

richiardiandrea 2016-08-26T19:04:47.000282Z

^ works for both normal exceptions and ex-info exceptions

jasongilman 2016-08-26T20:37:38.000283Z

@moxaj: sorry I missed that. I'll merge it.

jasongilman 2016-08-26T20:44:56.000284Z

@moxaj: Merged and I fixed some other require's as well. It's proto-repl-charts "0.3.2" now