www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - DUB is not working correctly

reply Maxim <mogulevmaxim gmail.com> writes:
Hello, I have problems with working in dub environment. If I try 
to init my project with 'dub init', all needed files will be 
created successfully. However, when I run 'dub run', the manager 
gives me an error:

'Configuration 'application' of package application contains no 
source files. Please add {"targetType": "none"} to its package 
description to avoid building it.
Package with target type "none" must have dependencies to build.'

If I set targetType in dub.json to "none", the only message:
  'Package with target type "none" must have dependencies to 
build.'

will remain. When I set targetName to "app" or any other name, 
the problem will appear again with the same message above. I 
flicked through many forums and videos how to correctly install 
dub, and nothing helped.

I am using dub 1.23.0 built on Sep 25 2020 on Windows 10 x64. 
Will be very thankful for your help!
Feb 24 2021
next sibling parent reply evilrat <evilrat666 gmail.com> writes:
On Wednesday, 24 February 2021 at 16:13:48 UTC, Maxim wrote:
 Hello, I have problems with working in dub environment. If I 
 try to init my project with 'dub init', all needed files will 
 be created successfully. However, when I run 'dub run', the 
 manager gives me an error:

 'Configuration 'application' of package application contains no 
 source files. Please add {"targetType": "none"} to its package 
 description to avoid building it.
 Package with target type "none" must have dependencies to 
 build.'

 If I set targetType in dub.json to "none", the only message:
  'Package with target type "none" must have dependencies to 
 build.'

 will remain. When I set targetName to "app" or any other name, 
 the problem will appear again with the same message above. I 
 flicked through many forums and videos how to correctly install 
 dub, and nothing helped.

 I am using dub 1.23.0 built on Sep 25 2020 on Windows 10 x64. 
 Will be very thankful for your help!
Doesn't seem like an installation problem. Could you post your dub.json contents and describe what you are trying to achieve? Do you have your source files in 'src' or 'source' folder next to the dub.json file? If not, you need to tell dub to treat any other non conventional folder as source location.
Feb 24 2021
parent reply Maxim <mogulevmaxim gmail.com> writes:
On Wednesday, 24 February 2021 at 16:27:49 UTC, evilrat wrote:
 On Wednesday, 24 February 2021 at 16:13:48 UTC, Maxim wrote:
 Hello, I have problems with working in dub environment. If I 
 try to init my project with 'dub init', all needed files will 
 be created successfully. However, when I run 'dub run', the 
 manager gives me an error:

 'Configuration 'application' of package application contains 
 no source files. Please add {"targetType": "none"} to its 
 package description to avoid building it.
 Package with target type "none" must have dependencies to 
 build.'

 If I set targetType in dub.json to "none", the only message:
  'Package with target type "none" must have dependencies to 
 build.'

 will remain. When I set targetName to "app" or any other name, 
 the problem will appear again with the same message above. I 
 flicked through many forums and videos how to correctly 
 install dub, and nothing helped.

 I am using dub 1.23.0 built on Sep 25 2020 on Windows 10 x64. 
 Will be very thankful for your help!
Doesn't seem like an installation problem. Could you post your dub.json contents and describe what you are trying to achieve? Do you have your source files in 'src' or 'source' folder next to the dub.json file? If not, you need to tell dub to treat any other non conventional folder as source location.
Sure, here are dub.json contents: { "authors": [ "Max" ], "copyright": "Copyright © 2021, Max", "description": "A minimal D application.", "license": "proprietary", "dependencies": { "dsfml": "~>2.1.1" }, "targetType": "none", "targetName": "app", "name": "test" } I just want to run it by typing 'dub run'. But the error message says that I need to set targetType to none, add targetName and dependencies for it. I have folder source next to dub.json. I'd better show you my project structure: test | source | app.d | dub.json
Feb 24 2021
parent reply evilrat <evilrat666 gmail.com> writes:
On Wednesday, 24 February 2021 at 16:46:20 UTC, Maxim wrote:
 Sure, here are dub.json contents:
 {
 	"authors": [
 		"Max"
 	],
 	"copyright": "Copyright © 2021, Max",
 	"description": "A minimal D application.",
 	"license": "proprietary",
 	"dependencies": {
 		"dsfml": "~>2.1.1"
 	},
 	"targetType": "none",
 	"targetName": "app",
 	"name": "test"
 }

 I just want to run it by typing 'dub run'. But the error 
 message says that I need to set targetType to none, add 
 targetName and dependencies for it.
ok, you don't need targetType in this case, setting it to none means it will do nothing. the original message likely related to dsmfl which haven't been updated since 2016, maybe you can try another package, for example bindbc-smfl (there is older 'derelict' series, and 'bindbc' series which is newer and recommended over derelict) https://code.dlang.org/packages/bindbc-sfml
Feb 24 2021
parent reply Maxim <mogulevmaxim gmail.com> writes:
On Wednesday, 24 February 2021 at 17:27:19 UTC, evilrat wrote:
 On Wednesday, 24 February 2021 at 16:46:20 UTC, Maxim wrote:
 Sure, here are dub.json contents:
 {
 	"authors": [
 		"Max"
 	],
 	"copyright": "Copyright © 2021, Max",
 	"description": "A minimal D application.",
 	"license": "proprietary",
 	"dependencies": {
 		"dsfml": "~>2.1.1"
 	},
 	"targetType": "none",
 	"targetName": "app",
 	"name": "test"
 }

 I just want to run it by typing 'dub run'. But the error 
 message says that I need to set targetType to none, add 
 targetName and dependencies for it.
ok, you don't need targetType in this case, setting it to none means it will do nothing. the original message likely related to dsmfl which haven't been updated since 2016, maybe you can try another package, for example bindbc-smfl (there is older 'derelict' series, and 'bindbc' series which is newer and recommended over derelict) https://code.dlang.org/packages/bindbc-sfml
Unfortunately, I tried bindbc-sfml package but the problem is still existing. I also started a new project and without any changes ran it but the result was the same. Anyway, thank you so much for your help!
Feb 24 2021
parent reply evilrat <evilrat666 gmail.com> writes:
On Wednesday, 24 February 2021 at 17:45:56 UTC, Maxim wrote:
 Unfortunately, I tried bindbc-sfml package but the problem is 
 still existing. I also started a new project and without any 
 changes ran it but the result was the same. Anyway, thank you 
 so much for your help!
does it works for an empty project created with 'dub init' from terminal?
Feb 24 2021
parent reply Maxim <mogulevmaxim gmail.com> writes:
On Wednesday, 24 February 2021 at 18:21:40 UTC, evilrat wrote:
 On Wednesday, 24 February 2021 at 17:45:56 UTC, Maxim wrote:
 Unfortunately, I tried bindbc-sfml package but the problem is 
 still existing. I also started a new project and without any 
 changes ran it but the result was the same. Anyway, thank you 
 so much for your help!
does it works for an empty project created with 'dub init' from terminal?
No, it doesn't work on an empty project with 'dub init'.
Feb 24 2021
parent reply "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Wed, Feb 24, 2021 at 06:32:00PM +0000, Maxim via Digitalmars-d-learn wrote:
 On Wednesday, 24 February 2021 at 18:21:40 UTC, evilrat wrote:
 On Wednesday, 24 February 2021 at 17:45:56 UTC, Maxim wrote:
 
 Unfortunately, I tried bindbc-sfml package but the problem is
 still existing. I also started a new project and without any
 changes ran it but the result was the same. Anyway, thank you so
 much for your help!
does it works for an empty project created with 'dub init' from terminal?
No, it doesn't work on an empty project with 'dub init'.
Sounds like something is wrong with your toolchain installation. An empty project ought to work. Maybe try a fresh reinstall? T -- BREAKFAST.COM halted...Cereal Port Not Responding. -- YHL
Feb 24 2021
parent reply Maxim <mogulevmaxim gmail.com> writes:
On Wednesday, 24 February 2021 at 18:52:12 UTC, H. S. Teoh wrote:
 On Wed, Feb 24, 2021 at 06:32:00PM +0000, Maxim via 
 Digitalmars-d-learn wrote:
 On Wednesday, 24 February 2021 at 18:21:40 UTC, evilrat wrote:
 On Wednesday, 24 February 2021 at 17:45:56 UTC, Maxim wrote:
 
 Unfortunately, I tried bindbc-sfml package but the problem 
 is still existing. I also started a new project and 
 without any changes ran it but the result was the same. 
 Anyway, thank you so much for your help!
does it works for an empty project created with 'dub init' from terminal?
No, it doesn't work on an empty project with 'dub init'.
Sounds like something is wrong with your toolchain installation. An empty project ought to work. Maybe try a fresh reinstall? T
I recently tried that. Even compiler was reinstalled. It didn't help.
Feb 24 2021
parent reply Siemargl <inqnone gmail.com> writes:
On Wednesday, 24 February 2021 at 19:04:02 UTC, Maxim wrote:
 On Wednesday, 24 February 2021 at 18:52:12 UTC, H. S. Teoh
 I recently tried that. Even compiler was reinstalled. It didn't 
 help.
Just try remove dsfml and all depencies. My void "dub init"? which works { "authors": [ "zws" ], "copyright": "Copyright © 2021, zws", "description": "A minimal D application.", "license": "proprietary", "name": "d_dub" }
Feb 24 2021
next sibling parent Maxim <mogulevmaxim gmail.com> writes:
On Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl wrote:
 On Wednesday, 24 February 2021 at 19:04:02 UTC, Maxim wrote:
 On Wednesday, 24 February 2021 at 18:52:12 UTC, H. S. Teoh
 I recently tried that. Even compiler was reinstalled. It 
 didn't help.
Just try remove dsfml and all depencies. My void "dub init"? which works { "authors": [ "zws" ], "copyright": "Copyright © 2021, zws", "description": "A minimal D application.", "license": "proprietary", "name": "d_dub" }
Unfortunately, the program is still saying me: 'Configuration 'application' of package d_dub contains no source files. Please add {"targetType": "none"} to its package description to avoid building it. Package with target type "none" must have dependencies to build.'
Feb 24 2021
prev sibling parent reply Siemargl <inqnone gmail.com> writes:
On Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl wrote:
 On Wednesday, 24 February 2021 at 19:04:02 UTC, Maxim wrote:
Yes, i see th error. If in your dub.json change > "targetType": "executable", then run
dub run --verbose
Then may see, dsfml generate libs with uderscore sign - dsfml_network.lib for example, but dub tries to link with minus sign dsfml-network.lib ---- Linking... E:\_bin\dmd2\windows\bin\dmd.exe -of.dub\build\application-debug-windows-x86_64-dmd_2092-E7F725543F84B5635FF8 123CBB842A6\app.exe .dub\build\application-debug-windows-x86_64-dmd_2092-E7F725543F84B5635FF8 123CBB842A6\app.obj C:\Users\zws\AppData\Local\dub\packages\dsfml-2.1.1\dsfml\.dub\build\library-debug-windows-x86_64-dmd_2092-372528AD7B0B044300A3F5 08EDDEC8E\dsfml.lib C:\Users\zws\AppData\Local\dub\packages\dsfml-2.1.1\dsfml\.dub\build\library-debug-windows-x86_64-dmd_2092-89A3A2FBA9FCF38E2C4FC38EE57E 128\dsfml_audio.lib C:\Users\zws\AppData\Local\dub\packages\dsfml-2.1.1\dsfml\.dub\build\library-debug-windows-x86_64-dmd_2092-30FC35820C9E4BC06E9757B80A558C9 \dsfml_graphics.lib C:\Users\zws\AppData\Local\dub\packages\dsfml-2.1.1\dsfml\.dub\build\library-debug-windows-x86_64-dmd_2092-197738D20876D73DEACFEABD44ECB EF\dsfml_window.lib C:\Users\zws\AppData\Local\dub\packages\dsfml-2.1.1\dsfml\.dub\build\library-debug-windows-x86_64-dmd_2092-612A34B3AF8623E968A4E88DA31008 9\dsfml_network.lib C:\Users\zws\AppData\Local\dub\packages\dsfml-2.1.1\dsfml\.dub\build\library-debug-windows-x86_64-dmd_2092-3AD1D1D270CC5FB76E7A45610C435 28\dsfml_system.lib dsfmlc-audio.lib dsfmlc-system.lib dsfmlc-graphics.lib dsfmlc-window.lib dsfmlc-network.lib -m64 -g lld-link: error: could not open 'dsfmlc-audio.lib': no such file or directory lld-link: error: could not open 'dsfmlc-system.lib': no such file or directory lld-link: error: could not open 'dsfmlc-graphics.lib': no such file or directory lld-link: error: could not open 'dsfmlc-window.lib': no such file or directory lld-link: error: could not open 'dsfmlc-network.lib': no such file or directory Error: linker exited with status 1
Feb 24 2021
parent reply Maxim <mogulevmaxim gmail.com> writes:
On Wednesday, 24 February 2021 at 19:35:46 UTC, Siemargl wrote:
 On Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl wrote:
 [...]
Yes, i see th error. If in your dub.json change > "targetType": "executable", [...]
Tried and everything seems to be okay with underscores but the error message about the targetType appears even when I start my new pure project without any dependencies.
Feb 24 2021
parent reply Siemargl <inqnone gmail.com> writes:
On Wednesday, 24 February 2021 at 19:42:05 UTC, Maxim wrote:
 On Wednesday, 24 February 2021 at 19:35:46 UTC, Siemargl wrote:
 On Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl wrote:
 [...]
Yes, i see th error. If in your dub.json change > "targetType": "executable", [...]
Tried and everything seems to be okay with underscores but the error message about the targetType appears even when I start my new pure project without any dependencies.
Just downloaded latest dmd 2.095.1, it comes with dub 1.24.1 Works fine on void dub init project, but underscore problem whith dsfml still here
Feb 24 2021
next sibling parent Maxim <mogulevmaxim gmail.com> writes:
On Wednesday, 24 February 2021 at 19:48:10 UTC, Siemargl wrote:
 On Wednesday, 24 February 2021 at 19:42:05 UTC, Maxim wrote:
 On Wednesday, 24 February 2021 at 19:35:46 UTC, Siemargl wrote:
 On Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl 
 wrote:
 [...]
Yes, i see th error. If in your dub.json change > "targetType": "executable", [...]
Tried and everything seems to be okay with underscores but the error message about the targetType appears even when I start my new pure project without any dependencies.
Just downloaded latest dmd 2.095.1, it comes with dub 1.24.1 Works fine on void dub init project, but underscore problem whith dsfml still here
I think that dsfml itself causing this problem with underscores. As evilrat said, dsfml haven't been updated since 2016.
Feb 24 2021
prev sibling next sibling parent reply Siemargl <inqnone gmail.com> writes:
On Wednesday, 24 February 2021 at 19:48:10 UTC, Siemargl wrote:
 On Wednesday, 24 February 2021 at 19:42:05 UTC, Maxim wrote:
 On Wednesday, 24 February 2021 at 19:35:46 UTC, Siemargl wrote:
 On Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl 
 wrote:
 [...]
Yes, i see th error. If in your dub.json change > "targetType": "executable", [...]
Tried and everything seems to be okay with underscores but the error message about the targetType appears even when I start my new pure project without any dependencies.
Just downloaded latest dmd 2.095.1, it comes with dub 1.24.1 Works fine on void dub init project, but underscore problem whith dsfml still here
I think, its a problem with dsfml project. You can see it in %userprofile%\AppData\Local\dub\packages\dsfml-2.1.1\dsfml There is a build.d build program, i compile it and build.exe -unittest fails, can see source code : Needed depencies dsfmlc-*.lib (note 'c' on tth end!)
Feb 24 2021
next sibling parent reply Siemargl <inqnone gmail.com> writes:
On Wednesday, 24 February 2021 at 20:10:29 UTC, Siemargl wrote:
 Works fine on void dub init project, but underscore problem 
 whith dsfml still here
I think, its a problem with dsfml project. You can see it in %userprofile%\AppData\Local\dub\packages\dsfml-2.1.1\dsfml There is a build.d build program, i compile it and build.exe -unittest fails, can see source code : Needed depencies dsfmlc-*.lib (note 'c' on tth end!)
So its not a dub problem, just needed dsfmlc-*.libs, which is not a part of a dsfml-2.1.1, but maybe external to C-linking libraries.
Feb 24 2021
parent Maxim <mogulevmaxim gmail.com> writes:
On Wednesday, 24 February 2021 at 20:28:45 UTC, Siemargl wrote:
 On Wednesday, 24 February 2021 at 20:10:29 UTC, Siemargl wrote:
 Works fine on void dub init project, but underscore problem 
 whith dsfml still here
I think, its a problem with dsfml project. You can see it in %userprofile%\AppData\Local\dub\packages\dsfml-2.1.1\dsfml There is a build.d build program, i compile it and build.exe -unittest fails, can see source code : Needed depencies dsfmlc-*.lib (note 'c' on tth end!)
So its not a dub problem, just needed dsfmlc-*.libs, which is not a part of a dsfml-2.1.1, but maybe external to C-linking libraries.
I agree with you. Well, dsfml is a very old library. It's a pity that the main problem of this topic was caused not because of dsfml but something else. In any case, thank you very much for your help!
Feb 24 2021
prev sibling parent Maxim <mogulevmaxim gmail.com> writes:
On Wednesday, 24 February 2021 at 20:10:29 UTC, Siemargl wrote:
 On Wednesday, 24 February 2021 at 19:48:10 UTC, Siemargl wrote:
 On Wednesday, 24 February 2021 at 19:42:05 UTC, Maxim wrote:
 On Wednesday, 24 February 2021 at 19:35:46 UTC, Siemargl 
 wrote:
 On Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl 
 wrote:
 [...]
Yes, i see th error. If in your dub.json change > "targetType": "executable", [...]
Tried and everything seems to be okay with underscores but the error message about the targetType appears even when I start my new pure project without any dependencies.
Just downloaded latest dmd 2.095.1, it comes with dub 1.24.1 Works fine on void dub init project, but underscore problem whith dsfml still here
I think, its a problem with dsfml project. You can see it in %userprofile%\AppData\Local\dub\packages\dsfml-2.1.1\dsfml There is a build.d build program, i compile it and build.exe -unittest fails, can see source code : Needed depencies dsfmlc-*.lib (note 'c' on tth end!)
Thanks for the tip! Anyway, if I understood right, I would add "dsfmlc-*.lib" to dependencies in my dub.json. But it needs a version which I don't know. So, I tried to put '"dependencies": { "dsfmlc-*.lib": "~>2.1.1" }' in the file but it didn't compile because of wrong version. I am sorry if I got you wrong.
Feb 24 2021
prev sibling parent reply Maxim <mogulevmaxim gmail.com> writes:
On Wednesday, 24 February 2021 at 19:48:10 UTC, Siemargl wrote:
 On Wednesday, 24 February 2021 at 19:42:05 UTC, Maxim wrote:
 On Wednesday, 24 February 2021 at 19:35:46 UTC, Siemargl wrote:
 On Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl 
 wrote:
 [...]
Yes, i see th error. If in your dub.json change > "targetType": "executable", [...]
Tried and everything seems to be okay with underscores but the error message about the targetType appears even when I start my new pure project without any dependencies.
Just downloaded latest dmd 2.095.1, it comes with dub 1.24.1 Works fine on void dub init project, but underscore problem whith dsfml still here
Wait, I have just noticed that you said about dub which came with dmd. So, was dub on your computer right after compiler installation or you did you do this manually?
Feb 25 2021
parent reply Siemargl <inqnone gmail.com> writes:
On Thursday, 25 February 2021 at 12:49:05 UTC, Maxim wrote:

 Wait, I have just noticed that you said about dub which came 
 with dmd. So, was dub on your computer right after compiler 
 installation or you did you do this manually?
Many years DMD come together with dub. Look at dmd2\windows\bin\ folder
Feb 25 2021
parent Maxim <mogulevmaxim gmail.com> writes:
On Thursday, 25 February 2021 at 13:07:08 UTC, Siemargl wrote:
 On Thursday, 25 February 2021 at 12:49:05 UTC, Maxim wrote:

 Wait, I have just noticed that you said about dub which came 
 with dmd. So, was dub on your computer right after compiler 
 installation or you did you do this manually?
Many years DMD come together with dub. Look at dmd2\windows\bin\ folder
I thought, if I run native dub (without installation from github), all will be fine, but it isn't.
Feb 25 2021
prev sibling next sibling parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Wednesday, 24 February 2021 at 16:13:48 UTC, Maxim wrote:
 Hello, I have problems with working in dub environment. If I 
 try to init my project with 'dub init', all needed files will 
 be created successfully. However, when I run 'dub run', the 
 manager gives me an error:

 [...]
Wierd, have never encountered that. I'm also using Win 10 x64.
Feb 24 2021
prev sibling parent reply Maxim <mogulevmaxim gmail.com> writes:
On Wednesday, 24 February 2021 at 16:13:48 UTC, Maxim wrote:
 Hello, I have problems with working in dub environment. If I 
 try to init my project with 'dub init', all needed files will 
 be created successfully. However, when I run 'dub run', the 
 manager gives me an error:

 'Configuration 'application' of package application contains no 
 source files. Please add {"targetType": "none"} to its package 
 description to avoid building it.
 Package with target type "none" must have dependencies to 
 build.'

 If I set targetType in dub.json to "none", the only message:
  'Package with target type "none" must have dependencies to 
 build.'

 will remain. When I set targetName to "app" or any other name, 
 the problem will appear again with the same message above. I 
 flicked through many forums and videos how to correctly install 
 dub, and nothing helped.

 I am using dub 1.23.0 built on Sep 25 2020 on Windows 10 x64. 
 Will be very thankful for your help!
I think, I need to rephrase the question for the present situtation: how can I force DUB to change targetName? It doesn't read my changes in dub.json, and I don't know why. In my opinion, that happens because of DUB can't accept my changes to the file. But how to make the manager admit it? I apologize to everyone who understood me wrong.
Feb 25 2021
next sibling parent reply Maxim <mogulevmaxim gmail.com> writes:
On Thursday, 25 February 2021 at 17:34:29 UTC, Maxim wrote:
 On Wednesday, 24 February 2021 at 16:13:48 UTC, Maxim wrote:
 [...]
I think, I need to rephrase the question for the present situtation: how can I force DUB to change targetName? It doesn't read my changes in dub.json, and I don't know why. In my opinion, that happens because of DUB can't accept my changes to the file. But how to make the manager admit it? I apologize to everyone who understood me wrong.
And my problem has been substituted by another! Now DUB says to me to set targetName with this problem: 'No target name set.'
Feb 25 2021
parent reply Siemargl <inqnone gmail.com> writes:
On Thursday, 25 February 2021 at 17:38:11 UTC, Maxim wrote:
 On Thursday, 25 February 2021 at 17:34:29 UTC, Maxim wrote:
 On Wednesday, 24 February 2021 at 16:13:48 UTC, Maxim wrote:
 [...]
I think, I need to rephrase the question for the present situtation: how can I force DUB to change targetName? It doesn't read my changes in dub.json, and I don't know why. In my opinion, that happens because of DUB can't accept my changes to the file. But how to make the manager admit it? I apologize to everyone who understood me wrong.
And my problem has been substituted by another! Now DUB says to me to set targetName with this problem: 'No target name set.'
Just study dub.pm site (it's not obvious to find it)
Feb 26 2021
parent reply Maxim <mogulevmaxim gmail.com> writes:
On Friday, 26 February 2021 at 09:15:02 UTC, Siemargl wrote:
 On Thursday, 25 February 2021 at 17:38:11 UTC, Maxim wrote:
 On Thursday, 25 February 2021 at 17:34:29 UTC, Maxim wrote:
 On Wednesday, 24 February 2021 at 16:13:48 UTC, Maxim wrote:
 [...]
I think, I need to rephrase the question for the present situtation: how can I force DUB to change targetName? It doesn't read my changes in dub.json, and I don't know why. In my opinion, that happens because of DUB can't accept my changes to the file. But how to make the manager admit it? I apologize to everyone who understood me wrong.
And my problem has been substituted by another! Now DUB says to me to set targetName with this problem: 'No target name set.'
Just study dub.pm site (it's not obvious to find it)
It's a good idea! Thanks!
Feb 26 2021
parent reply ryuukk_ <ryuukk_ gmail.com> writes:
     "targetType": "executable",

and it should just run using "dub run"
Feb 26 2021
parent reply Maxim <mogulevmaxim gmail.com> writes:
On Friday, 26 February 2021 at 17:57:12 UTC, ryuukk_ wrote:
     "targetType": "executable",

 and it should just run using "dub run"
Unfortunately, the problem remains :/
Feb 26 2021
parent reply evilrat <evilrat666 gmail.com> writes:
On Friday, 26 February 2021 at 18:20:38 UTC, Maxim wrote:
 On Friday, 26 February 2021 at 17:57:12 UTC, ryuukk_ wrote:
     "targetType": "executable",

 and it should just run using "dub run"
Unfortunately, the problem remains :/
Looks like something specific to your machine. The last thing I could think of is to run dub with -v flag (verbose mode), look for all steps performed and check the output for anything that potentially could cause a failure. Could be related to paths with spaces, path with non-ascii symbols, antivirus software, FS permissions, missing C++ SDK's and runtime libs, compiler toolchain installation, basically anything...
Feb 26 2021
next sibling parent reply "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Fri, Feb 26, 2021 at 06:53:32PM +0000, evilrat via Digitalmars-d-learn wrote:
 On Friday, 26 February 2021 at 18:20:38 UTC, Maxim wrote:
 On Friday, 26 February 2021 at 17:57:12 UTC, ryuukk_ wrote:
     "targetType": "executable",
 
 and it should just run using "dub run"
Unfortunately, the problem remains :/
Looks like something specific to your machine. The last thing I could think of is to run dub with -v flag (verbose mode), look for all steps performed and check the output for anything that potentially could cause a failure.
[...] And possibly paste the output of -v here, somebody may be able to diagnose what went wrong then. --T
Feb 26 2021
next sibling parent Maxim <mogulevmaxim gmail.com> writes:
On Friday, 26 February 2021 at 19:00:57 UTC, H. S. Teoh wrote:
 On Fri, Feb 26, 2021 at 06:53:32PM +0000, evilrat via 
 Digitalmars-d-learn wrote:
 On Friday, 26 February 2021 at 18:20:38 UTC, Maxim wrote:
 On Friday, 26 February 2021 at 17:57:12 UTC, ryuukk_ wrote:
     "targetType": "executable",
 
 and it should just run using "dub run"
Unfortunately, the problem remains :/
Looks like something specific to your machine. The last thing I could think of is to run dub with -v flag (verbose mode), look for all steps performed and check the output for anything that potentially could cause a failure.
[...] And possibly paste the output of -v here, somebody may be able to diagnose what went wrong then. --T
Sure, I will paste it as soon as I'll have free time.
Feb 26 2021
prev sibling parent Maxim <mogulevmaxim gmail.com> writes:
On Friday, 26 February 2021 at 19:00:57 UTC, H. S. Teoh wrote:
 On Fri, Feb 26, 2021 at 06:53:32PM +0000, evilrat via 
 Digitalmars-d-learn wrote:
 On Friday, 26 February 2021 at 18:20:38 UTC, Maxim wrote:
 On Friday, 26 February 2021 at 17:57:12 UTC, ryuukk_ wrote:
     "targetType": "executable",
 
 and it should just run using "dub run"
Unfortunately, the problem remains :/
Looks like something specific to your machine. The last thing I could think of is to run dub with -v flag (verbose mode), look for all steps performed and check the output for anything that potentially could cause a failure.
[...] And possibly paste the output of -v here, somebody may be able to diagnose what went wrong then. --T
This is an output: D:\DEVELOPMENT\[ D ]\sandbox>dub run -v Using dub registry url 'https://code.dlang.org/' Refreshing local packages (refresh existing: true)... Looking for local package map at C:\ProgramData\dub\packages\local-packages.json Looking for local package map at C:\Users\MAX_PC\AppData\Local\dub\packages\local-packages.json Try to load local package map at C:\Users\MAX_PC\AppData\Local\dub\packages\local-packages.json Looking for local package map at D:\DEVELOPMENT\[ D ]\sandbox\.dub\packages\local-packages.json Note: Failed to determine version of package sandbox at .. Assuming ~master. Refreshing local packages (refresh existing: false)... Looking for local package map at C:\ProgramData\dub\packages\local-packages.json Looking for local package map at C:\Users\MAX_PC\AppData\Local\dub\packages\local-packages.json Try to load local package map at C:\Users\MAX_PC\AppData\Local\dub\packages\local-packages.json Looking for local package map at D:\DEVELOPMENT\[ D ]\sandbox\.dub\packages\local-packages.json Refreshing local packages (refresh existing: false)... Looking for local package map at C:\ProgramData\dub\packages\local-packages.json Looking for local package map at C:\Users\MAX_PC\AppData\Local\dub\packages\local-packages.json Try to load local package map at C:\Users\MAX_PC\AppData\Local\dub\packages\local-packages.json Looking for local package map at D:\DEVELOPMENT\[ D ]\sandbox\.dub\packages\local-packages.json Generating using build Configuration 'application' of package sandbox contains no source files. Please add {"targetType": "none"} to its package description to avoid building it. Package with target type "none" must have dependencies to build.
Feb 26 2021
prev sibling next sibling parent Maxim <mogulevmaxim gmail.com> writes:
On Friday, 26 February 2021 at 18:53:32 UTC, evilrat wrote:
 On Friday, 26 February 2021 at 18:20:38 UTC, Maxim wrote:
 On Friday, 26 February 2021 at 17:57:12 UTC, ryuukk_ wrote:
     "targetType": "executable",

 and it should just run using "dub run"
Unfortunately, the problem remains :/
Looks like something specific to your machine. The last thing I could think of is to run dub with -v flag (verbose mode), look for all steps performed and check the output for anything that potentially could cause a failure. Could be related to paths with spaces, path with non-ascii symbols, antivirus software, FS permissions, missing C++ SDK's and runtime libs, compiler toolchain installation, basically anything...
This really might be helpful... I'll try it, thanks!
Feb 26 2021
prev sibling parent Maxim <mogulevmaxim gmail.com> writes:
On Friday, 26 February 2021 at 18:53:32 UTC, evilrat wrote:
 On Friday, 26 February 2021 at 18:20:38 UTC, Maxim wrote:
 On Friday, 26 February 2021 at 17:57:12 UTC, ryuukk_ wrote:
     "targetType": "executable",

 and it should just run using "dub run"
Unfortunately, the problem remains :/
Looks like something specific to your machine. The last thing I could think of is to run dub with -v flag (verbose mode), look for all steps performed and check the output for anything that potentially could cause a failure. Could be related to paths with spaces, path with non-ascii symbols, antivirus software, FS permissions, missing C++ SDK's and runtime libs, compiler toolchain installation, basically anything...
It works! Thank you so much! The problem was in spaces in the path.
Feb 26 2021
prev sibling parent reply user1234 <user1234 12.de> writes:
On Thursday, 25 February 2021 at 17:34:29 UTC, Maxim wrote:
 In my opinion, that happens because of DUB can't accept my 
 changes to the file. But how to make the manager admit it? I 
 apologize to everyone who understood me wrong.
If you use an ide to edit the DUB receipt maybe it's possible that you forgot to save the project before retriggering a rebuild. If so then the file used by DUB is still in its previous state.
Feb 25 2021
parent Maxim <mogulevmaxim gmail.com> writes:
On Thursday, 25 February 2021 at 17:47:57 UTC, user1234 wrote:
 On Thursday, 25 February 2021 at 17:34:29 UTC, Maxim wrote:
 In my opinion, that happens because of DUB can't accept my 
 changes to the file. But how to make the manager admit it? I 
 apologize to everyone who understood me wrong.
If you use an ide to edit the DUB receipt maybe it's possible that you forgot to save the project before retriggering a rebuild. If so then the file used by DUB is still in its previous state.
I'm using a text editor.
Feb 25 2021