dlang-tour / core

D Language online tour (https://tour.dlang.org/) and online editor (https://run.dlang.io/)
Boost Software License 1.0
117 stars 47 forks source link

Fix path issues when using dub #726

Closed AndrejMitrovic closed 4 years ago

AndrejMitrovic commented 5 years ago

For some reason dub fails when there are multiple forward slashes in a path:

dub -q --compiler=dmd --single /var/folders/9k/jxw1lpwn6493sf_8f58p3bk80000gn/T//temp_dlang_tour_veqcpivikb.d                           

Error: module `temp_dlang_tour_veqcpivikb` from file /var/folders/9k/jxw1lpwn6493sf_8f58p3bk80000gn/T/test.d conflicts with another module temp_dlang_tour_veqcpivikb from file /var/folders/9k/jxw1lpwn6493sf_8f58p3bk80000gn/T//test.d
dmd failed with exit code 1.

It doesn't have anything to do with module declarations.

Geod24 commented 5 years ago

For some reason dub fails when there are multiple forward slashes in a path:

https://github.com/dlang/dub/issues/new ;)