Thread overview
Error writing file a *.obj
May 07, 2017
dummy
May 08, 2017
dummy
May 08, 2017
bachmeier
May 08, 2017
dummy
May 09, 2017
dummy
May 09, 2017
I Lindström
May 09, 2017
bachmeier
May 10, 2017
Stanislav Blinov
May 10, 2017
Jesse Phillips
May 07, 2017
Hi :)

  - OS: Winodws 10 Pro KN
  -  DMD: 2.073.2(ofcourse, i tried dmd of 2.074.x version. but same result)

When i build some application with dub, i got this error:
----------------------------------------------------------------------
> dub build
xx ~master: building configuration "application"...
Error: Error writing file '.dub\build\application-debug-windows-x86-dmd_2073-FEC52DAD217DFEA46ECF98CA4240FA06\xx.obj'
dmd failed with exit code 1
----------------------------------------------------------------------



What's mean? my dub.json here:
----------------------------------------------------------------------
{
	"name": "xx",
	"authors": [
		"dummy"
	],
	"description": "A minimal D application.",
	"copyright": "Copyright © 2017, dummy",
	"license": "proprietary",
	"dependencies": {
		"requests": "~>0.4.1"
	},
	"subConfigurations": {
		"requests": "vibed"
	}
}
----------------------------------------------------------------------
app.d is default file, so i didn't modify it.
May 08, 2017
On Sunday, 7 May 2017 at 14:01:32 UTC, dummy wrote:
> Hi :)
>
>   - OS: Winodws 10 Pro KN
>   -  DMD: 2.073.2(ofcourse, i tried dmd of 2.074.x version. but same result)
>
> When i build some application with dub, i got this error:
> ----------------------------------------------------------------------
>> dub build
> xx ~master: building configuration "application"...
> Error: Error writing file '.dub\build\application-debug-windows-x86-dmd_2073-FEC52DAD217DFEA46ECF98CA4240FA06\xx.obj'
> dmd failed with exit code 1
> ----------------------------------------------------------------------
>
>
>
> What's mean? my dub.json here:
> ----------------------------------------------------------------------
> {
> 	"name": "xx",
> 	"authors": [
> 		"dummy"
> 	],
> 	"description": "A minimal D application.",
> 	"copyright": "Copyright © 2017, dummy",
> 	"license": "proprietary",
> 	"dependencies": {
> 		"requests": "~>0.4.1"
> 	},
> 	"subConfigurations": {
> 		"requests": "vibed"
> 	}
> }
> ----------------------------------------------------------------------
> app.d is default file, so i didn't modify it.


+ And, dmd got same result:
----------------------------------------------------------------------
> dmd app.d
Error: Error writing file 'app.obj'
----------------------------------------------------------------------

i have no idea..
May 08, 2017
On Monday, 8 May 2017 at 11:56:10 UTC, dummy wrote:

>> When i build some application with dub, i got this error:

I'm not a Dub user, but it has its own forum, so you might want to try there:
http://forum.rejectedsoftware.com/


May 08, 2017
On Monday, 8 May 2017 at 12:29:27 UTC, bachmeier wrote:
> On Monday, 8 May 2017 at 11:56:10 UTC, dummy wrote:
>
>>> When i build some application with dub, i got this error:
>
> I'm not a Dub user, but it has its own forum, so you might want to try there:
> http://forum.rejectedsoftware.com/

thank you for reply.

but i got same result with 'dub' and 'dmd compiler'...
May 09, 2017
On Monday, 8 May 2017 at 12:29:27 UTC, bachmeier wrote:
> On Monday, 8 May 2017 at 11:56:10 UTC, dummy wrote:
>
>>> When i build some application with dub, i got this error:
>
> I'm not a Dub user, but it has its own forum, so you might want to try there:
> http://forum.rejectedsoftware.com/

Oh, i solve this problem my self...
because, the 'Ransomeware Protection' feature of Bitdefender InternetSecurity 2017.
dub and dmd working pretty when i turn off this feature.

Very sorry for noob question :/
May 09, 2017
On Tuesday, 9 May 2017 at 02:33:06 UTC, dummy wrote:
> On Monday, 8 May 2017 at 12:29:27 UTC, bachmeier wrote:
>> On Monday, 8 May 2017 at 11:56:10 UTC, dummy wrote:
>>
>>>> When i build some application with dub, i got this error:
>>
>> I'm not a Dub user, but it has its own forum, so you might want to try there:
>> http://forum.rejectedsoftware.com/
>
> Oh, i solve this problem my self...
> because, the 'Ransomeware Protection' feature of Bitdefender InternetSecurity 2017.
> dub and dmd working pretty when i turn off this feature.
>
> Very sorry for noob question :/

No need to be sorry. Questions are what this section is for. I've often ran into problems with over-zealous antivirus software in different things, so it's good to know it is also a possibility in this case. If you hadn't asked, I wouldn't have known that.

So thanks for the question. :)
May 09, 2017
On Tuesday, 9 May 2017 at 02:33:06 UTC, dummy wrote:
> On Monday, 8 May 2017 at 12:29:27 UTC, bachmeier wrote:
>> On Monday, 8 May 2017 at 11:56:10 UTC, dummy wrote:
>>
>>>> When i build some application with dub, i got this error:
>>
>> I'm not a Dub user, but it has its own forum, so you might want to try there:
>> http://forum.rejectedsoftware.com/
>
> Oh, i solve this problem my self...
> because, the 'Ransomeware Protection' feature of Bitdefender InternetSecurity 2017.
> dub and dmd working pretty when i turn off this feature.
>
> Very sorry for noob question :/

This is not really a noob question. Since it affects new users trying to run a Hello World program, I wonder if it would be worthwhile to add that information to the error message. Most of the people trying out D will simply give up and blame the language.
May 10, 2017
On Tuesday, 9 May 2017 at 02:33:06 UTC, dummy wrote:
> On Monday, 8 May 2017 at 12:29:27 UTC, bachmeier wrote:
>> On Monday, 8 May 2017 at 11:56:10 UTC, dummy wrote:
>>
>>>> When i build some application with dub, i got this error:
>>
>> I'm not a Dub user, but it has its own forum, so you might want to try there:
>> http://forum.rejectedsoftware.com/
>
> Oh, i solve this problem my self...
> because, the 'Ransomeware Protection' feature of Bitdefender InternetSecurity 2017.
> dub and dmd working pretty when i turn off this feature.
>
> Very sorry for noob question :/

Not at all, I got hit by Bitdefender when upgrading the compiler and took a while to find why my files weren't extracting. I submitted the DMD zip to them to fix it since I couldn't submit the files the AV was deleting. Definitely submit your executables/libs/objects.

https://www.bitdefender.com/submit/
May 10, 2017
On Tuesday, 9 May 2017 at 14:08:48 UTC, bachmeier wrote:
> On Tuesday, 9 May 2017 at 02:33:06 UTC, dummy wrote:
>> On Monday, 8 May 2017 at 12:29:27 UTC, bachmeier wrote:
>>> On Monday, 8 May 2017 at 11:56:10 UTC, dummy wrote:
>>>
>>>>> When i build some application with dub, i got this error:
>>>
>>> I'm not a Dub user, but it has its own forum, so you might want to try there:
>>> http://forum.rejectedsoftware.com/
>>
>> Oh, i solve this problem my self...
>> because, the 'Ransomeware Protection' feature of Bitdefender InternetSecurity 2017.
>> dub and dmd working pretty when i turn off this feature.
>>
>> Very sorry for noob question :/
>
> This is not really a noob question. Since it affects new users trying to run a Hello World program, I wonder if it would be worthwhile to add that information to the error message. Most of the people trying out D will simply give up and blame the language.

It's not. It's not the job of the linker to go rummaging through all user's processes to find out which one is locking the file, even if it's possible.
What could be improved is the clarity, i.e. "Could not write the file due to it being locked for writing/lack of space on device/etc.".