aBothe / Mono-D

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

cannot open dub project #643

Closed extrawurst closed 8 years ago

extrawurst commented 8 years ago

i guess it is related to https://github.com/aBothe/Mono-D/issues/639

loading https://github.com/Extrawurst/unecht/blob/master/samples/helloworld/dub.json is not possible:

screen shot 2016-02-11 at 00 43 33
Trollgeir commented 8 years ago

I had the same problem, although I fixed it as I had some inconsistencies with my subpackage dependencies. I think Xamarin tries to check every dependency while dub only loads once. My main package had the right dependencies (which were git clones on my drive) while the others were the same package, just trying to haul it from the repository which doesn't exist anymore.

extrawurst commented 8 years ago

"I think Xamarin tries to check every dependency while dub only loads once" - please elobarate, i dont understand that

Trollgeir commented 8 years ago

Sorry, sleepless night!

What I meant to say is that, if you load your main package which branches to other sub-packages, and if the sub-packages share some dependencies which you already loaded in the main package, those won't be checked by dub, but it might be checked by Xamarin. My problem was that the sub-packages (also dub files) had deprecated dependencies listed from the dub repository, but I think dub ignored them because they were already loaded by the main package (which had a path to the packages on my physical harddrive).

extrawurst commented 8 years ago

unfortunately that is not the case in this project. end even if, it should be fixed and be on par with dub behaviour

Trollgeir commented 8 years ago

Have you tried to temporarily remove the dependencies in your main and/or sub-packages in a step-by-step fashion? This is how I was able to locate the source of the problem. Xamarin is able to load some dub files even if they don't compile.