Dub platform probes

Mathias LANG geod24 at gmail.com
Thu May 28 05:50:56 UTC 2020


On Thursday, 28 May 2020 at 02:28:07 UTC, Tim wrote:
> On Wednesday, 27 May 2020 at 21:17:54 UTC, Andre Pany wrote:
>> I read through the source code. The probe file is created here 
>> https://github.com/dlang/dub/blob/master/source/dub/compilers/utils.d#L296
>> The function getTempFile determines a new random temp file 
>> name and stores the file path in a global variable. A module 
>> destructor loops through this string array list and deletes 
>> the temp files 
>> https://github.com/dlang/dub/blob/master/source/dub/internal/utils.d#L98
>>
>> I wonder why in your case the temp files are not deleted.
>>
>> Kind regards
>> Andre
>
> Me too. I have noticed that sometimes I don't need to and other 
> times I do. Maybe it is to do with program crashes where it 
> isn't cleaned up? I'll keep a closer eye on it

Is the app you're building a server by any chance ?
There's a recurrent problem with `dub`:
- https://github.com/dlang/dub/issues/536
There's a fix for it, unmerged though as it needs some 
work/testing: https://github.com/dlang/dub/pull/1696




More information about the Digitalmars-d-learn mailing list