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
Empty solution error description #305
Comments
The first one seems like a bug indeed. I cannot reproduce the second one, maybe you didn't restart R after the installation? |
If you use a new library, then you'll see the real reason: ❯ p <- pkgdepends::new_pkg_installation_proposal(c("cran/dm@1.0.0", "cran/dplyr@1.0.9"), config = list(library = tempfile()))
ℹ Creating library directory: /var/folders/ph/fpcmzfd16rgbbk8mxvy9m2_h0000gn/T//RtmpMsCIiD/fileaa583ad9ccc9
❯ p$solve()
❯ p$get_solution()
<pkg_solution>
+ result: FAILED
+ refs:
- cran/dm@1.0.0
- cran/dplyr@1.0.9
+ constraints (165):
- select dm exactly once
- select dplyr exactly once
- select DBI at most once
- select Matrix at most once
- select R6 at most once
- select backports at most once
- select cachem at most once
- select cli at most once
- select cpp11 at most once
- select fansi at most once
...
x failures:
* cran/dm@1.0.0: Can't install dependency tidyr (>= 1.0.0)
* tidyr: Can't install dependency dplyr (>= 1.0.10)
* dplyr: Conflicts with cran/dplyr@1.0.9 |
Thank you. After session restart my red error is gone. Adding config arg also solved blank report issue but I guess this ticket is still valid as we want to have it without that arg specified. |
I actually have one more use case of a blank failure report and I got it with
Above works perfectly fine without failures - you would just need to comment-out one of the imports. Do you have any idea how to make it work? |
These are the same versions as above, no? So the error is the same, tidyr needs dplyr 1.0.10:
|
Yes. Those are the same references and after your last comment I know the reason. I just reused it to give you another example of a erroneous behavior - this time using also |
Hi @gaborcsardi is there any plans to attack this bad guy? It's sort of relevant for my project as it's hard to interpret empty error reports. |
Reprex:
|
This currently happens if no direct ref can be installed because of conflicting dependencies. E.g. in #305. Hopefully we can do better soon.
With b37d08e this now reports:
|
Thank you @gaborcsardi. I do confirm that using For anyone else looking at this ticket. I managed to find out sort of workaround solution to put a vector of refs read from package description as opposed to single reference to the package itself. Using reprex above:
|
This is for
lpSolve_5.6.17
. If I do upgrade to the newest version5.6.18
I even got a red error:The text was updated successfully, but these errors were encountered: