rewrite-clj

https://github.com/clj-commons/rewrite-clj
2019-11-13T02:26:01.199Z

@borkdude i've been looking through clj-kondo for code related to "Mismatched bracket..." -- at least initially it looks to me like at least some of the functionality you mentioned (also?) lives in your clj-kondo-included rewrite-clj fork. does that sound right?

borkdude 2019-11-13T07:38:44.199400Z

It lives in the inlined directory

2019-11-13T15:54:50.201700Z

yes, i found your tools.reader fork in the inlined directory and see it is a little different from the official 1.2.2 -- the rewrite-clj fork seems to have more of what you were referring to. i am just asking for confirmation that it makes sense to examine the rewrite-clj portion as well -- i've been reading it too.

borkdude 2019-11-13T16:10:31.202300Z

I don't remember if rewrite-clj also has changes to this. You should be able to see the relevant commit(s) from @marc-omorain

borkdude 2019-11-13T16:11:41.202800Z

they were not too long ago

Marc O'Morain 2019-11-13T16:12:06.203Z

👋

Marc O'Morain 2019-11-13T16:13:41.204600Z

There were two changes that I made: - rewrite-clj was not reporting row + col information in many cases where there was an error in source at the tokenizer stage. - I changed the rewrite-clj error message to refer to both the position of both the opening and closing parens.

2019-11-13T16:14:06.205Z

@marc-omorain ty for the summary!

Marc O'Morain 2019-11-13T16:15:52.206600Z

This test exposes a lot of the problem, I believe that running those examples through rewrite-clj will expose the issues. Those were my most reduced repro-cases.

2019-11-13T16:17:05.207400Z

ah nice -- will try running that.