-
Notifications
You must be signed in to change notification settings - Fork 63
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
Cross build for SBT 1.0.0-RC3 #57
Conversation
build.sbt
Outdated
if (scalaVersion.value startsWith "2.10.") | ||
"org.scalariform" %% "scalariform" % "0.1.8" | ||
else | ||
"com.github.machaval" %% "scalariform" % "0.2.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"org.scalariform" %% "scalariform" % "0.2.0"
Has been released, includes changes from the com.github.machaval
fork, cross published for 2.10/11/12.
Please amend PR accordingly. Thanks
build.sbt
Outdated
libraryDependencies += "org.scalariform" %% "scalariform" % "0.1.8" | ||
libraryDependencies += { | ||
if (scalaVersion.value startsWith "2.10.") | ||
"org.scalariform" %% "scalariform" % "0.1.8" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, the reason for mentioning cross publishing is that library dependencies can now simply be:
libraryDependencies += "org.scalariform" %% "scalariform" % "0.2.0"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, seems I failed to properly parse your last comment, sorry. Update on its way.
I was trying to look for 0.2.0 for 2.10 on Maven Central but I suppose its indexing hasn't caught up yet or something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right, it's not yet up on maven central, but the dependency resolves (0.2.0 was published an hour or so ago)
@liff thanks for the update. Scala 2.12.3 will soon be released (likely within days), I'd like to hold off on publishing a new More later. |
@liff thanks for the contribution, will be part of the 1.8.0 release (probably in a couple of weeks when sbt 1.0 lands) . |
From my understanding of the announcement you don't necessarily have to wait for 1.0 final to release for it. |
Sure, but latest changes need to be vetted before releasing 1.8.0 to make sure everything is working properly, which is not the case right now, seems to be broken. Did you try out 1.0.0-RC3 + scala 2.12 against PR changes? Everything's fine for 0.13.16 + 2.10.6, but when doing a
formatting fails with:
|
I didn't try actually. Assumed it'd just work. I'll check it out in the evening. |
Famous last words ;-) Think your code is fine, looks like real cause of the exception may be upstream in First, in sbt 1.0 the empty file case seems to not be properly encoded by sjsonnew for Second, to workaround the first problem, even when stuffing dummy data (like "alignParameters=false") into Please try to sort this out, will likely involve modifying your code to workaround upstream issues. If you issue a new PR, please do so against my fork in the 1.8.0 branch, have some new functionality built on top of current master that will go into 1.8.0 release. That or fixup your fork and I'll clone it to test out changes prior to your issuing a PR to master. p.s. you can run Thanks |
Opened a PR about the caching issue. I think the exception handling thing might be just a regression in SBT 1.0. I'll ask around in gitter tomorrow or open an issue. |
We're getting there, your PR to my fork solves the caching issue. Now we need to sort out the empty cache file scenario (which is always the case on fresh project, or after an sbt SBT 1.0 final is scheduled to be released in a couple of weeks. Hopefully they can be more defensive here. That, or we try to workaround the issue by checking the empty file case on our end. |
It looks like this is going to be more complicated than even fixing the SBT regression. The suggested replacement is to use I suppose one option could be to always write out the preferences in full so that the |
Agreed, 0.13 to 1.0 is full of pitfalls (dealing with similar problems trying to port I have tried with Use our own internal definition of
|
Yeah, Using a custom |
Life is too short, let's just get this PR fixed up and deal with perfection later (i.e. when sbt 0.13 can be dropped). Unless you have time that is, feel free to try to get I pushed patched |
@liff Tests pass, think we're good to go for 1.8.0 |
Sorry, I was busy with other stuff the past couple of days. Perhaps the Travis build should still be updated? The |
Uses scalariform for 2.12 from
com.github.machaval
organization (see #55 and #36) so perhaps this is not the final form.