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
Unable to reparse org.apache.flink#flink-parent;1.1-SNAPSHOT from #2650
Comments
SNAPSHOT is slow because to guarantee it's using the latest it needs to check all the resolvers. updateOptions := updateOptions.value.withLatestSnapshots(false) In general I don't recommend using SNAPSHOTs unless you're doing a quick integration test locally. |
Thanks for the disable config option. But surely there is something going wrong as it says "Unable to reparse org.apache.flink" in a warning. Thanks |
FYI, running into same problem with sbt 0.13.12 |
Documentation on
http://www.scala-sbt.org/1.0/docs/sbt-0.13-Tech-Previews.html#Latest+SNAPSHOTs There doesn't seem to be any downside to setting it to false if you only ever work with local SNAPSHOTs. What I don't understand is why if this feature was introduced in 0.13.6 it didn't become a problem until 0.13.10. |
This setting flip flopped a bit:
|
I have the same issue after upgrading to Are there any news about this? |
To ensure that SNAPSHOTs are always the latest, we go through all the resolved modules and check their timestamps. Good. However, if in the process of reparsing/redownloading the module descriptor we fail (or it's not found in that resolver at all), then we cannot refresh the resolved module that could have been internalized or heavily cached in memory by ivy. We do this for correctness. This patch does two things: 1. Adds more comments. 2. Warns only when there are parsing errors in ivy files. 3. Adds debug info in the rest of the cases. This removes the pain of seeing `Unable to parse` that could be caused by other reasons that are not related to parsing at all and which would not affect the algorithm at hand. For instance, if we get a URLResource, that's totally fine -- there is no way we could parse the ivy file. Ivy uses URLResources in several cases where the artifact origin URL is specified.
I've addressed this issue here: scalacenter/librarymanagement@ecbb20b. Previously, we were showing these logs for all the failures that could happen while re-fetching module descriptors for SNAPSHOTs. My commit only warns on parser errors now, and it will add as debug information other reasons that could have happened these annoying bugs in your sbt logs: resources with other implementations, missing descriptor in resolver, etc. For the record, the underlying snapshot resolution has not changed, but only how the logs are handled. If you still want to address the fact that SNAPSHOT resolution is slow, pick one:
|
@jvican Looks good thanks.
|
Yes, and the best option. But the nondeterminism of snapshots is still there. Avoid snapshots. If you can't, I would say you have a tooling problem. |
Fix sbt/sbt#2650: Degrade log level and clarify
Hi,
When I
update
I get those looping warnings:This makes SBT unusable as it's extremely slow.
The affected versions are 0.13.11 and 0.13.10 only, it works well with 0.13.9
Cheers
The text was updated successfully, but these errors were encountered: