aBothe / Mono-D

D Add-In for MonoDevelop
http://wiki.dlang.org/Mono-D
Other
113 stars 26 forks source link

Wrong dub package version loaded in project pad #608

Closed aka-demik closed 9 years ago

aka-demik commented 9 years ago

When I open a dub-project using vibe.d, in the external dependencies loaded version vibe-d-0.7.21. But in my dub.json: "vibe-d" : "~> 0.7.23". And when building dub using "0.7.23". ha Naturally, the problem occurs only if I have multiple versions of vibe.d installed.

aBothe commented 9 years ago

Could you have a look where dub parses or compares a package's version? https://github.com/D-Programming-Language/dub/blob/master/source/dub/semver.d okay :D

aka-demik commented 9 years ago

Maybe to not duplicate the DUB implementation, read the selected version from the file "dub.selections.json"? Or better yet, read the output of dub describe. This command prints the json with complete list of used packages.

aka-demik commented 9 years ago

Thank you.

aBothe commented 9 years ago

I tested some cases successfully, I hope they gonna work for most of the other use cases.