digitalmars.D.learn - DUB is not working correctly
- Maxim (17/17) Feb 24 2021 Hello, I have problems with working in dub environment. If I try
- evilrat (7/25) Feb 24 2021 Doesn't seem like an installation problem.
- Maxim (25/54) Feb 24 2021 Sure, here are dub.json contents:
- evilrat (8/26) Feb 24 2021 ok, you don't need targetType in this case, setting it to none
- Maxim (5/34) Feb 24 2021 Unfortunately, I tried bindbc-sfml package but the problem is
- evilrat (3/7) Feb 24 2021 does it works for an empty project created with 'dub init' from
- Maxim (2/10) Feb 24 2021 No, it doesn't work on an empty project with 'dub init'.
- H. S. Teoh (6/18) Feb 24 2021 Sounds like something is wrong with your toolchain installation. An
- Maxim (3/21) Feb 24 2021 I recently tried that. Even compiler was reinstalled. It didn't
- Siemargl (12/15) Feb 24 2021 Just try remove dsfml and all depencies.
- Maxim (6/22) Feb 24 2021 Unfortunately, the program is still saying me:
- Siemargl (13/15) Feb 24 2021 Yes, i see th error.
- Maxim (4/9) Feb 24 2021 Tried and everything seems to be okay with underscores but the
- Siemargl (4/15) Feb 24 2021 Just downloaded latest dmd 2.095.1, it comes with dub 1.24.1
- Maxim (3/21) Feb 24 2021 I think that dsfml itself causing this problem with underscores.
- Siemargl (7/25) Feb 24 2021 I think, its a problem with dsfml project.
- Siemargl (4/12) Feb 24 2021 So its not a dub problem, just needed dsfmlc-*.libs, which is not
- Maxim (5/21) Feb 24 2021 I agree with you. Well, dsfml is a very old library. It's a pity
- Maxim (7/35) Feb 24 2021 Thanks for the tip! Anyway, if I understood right, I would add
- Maxim (4/22) Feb 25 2021 Wait, I have just noticed that you said about dub which came with
- Imperatorn (2/7) Feb 24 2021 Wierd, have never encountered that. I'm also using Win 10 x64.
- Maxim (7/25) Feb 25 2021 I think, I need to rephrase the question for the present
- Maxim (4/12) Feb 25 2021 And my problem has been substituted by another! Now DUB says to
- Siemargl (2/15) Feb 26 2021 Just study dub.pm site (it's not obvious to find it)
- Maxim (2/18) Feb 26 2021 It's a good idea! Thanks!
- ryuukk_ (2/2) Feb 26 2021 "targetType": "executable",
- Maxim (2/4) Feb 26 2021 Unfortunately, the problem remains :/
- evilrat (9/14) Feb 26 2021 Looks like something specific to your machine.
- H. S. Teoh (5/18) Feb 26 2021 [...]
- Maxim (2/21) Feb 26 2021 Sure, I will paste it as soon as I'll have free time.
- Maxim (38/57) Feb 26 2021 This is an output:
- Maxim (2/17) Feb 26 2021 This really might be helpful... I'll try it, thanks!
- Maxim (3/18) Feb 26 2021 It works! Thank you so much! The problem was in spaces in the
- user1234 (5/8) Feb 25 2021 If you use an ide to edit the DUB receipt maybe it's possible
- Maxim (2/10) Feb 25 2021 I'm using a text editor.
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
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
On Wednesday, 24 February 2021 at 16:27:49 UTC, evilrat wrote:On Wednesday, 24 February 2021 at 16:13:48 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. I have folder source next to dub.json. I'd better show you my project structure: test | source | app.d | dub.jsonHello, 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
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
On Wednesday, 24 February 2021 at 17:27:19 UTC, evilrat wrote:On Wednesday, 24 February 2021 at 16:46:20 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!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
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
On Wednesday, 24 February 2021 at 18:21:40 UTC, evilrat wrote:On Wednesday, 24 February 2021 at 17:45:56 UTC, Maxim wrote:No, it doesn't work on an empty project with 'dub init'.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
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: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. -- YHLOn Wednesday, 24 February 2021 at 17:45:56 UTC, Maxim wrote:No, it doesn't work on an empty project with 'dub init'.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
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:I recently tried that. Even compiler was reinstalled. It didn't help.On Wednesday, 24 February 2021 at 18:21:40 UTC, evilrat wrote:Sounds like something is wrong with your toolchain installation. An empty project ought to work. Maybe try a fresh reinstall? TOn Wednesday, 24 February 2021 at 17:45:56 UTC, Maxim wrote:No, it doesn't work on an empty project with 'dub init'.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
On Wednesday, 24 February 2021 at 19:04:02 UTC, Maxim wrote:On Wednesday, 24 February 2021 at 18:52:12 UTC, H. S. TeohI 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
On Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl wrote:On Wednesday, 24 February 2021 at 19:04:02 UTC, Maxim wrote: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.'On Wednesday, 24 February 2021 at 18:52:12 UTC, H. S. TeohI 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
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 rundub run --verboseThen 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
On Wednesday, 24 February 2021 at 19:35:46 UTC, Siemargl wrote:On Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl wrote: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.[...]Yes, i see th error. If in your dub.json change > "targetType": "executable", [...]
Feb 24 2021
On Wednesday, 24 February 2021 at 19:42:05 UTC, Maxim wrote:On Wednesday, 24 February 2021 at 19:35:46 UTC, Siemargl wrote: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 hereOn Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl wrote: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.[...]Yes, i see th error. If in your dub.json change > "targetType": "executable", [...]
Feb 24 2021
On Wednesday, 24 February 2021 at 19:48:10 UTC, Siemargl wrote:On Wednesday, 24 February 2021 at 19:42:05 UTC, Maxim wrote:I think that dsfml itself causing this problem with underscores. As evilrat said, dsfml haven't been updated since 2016.On Wednesday, 24 February 2021 at 19:35:46 UTC, Siemargl wrote: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 hereOn Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl wrote: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.[...]Yes, i see th error. If in your dub.json change > "targetType": "executable", [...]
Feb 24 2021
On Wednesday, 24 February 2021 at 19:48:10 UTC, Siemargl wrote:On Wednesday, 24 February 2021 at 19:42:05 UTC, Maxim wrote: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!)On Wednesday, 24 February 2021 at 19:35:46 UTC, Siemargl wrote: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 hereOn Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl wrote: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.[...]Yes, i see th error. If in your dub.json change > "targetType": "executable", [...]
Feb 24 2021
On Wednesday, 24 February 2021 at 20:10:29 UTC, Siemargl wrote: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.Works fine on void dub init project, but underscore problem whith dsfml still hereI 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
On Wednesday, 24 February 2021 at 20:28:45 UTC, Siemargl wrote:On Wednesday, 24 February 2021 at 20:10:29 UTC, Siemargl wrote: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!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.Works fine on void dub init project, but underscore problem whith dsfml still hereI 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
On Wednesday, 24 February 2021 at 20:10:29 UTC, Siemargl wrote:On Wednesday, 24 February 2021 at 19:48:10 UTC, Siemargl wrote: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.On Wednesday, 24 February 2021 at 19:42:05 UTC, Maxim wrote: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!)On Wednesday, 24 February 2021 at 19:35:46 UTC, Siemargl wrote: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 hereOn Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl wrote: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.[...]Yes, i see th error. If in your dub.json change > "targetType": "executable", [...]
Feb 24 2021
On Wednesday, 24 February 2021 at 19:48:10 UTC, Siemargl wrote:On Wednesday, 24 February 2021 at 19:42: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?On Wednesday, 24 February 2021 at 19:35:46 UTC, Siemargl wrote: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 hereOn Wednesday, 24 February 2021 at 19:18:32 UTC, Siemargl wrote: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.[...]Yes, i see th error. If in your dub.json change > "targetType": "executable", [...]
Feb 25 2021
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
On Thursday, 25 February 2021 at 13:07:08 UTC, Siemargl wrote:On Thursday, 25 February 2021 at 12:49:05 UTC, Maxim wrote:I thought, if I run native dub (without installation from github), all will be fine, but it isn't.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
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
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
On Thursday, 25 February 2021 at 17:34:29 UTC, Maxim wrote:On Wednesday, 24 February 2021 at 16:13:48 UTC, Maxim wrote:And my problem has been substituted by another! Now DUB says to me to set targetName with this problem: 'No target name set.'[...]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
On Thursday, 25 February 2021 at 17:38:11 UTC, Maxim wrote:On Thursday, 25 February 2021 at 17:34:29 UTC, Maxim wrote:Just study dub.pm site (it's not obvious to find it)On Wednesday, 24 February 2021 at 16:13:48 UTC, Maxim wrote:And my problem has been substituted by another! Now DUB says to me to set targetName with this problem: 'No target name set.'[...]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 26 2021
On Friday, 26 February 2021 at 09:15:02 UTC, Siemargl wrote:On Thursday, 25 February 2021 at 17:38:11 UTC, Maxim wrote:It's a good idea! Thanks!On Thursday, 25 February 2021 at 17:34:29 UTC, Maxim wrote:Just study dub.pm site (it's not obvious to find it)On Wednesday, 24 February 2021 at 16:13:48 UTC, Maxim wrote:And my problem has been substituted by another! Now DUB says to me to set targetName with this problem: 'No target name set.'[...]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 26 2021
"targetType": "executable", and it should just run using "dub run"
Feb 26 2021
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
On Friday, 26 February 2021 at 18:20:38 UTC, Maxim wrote:On Friday, 26 February 2021 at 17:57:12 UTC, ryuukk_ wrote: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..."targetType": "executable", and it should just run using "dub run"Unfortunately, the problem remains :/
Feb 26 2021
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:[...] And possibly paste the output of -v here, somebody may be able to diagnose what went wrong then. --TOn Friday, 26 February 2021 at 17:57:12 UTC, ryuukk_ wrote: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."targetType": "executable", and it should just run using "dub run"Unfortunately, the problem remains :/
Feb 26 2021
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:Sure, I will paste it as soon as I'll have free time.On Friday, 26 February 2021 at 18:20:38 UTC, Maxim wrote:[...] And possibly paste the output of -v here, somebody may be able to diagnose what went wrong then. --TOn Friday, 26 February 2021 at 17:57:12 UTC, ryuukk_ wrote: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."targetType": "executable", and it should just run using "dub run"Unfortunately, the problem remains :/
Feb 26 2021
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: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.On Friday, 26 February 2021 at 18:20:38 UTC, Maxim wrote:[...] And possibly paste the output of -v here, somebody may be able to diagnose what went wrong then. --TOn Friday, 26 February 2021 at 17:57:12 UTC, ryuukk_ wrote: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."targetType": "executable", and it should just run using "dub run"Unfortunately, the problem remains :/
Feb 26 2021
On Friday, 26 February 2021 at 18:53:32 UTC, evilrat wrote:On Friday, 26 February 2021 at 18:20:38 UTC, Maxim wrote:This really might be helpful... I'll try it, thanks!On Friday, 26 February 2021 at 17:57:12 UTC, ryuukk_ wrote: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..."targetType": "executable", and it should just run using "dub run"Unfortunately, the problem remains :/
Feb 26 2021
On Friday, 26 February 2021 at 18:53:32 UTC, evilrat wrote:On Friday, 26 February 2021 at 18:20:38 UTC, Maxim wrote:It works! Thank you so much! The problem was in spaces in the path.On Friday, 26 February 2021 at 17:57:12 UTC, ryuukk_ wrote: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..."targetType": "executable", and it should just run using "dub run"Unfortunately, the problem remains :/
Feb 26 2021
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
On Thursday, 25 February 2021 at 17:47:57 UTC, user1234 wrote:On Thursday, 25 February 2021 at 17:34:29 UTC, Maxim wrote:I'm using a text editor.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