www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Error writing file a *.obj

reply dummy <dummy dummy-email.org> writes:
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 07 2017
parent reply dummy <dummy dummy-email.org> writes:
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
parent reply bachmeier <no spam.net> writes:
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
next sibling parent dummy <dummy dummy-email.org> writes:
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 08 2017
prev sibling parent reply dummy <dummy dummy-email.org> writes:
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 08 2017
next sibling parent I =?UTF-8?B?TGluZHN0csO2bQ==?= <nota.real address.com> writes:
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 08 2017
prev sibling next sibling parent reply bachmeier <no spam.net> writes:
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 09 2017
parent Stanislav Blinov <stanislav.blinov gmail.com> writes:
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.".
May 10 2017
prev sibling parent Jesse Phillips <Jesse.K.Phillips+D gmail.com> writes:
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