RejectedSoftware Forums

Sign up

targetType:none does not seem to work anymore

From:

https://github.com/d-gamedev-team/opengl-tutorials/blob/master/ports/opengl-tutorial.org/dub.json

Building this I get:
Error executing command run: Main package must have a binary target type, not none. Cannot build.

This is just a package that contains subpackages, where each subpackage is an executable target type. If the user tries to build the main package, it should simply build all the subpackages. The above used to work about 8 months ago, and the first subpackage example on the docs site also has targetType set to none: http://code.dlang.org/package-format

What should I use instead?

Side-note: What's up with this text box growing vertically disproportionately to the amount of text I'm typing? It's moving the reply button 10 scrolls down. Funny feature..

Re: targetType:none does not seem to work anymore

Am 23.01.2015 um 22:05 schrieb Andrej Mitrovic:

From:

https://github.com/d-gamedev-team/opengl-tutorials/blob/master/ports/opengl-tutorial.org/dub.json

Building this I get:
Error executing command run: Main package must have a binary target type, not none. Cannot build.

This is just a package that contains subpackages, where each subpackage is an executable target type. If the user tries to build the main package, it should simply build all the subpackages. The above used to work about 8 months ago, and the first subpackage example on the docs site also has targetType set to none: http://code.dlang.org/package-format

What should I use instead?

You should be able to use "dub build :nameofsubpackage" to build a
certain sub package. If building the main target has worked before, I'd
be very surprised, as that has been an open ticket for a long time now:

https://github.com/D-Programming-Language/dub/issues/97

Probably it's time to give this more priority...

Side-note: What's up with this text box growing vertically disproportionately to the amount of text I'm typing? It's moving the reply button 10 scrolls down. Funny feature..

I noticed that, too, but not in a browser I usually use. I'll have to
look into that some day. If anyone knows a good trick to automatically
scale a textarea and a div to the same height, that would be great. I
had to resort to JavaScript for that and the result is obviously far
from ideal.

Re: targetType:none does not seem to work anymore

On Sat, 24 Jan 2015 13:52:02 +0100, Sönke Ludwig wrote:

You should be able to use "dub build :nameofsubpackage" to build a
certain sub package. If building the main target has worked before, I'd
be very surprised, as that has been an open ticket for a long time now:

https://github.com/D-Programming-Language/dub/issues/97

Probably it's time to give this more priority...

Is there an equivalent of an "all" target then like in a makefile?