February 25, 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:
>> 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?
February 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


February 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:
>
>> 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.
February 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:
>
> '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.
February 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:
>> [...]
>
> 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.'
February 25, 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.


February 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:
>> 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.
February 26, 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:
>> 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)
February 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:
>> 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!
February 26, 2021
    "targetType": "executable",

and it should just run using "dub run"