-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
What to do with: "Could not find a valid dependency tree configuration" #418
Comments
|
The error message is wrong, I'll look into that. The actual error should mention "hap" instead of "dchip", at least on my system. |
|
With the fix, the error message for me is now: There are still cases where the error message may be misleading, but detecting those cases requires some advanced analysis of the dependency/version graph and is currently not feasible with the combinatoric approach that is used for dependency resolution. |
|
Ok, works for me. You can close this when you feel like! Thanks! BTW: Wouldn't it be awesome if DUB bash completion could complete list of registered packages by fetching and parsing a package list from the web? If you added a link to an easier to parse file format such as csv or json at http://code.dlang.org/ I could add it to the bash completion. For the fetch phase is wget the recommended tool to retrieve the list? What do you say? |
|
Don't know if this is possibly any kind of faux-pas for completion scripts to access online content, but it sounds like a nice feature. There is http://code.dlang.org/available as a simple JSON array. As the fetch tool, wget sounds like the best choice, because it is available by default most of the time, while curl on the other hand could directly write to stdout. But maybe it would be a good idea to cache the list somewhere anyway? |
|
Very nice. I wish the rest of the web was that structured and simple when you need it to be :) |
|
I believe the simplest solution is rely on Python for this thing. Would it be ok to implement this logic in Python? IMHO Python is as accessible as wget or curl. |
|
Seems like Python is indeed pretty ubiquitously available these days, so it should probably be fine. (Maybe someone with greater experience of different distributions has a different opinion?) It could also be implemented using simple string operations, since only |
Suddenly DUB errors as
If I remove dchip I get the same error for all other packages.
What is wrong?
I've tried removing
~/.dub/packagesandsub.selections.jsonwith no progress.Here's the file: https://github.com/nordlow/justd/blob/master/dub.json
The text was updated successfully, but these errors were encountered: