Re: DUB is not working correctly
On Friday, 26 February 2021 at 19:00:57 UTC, H. S. Teoh wrote: On Fri, Feb 26, 2021 at 06:53:32PM +, 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.
Re: DUB is not working correctly
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.
Re: DUB is not working correctly
On Friday, 26 February 2021 at 19:00:57 UTC, H. S. Teoh wrote: On Fri, Feb 26, 2021 at 06:53:32PM +, 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.
Re: DUB is not working correctly
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!
Re: DUB is not working correctly
On Fri, Feb 26, 2021 at 06:53:32PM +, 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
Re: DUB is not working correctly
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...
Re: DUB is not working correctly
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 :/
Re: DUB is not working correctly
"targetType": "executable", and it should just run using "dub run"
Re: DUB is not working correctly
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!
Re: DUB is not working correctly
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)
Re: DUB is not working correctly
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.
Re: DUB is not working correctly
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.
Re: DUB is not working correctly
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.'
Re: DUB is not working correctly
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.
Re: DUB is not working correctly
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.
Re: DUB is not working correctly
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
Re: DUB is not working correctly
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?
Re: DUB is not working correctly
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!
Re: DUB is not working correctly
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.
Re: DUB is not working correctly
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.
Re: DUB is not working correctly
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!)
Re: DUB is not working correctly
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.
Re: DUB is not working correctly
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
Re: DUB is not working correctly
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.
Re: DUB is not working correctly
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.'
Re: DUB is not working correctly
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" }
Re: DUB is not working correctly
On Wednesday, 24 February 2021 at 18:52:12 UTC, H. S. Teoh wrote: On Wed, Feb 24, 2021 at 06:32:00PM +, 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.
Re: DUB is not working correctly
On Wed, Feb 24, 2021 at 06:32:00PM +, 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
Re: DUB is not working correctly
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'.
Re: DUB is not working correctly
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?
Re: DUB is not working correctly
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.
Re: DUB is not working correctly
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!
Re: DUB is not working correctly
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
Re: DUB is not working correctly
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
Re: DUB is not working correctly
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.
DUB is not working correctly
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!