Code Monkey home page Code Monkey logo

Comments (18)

johnynek avatar johnynek commented on May 28, 2024 2

seems to have published: https://github.com/typelevel/cats-parse/actions/runs/478850192

here is the release: https://github.com/typelevel/cats-parse/releases/tag/v0.3.0

from cats-parse.

martijnhoekstra avatar martijnhoekstra commented on May 28, 2024 1

This is where the rules are at atm @regadas https://github.com/martijnhoekstra/catsparsescalafix/

from cats-parse.

regadas avatar regadas commented on May 28, 2024

iirc there were some ideas for additional combinators floating around, but I guess those can easily go on the next one.

For this one how are we with scalafix rules? it would be good if we could have them here in the repo.
@martijnhoekstra did you start working on them? I can help out if you want.

from cats-parse.

martijnhoekstra avatar martijnhoekstra commented on May 28, 2024

The scalafix is ready to go. I'll give it another testrun on http4s.

I agree it's kind of weird to have them in my repo, rather than here, but also not really a big deal. Scalafix assumes master for the main branch if you use a github: scheme, so if we do it here, we need to use the raw path rather than a git path.

from cats-parse.

martijnhoekstra avatar martijnhoekstra commented on May 28, 2024

Other than that sounds good to me to release 0.3.0

from cats-parse.

martijnhoekstra avatar martijnhoekstra commented on May 28, 2024

Looking at the results in http4s, I still want to make two changes to the scalafix to make it catch more:

  • Also rename methods that were imported rather than selected from the Parser object. in the current version P.char1(foo) gets replaced with P.char(foo), but import P.char1; char1(foo) remains unchanged. This pattern is heavily used in http4s
  • Insert a pair of parentheses when translating from Parser.rep1(foo) to (foo).rep if foo is some expression that is not just a name. In practice, foo is often x *> y, and we want to get (x *> y).rep, not x *> y.rep

from cats-parse.

johnynek avatar johnynek commented on May 28, 2024

@martijnhoekstra that sounds great to iterate on the scala fix a bit. Also happy to host in this repo, or not. I'm not that concerned about it honestly.

What do you think about #128 ?

from cats-parse.

martijnhoekstra avatar martijnhoekstra commented on May 28, 2024

It's probably better to release now rip the Parser/Parser0 bandaid off as soon as possible. #128 needs to experiment and iterate a bit first, and I don't think it's worth holding a release up over.

As an example for the scalafix, https://github.com/http4s/http4s/compare/dotty...martijnhoekstra:rescaffoldFix?expand=1 has two commits, one with what the scalafix did, and one with the manual cleanup pass over it.

from cats-parse.

regadas avatar regadas commented on May 28, 2024

Oh nice! Awesome to see that there are some initial rules. Having them on the repo would probably just facilitate contribution/awareness but not concerned if they are not.

I'm +1 on getting it out now.

from cats-parse.

johnynek avatar johnynek commented on May 28, 2024

okay, do you all think we are ready to tag 0.3.0?

from cats-parse.

johnynek avatar johnynek commented on May 28, 2024

maybe we should do #111 before we publish or close it. We have done so much rep/repSep related work on this version.

from cats-parse.

johnynek avatar johnynek commented on May 28, 2024

okay, I guess I'll tag 0.3.0 on Monday morning to give us the weekend to see if there are any issues that pop up.

from cats-parse.

regadas avatar regadas commented on May 28, 2024

Sounds good!

from cats-parse.

rossabaker avatar rossabaker commented on May 28, 2024

Glad to see there's a scalafix, and even more glad to see @martijnhoekstra running them on http4s! Some of our contributors have been nervous about the churn that's coming, so hopefully this calms some nerves. Note that series/0.22 is the branch to try it on if http4s is a testbed.

from cats-parse.

martijnhoekstra avatar martijnhoekstra commented on May 28, 2024

@rossabaker I have a PR ready to go with the final changes, but it felt weird to open it before 0.3.0 is actually out.

from cats-parse.

johnynek avatar johnynek commented on May 28, 2024

okay, tagging 0.3.0

from cats-parse.

johnynek avatar johnynek commented on May 28, 2024

https://github.com/typelevel/cats-parse/releases/tag/v0.3.0

from cats-parse.

johnynek avatar johnynek commented on May 28, 2024

here is an example of the manual changes I needed to make after scala fix:

johnynek/bosatsu@eb4453d

pretty minor IMO.

from cats-parse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.