-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added HyphenNameMapperNoDigits - it maps e.g. "implS3" to "impl-s3" #140
Conversation
Is anyone looking at this PRs? Or is the project dead? I need the change in ficus, but I don't want to fork another project of it if there is still one alive. |
Can you just place the instance in your own project and use it? You don't
need it to live in ficus to be able to use it.
…On Fri, Sep 3, 2021, 8:08 AM Paweł Stawicki ***@***.***> wrote:
Is anyone looking at this PRs? Or is the project dead? I need the change
in ficus, but I don't want to fork another project of it if there is still
one alive.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#140 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAUKOOUZ4VPOIFR3JEHH5LUAC3DHANCNFSM4XK27UTA>
.
|
@kailuowang I have many projects and I don't want to copy code. I can of course add this to some utils library and use in my projects. Or I can release my own version of Thanks for the |
@amorfis thanks! Going forward though, full transparency, I am not using ficus myself. Will you be interested in help maintaining this library? |
Yes! |
Is it possible to check why scalafmt test doesn't pass? When I run |
Cc @mdedetrich who set it up |
So I actually cloned https://github.com/amorfis/ficus/tree/hyphen-no-numbers and manually downloaded the scalafmt-native-musl release from https://github.com/scalameta/scalafmt/releases/tag/v2.7.5 and when I run scalafmt locally it passed without any problems. I have no idea why the github action is failing since its also just downloading the same binary from the release and running it, there might be some weird git interaction I am not aware of? You can try dropping the Alternately @kailuowang can just merge this PR ignoring the failure. |
But then the check is going to fail on master isn't it? And on all the future PRs. |
I propose we replace native with sbt-scalafmt cmd on CI
…On Tue, Sep 7, 2021, 8:10 AM Paweł Stawicki ***@***.***> wrote:
Alternately @kailuowang <https://github.com/kailuowang> can just merge
this PR ignoring the failure.
But then the check is going to fail on master isn't it? And on all the
future PRs.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#140 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAUKOMVWO7P5FX2IQFX33TUAX6KJANCNFSM4XK27UTA>
.
|
TBH I am not sure what this problem is because I have already integrated this precise solution in around 10 other Scala open source projects and this is the first time such a problem has happened. Rationally speaking it leaves 2 possibilities
Something specifically being wrong with scalafmt-native looks highly unlikely, both the sbt runner and native are built from the exact same codebase. When I checked out @amorfis branch locally I also tried scalafmt via sbt cli and it reported the exact same result as scalafmt-native. In other words irrespective of what type of scalafmt I was using (native or sbt) I am unable to reproduce whats going on I would prefer to diagnose this problem rather than ripping everything out, because I doubt that just using sbt scalafmt is an actual fix. If you want we can verify this, in which case @amorfis if you are open to this, can you temporarily add WorkflowStep.Sbt(List("scalafmtCheckAll"), name = Some("check format project")) After this line https://github.com/iheartradio/ficus/blob/master/build.sbt#L11 Then make sure you run Commit these changes (ideally as an ammend to your c3f020b commit with a force push) and lets see what happens. |
Will do tomorrow as I gotta go already today 👍 |
ee2dd0e
to
fd863d0
Compare
…" instead of "impl-s-3"
fd863d0
to
712fd43
Compare
I rebased on master and looks like there are no errors now, but it also looks like actions did not run? |
Closing and reopen to trigger GH action |
Awesome, it seems that scalafmt is working without problems now. Not sure what happened but it appears that rebase solve the issue. |
Osm! Thanks! Do you plan to release new version anytime soon? |
If #166 can get merged before the release that would be great! |
I'd love to merge #139 too |
I use ficus and at work, we often have config classes like
and we use hyphens in configs. So this maps to
It would look much better if it was
s3
instead ofs-3
This PR makes it possible