Re: Beta release DUB 1.0.0-beta.1

2016-06-17 Thread Sönke Ludwig via Digitalmars-d-announce
Am 17.06.2016 um 13:06 schrieb mark_mcs: I'm not sure if this is a defect or a conscious decision so I thought I'd ask the question first. Is there a reason why Dub on Windows uses the APPDATA environment variable, rather than LOCALAPPDATA? The APPDATA variable points to the roaming profile

Re: Beta release DUB 1.0.0-beta.1

2016-06-17 Thread mark_mcs via Digitalmars-d-announce
On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote: DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for single-file packages, which can be used to write shebang-style scripts on Posix systems: #!/usr/bin/env dub /++ dub.sdl: name "colortest"

Re: Beta release DUB 1.0.0-beta.1

2016-06-15 Thread Nick Sabalausky via Digitalmars-d-announce
On 06/13/2016 07:31 AM, Kagamin wrote: On Friday, 10 June 2016 at 17:45:54 UTC, Nick Sabalausky wrote: On 06/08/2016 11:04 AM, Kagamin wrote: BTW do people find nested comments particularly useful? God yes. It's the *only* block comment I ever use. Non-nesting comment blocks are a worthless

Re: Beta release DUB 1.0.0-beta.1

2016-06-13 Thread Sönke Ludwig via Digitalmars-d-announce
Am 13.06.2016 um 11:21 schrieb Andre Pany: On Thursday, 9 June 2016 at 12:15:24 UTC, Sönke Ludwig wrote: You need to use the --single switch: dub build --single=app.d --build=release For the commandline that you have used, the arguments "build --build=release" will be passed to the compiled

Re: Beta release DUB 1.0.0-beta.1

2016-06-13 Thread Kagamin via Digitalmars-d-announce
On Friday, 10 June 2016 at 17:45:54 UTC, Nick Sabalausky wrote: On 06/08/2016 11:04 AM, Kagamin wrote: BTW do people find nested comments particularly useful? God yes. It's the *only* block comment I ever use. Non-nesting comment blocks are a worthless PITA with no real benefit: You can't

Re: Beta release DUB 1.0.0-beta.1

2016-06-13 Thread Saurabh Das via Digitalmars-d-announce
On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote: DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for single-file packages, which can be used to write shebang-style scripts on Posix systems: [...] That is really useful! Thanks again for all the work you

Re: Beta release DUB 1.0.0-beta.1

2016-06-13 Thread Andre Pany via Digitalmars-d-announce
On Thursday, 9 June 2016 at 12:15:24 UTC, Sönke Ludwig wrote: You need to use the --single switch: dub build --single=app.d --build=release For the commandline that you have used, the arguments "build --build=release" will be passed to the compiled app.d executable instead. I'll deploy

Re: Beta release DUB 1.0.0-beta.1

2016-06-11 Thread Manu via Digitalmars-d-announce
On 7 June 2016 at 19:54, Sönke Ludwig wrote: > DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for > single-file packages, which can be used to write shebang-style scripts on > Posix systems: > > #!/usr/bin/env dub > /++

Re: Beta release DUB 1.0.0-beta.1

2016-06-10 Thread Nick Sabalausky via Digitalmars-d-announce
On 06/08/2016 11:04 AM, Kagamin wrote: BTW do people find nested comments particularly useful? God yes. It's the *only* block comment I ever use. Non-nesting comment blocks are a worthless PITA with no real benefit: You can't comment out a block if the block already contains a block comment.

Re: Beta release DUB 1.0.0-beta.1

2016-06-10 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/10/16 2:30 AM, Rory McGuire via Digitalmars-d-announce wrote: Could we not just make it a requirement that if the file starts with #!... on the first line then the second line _must_ be a comment with the dub file definition? I think this is fine as a requirement. -Steve

Re: Beta release DUB 1.0.0-beta.1

2016-06-10 Thread Rory McGuire via Digitalmars-d-announce
hmm, actually thats not quite the issue, I made a mock set of projects and it works with both versions. With 0.9.25 I get: Sub package onyx-config: doesn't exist. Whereas with 0.9.24 my package compiles. I'll see if I can figure out why, sorry for the noise. On Fri, Jun 10, 2016 at 11:53 AM,

Re: Beta release DUB 1.0.0-beta.1

2016-06-10 Thread Rory McGuire via Digitalmars-d-announce
BTW: One other question, do you know of a bug where relative paths in dub packages have stopped working in recent versions? It seems like it always uses the path of the package being built rather than the dependencies own directory. I currently have to use 0.9.24. On Fri, Jun 10, 2016 at 11:00

Re: Beta release DUB 1.0.0-beta.1

2016-06-10 Thread Sönke Ludwig via Digitalmars-d-announce
Am 10.06.2016 um 10:02 schrieb Rory McGuire via Digitalmars-d-announce: I made a version that ignores comment like characters in strings. I've also made a version that requires the recipe to be on the second line. Both are in my fork of dub. I can fix my pull request to which ever one you guys

Re: Beta release DUB 1.0.0-beta.1

2016-06-10 Thread Rory McGuire via Digitalmars-d-announce
On Fri, Jun 10, 2016 at 8:30 AM, Rory McGuire wrote: > On Thu, Jun 9, 2016 at 10:48 PM, Steven Schveighoffer via > Digitalmars-d-announce wrote: >> On 6/9/16 4:37 PM, Sönke Ludwig wrote: >>> >>> Am 09.06.2016 um 15:06 schrieb Steven

Re: Beta release DUB 1.0.0-beta.1

2016-06-10 Thread Rory McGuire via Digitalmars-d-announce
On Thu, Jun 9, 2016 at 10:48 PM, Steven Schveighoffer via Digitalmars-d-announce wrote: > On 6/9/16 4:37 PM, Sönke Ludwig wrote: >> >> Am 09.06.2016 um 15:06 schrieb Steven Schveighoffer: >>> >>> On 6/8/16 2:45 PM, Sönke Ludwig wrote: >>> (...)

Re: Beta release DUB 1.0.0-beta.1

2016-06-09 Thread Dechcaudron via Digitalmars-d-announce
On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote: DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for single-file packages, which can be used to write shebang-style scripts on Posix systems: [...] I've barely started using D, but dub works like a charm and

Re: Beta release DUB 1.0.0-beta.1

2016-06-09 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/9/16 4:37 PM, Sönke Ludwig wrote: Am 09.06.2016 um 15:06 schrieb Steven Schveighoffer: On 6/8/16 2:45 PM, Sönke Ludwig wrote: (...) Apart from what I've already mentioned in my first reply to Jacob, I think there is nothing else that couldn't be solved in either case. "It's still

Re: Beta release DUB 1.0.0-beta.1

2016-06-09 Thread Sönke Ludwig via Digitalmars-d-announce
Am 09.06.2016 um 15:06 schrieb Steven Schveighoffer: On 6/8/16 2:45 PM, Sönke Ludwig wrote: > (...) Apart from what I've already mentioned in my first reply to Jacob, I think there is nothing else that couldn't be solved in either case. "It's still possible to put something else in front of

Re: Beta release DUB 1.0.0-beta.1

2016-06-09 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/8/16 2:45 PM, Sönke Ludwig wrote: Am 08.06.2016 um 16:58 schrieb Steven Schveighoffer: I agree with Jacob. A comment is a comment. Well, there are normal comments, doc comments and now DUB recipe comments. But at least if doc comments serve as an analogy, those are possible with all

Re: Beta release DUB 1.0.0-beta.1

2016-06-09 Thread Andre Pany via Digitalmars-d-announce
On Thursday, 9 June 2016 at 12:15:24 UTC, Sönke Ludwig wrote: You need to use the --single switch: dub build --single=app.d --build=release For the commandline that you have used, the arguments "build --build=release" will be passed to the compiled app.d executable instead. I'll deploy

Re: Beta release DUB 1.0.0-beta.1

2016-06-09 Thread Sönke Ludwig via Digitalmars-d-announce
Am 09.06.2016 um 12:23 schrieb Andre Pany: On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote: DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for single-file packages, which can be used to write shebang-style scripts on Posix systems: Full change log:

Re: Beta release DUB 1.0.0-beta.1

2016-06-09 Thread Andre Pany via Digitalmars-d-announce
On Thursday, 9 June 2016 at 10:43:31 UTC, drug wrote: 09.06.2016 13:23, Andre Pany пишет: Untested, but try ``` dub build app.d --build=release ``` Unfortunately it is not working: dub answers: Failed to find a package named 'app.d'. Kind regards André

Re: Beta release DUB 1.0.0-beta.1

2016-06-09 Thread drug via Digitalmars-d-announce
09.06.2016 13:23, Andre Pany пишет: On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote: DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for single-file packages, which can be used to write shebang-style scripts on Posix systems: Full change log:

Re: Beta release DUB 1.0.0-beta.1

2016-06-09 Thread Andre Pany via Digitalmars-d-announce
On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote: DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for single-file packages, which can be used to write shebang-style scripts on Posix systems: Full change log:

Re: Beta release DUB 1.0.0-beta.1

2016-06-09 Thread Andre Pany via Digitalmars-d-announce
On Thursday, 9 June 2016 at 08:02:21 UTC, Mike Parker wrote: On Thursday, 9 June 2016 at 07:35:35 UTC, Andre Pany wrote: while calling dub within the directory containing app.d I dub app.d Without passing a file name, dub will look for a project configuration. Thanks for the info. In my

Re: Beta release DUB 1.0.0-beta.1

2016-06-09 Thread Mike Parker via Digitalmars-d-announce
On Thursday, 9 June 2016 at 07:35:35 UTC, Andre Pany wrote: while calling dub within the directory containing app.d I dub app.d Without passing a file name, dub will look for a project configuration.

Re: Beta release DUB 1.0.0-beta.1

2016-06-08 Thread Nordlöw via Digitalmars-d-announce
On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote: DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is... Great work! I've spread the news to all my hackish friends.

Re: Beta release DUB 1.0.0-beta.1

2016-06-08 Thread Rory McGuire via Digitalmars-d-announce
I made a little parser, it doesn't handle nested + comments (just needs a depth check). https://github.com/dlang/dub/pull/871 On Wed, Jun 8, 2016 at 9:44 PM, Rory McGuire wrote: > regex version pull request: > https://github.com/dlang/dub/pull/869 > > On Wed, Jun 8, 2016 at

Re: Beta release DUB 1.0.0-beta.1

2016-06-08 Thread Sönke Ludwig via Digitalmars-d-announce
Am 08.06.2016 um 21:20 schrieb Rory McGuire via Digitalmars-d-announce: On Wed, Jun 8, 2016 at 8:45 PM, Sönke Ludwig wrote: ... 1.0.0-rc.1 is scheduled for Monday morning, so it should ready by then to avoid stretching the release schedule (it's

Re: Beta release DUB 1.0.0-beta.1

2016-06-08 Thread Rory McGuire via Digitalmars-d-announce
regex version pull request: https://github.com/dlang/dub/pull/869 On Wed, Jun 8, 2016 at 8:50 PM, Rory McGuire wrote: > On Wed, Jun 8, 2016 at 11:15 AM, Sönke Ludwig > wrote: >> Am 08.06.2016 um 08:59 schrieb Jacob Carlborg: >>> >>> On

Re: Beta release DUB 1.0.0-beta.1

2016-06-08 Thread Rory McGuire via Digitalmars-d-announce
On Wed, Jun 8, 2016 at 8:45 PM, Sönke Ludwig wrote: ... > 1.0.0-rc.1 is scheduled for Monday morning, so it should ready by then to > avoid stretching the release schedule (it's technically a breaking change!). I just tried this inside a directory that

Re: Beta release DUB 1.0.0-beta.1

2016-06-08 Thread Rory McGuire via Digitalmars-d-announce
On Wed, Jun 8, 2016 at 11:15 AM, Sönke Ludwig wrote: > Am 08.06.2016 um 08:59 schrieb Jacob Carlborg: >> >> On 2016-06-07 20:42, Sönke Ludwig wrote: >> >>> No, it has to be the "+" variant (the first /+ +/ comment is evaluated). >> >> >> That's unfortunate. >

Re: Beta release DUB 1.0.0-beta.1

2016-06-08 Thread Sönke Ludwig via Digitalmars-d-announce
Am 08.06.2016 um 16:58 schrieb Steven Schveighoffer: I agree with Jacob. A comment is a comment. Well, there are normal comments, doc comments and now DUB recipe comments. But at least if doc comments serve as an analogy, those are possible with all three comment styles, so that could be

Re: Beta release DUB 1.0.0-beta.1

2016-06-08 Thread Jacob Carlborg via Digitalmars-d-announce
On 2016-06-08 16:58, Steven Schveighoffer wrote: I agree with Jacob. A comment is a comment. There is no reason one needs to use specifically /+. In fact the only reason for the existence of /+ is to allow nesting of comments -- which doesn't apply here. And basically the only reason why /+

Re: Beta release DUB 1.0.0-beta.1

2016-06-08 Thread Kagamin via Digitalmars-d-announce
On Wednesday, 8 June 2016 at 09:15:09 UTC, Sönke Ludwig wrote: Two good properties about restricting to /+ +/ is that it's still possible to put something else in front of it, and that it stands out from the usual /* */ comments. It stands out because we don't have a recognizable convention

Re: Beta release DUB 1.0.0-beta.1

2016-06-08 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/8/16 8:21 AM, Jacob Carlborg wrote: On 2016-06-08 11:15, Sönke Ludwig wrote: I generally really do appreciate your critique, but without backing reasons it doesn't really have a constructive effect. Two good properties about restricting to /+ +/ is that it's still possible to put

Re: Beta release DUB 1.0.0-beta.1

2016-06-08 Thread Mike Parker via Digitalmars-d-announce
On Wednesday, 8 June 2016 at 13:27:31 UTC, burjui wrote: That reason alone is enough. Restricting DUB special comments to only /++/ will put users off, because now they know that there's a cool feature in DUB, but it only works with certain types of comments, that nobody wants to remember (why

Re: Beta release DUB 1.0.0-beta.1

2016-06-08 Thread Sönke Ludwig via Digitalmars-d-announce
Am 08.06.2016 um 15:27 schrieb burjui: On Wednesday, 8 June 2016 at 12:21:57 UTC, Jacob Carlborg wrote: It's just that since the language support other styles of comments one could think that all comments are supported and it will cause confusion if only one style is supported. That reason

Re: Beta release DUB 1.0.0-beta.1

2016-06-08 Thread burjui via Digitalmars-d-announce
On Wednesday, 8 June 2016 at 12:21:57 UTC, Jacob Carlborg wrote: It's just that since the language support other styles of comments one could think that all comments are supported and it will cause confusion if only one style is supported. That reason alone is enough. Restricting DUB special

Re: Beta release DUB 1.0.0-beta.1

2016-06-08 Thread Jacob Carlborg via Digitalmars-d-announce
On 2016-06-08 11:15, Sönke Ludwig wrote: I generally really do appreciate your critique, but without backing reasons it doesn't really have a constructive effect. Two good properties about restricting to /+ +/ is that it's still possible to put something else in front of it, and that it stands

Re: Beta release DUB 1.0.0-beta.1

2016-06-08 Thread Sönke Ludwig via Digitalmars-d-announce
Am 08.06.2016 um 08:59 schrieb Jacob Carlborg: On 2016-06-07 20:42, Sönke Ludwig wrote: No, it has to be the "+" variant (the first /+ +/ comment is evaluated). That's unfortunate. I generally really do appreciate your critique, but without backing reasons it doesn't really have a

Re: Beta release DUB 1.0.0-beta.1

2016-06-08 Thread Jacob Carlborg via Digitalmars-d-announce
On 2016-06-07 20:42, Sönke Ludwig wrote: No, it has to be the "+" variant (the first /+ +/ comment is evaluated). That's unfortunate. -- /Jacob Carlborg

Re: Beta release DUB 1.0.0-beta.1

2016-06-07 Thread Sönke Ludwig via Digitalmars-d-announce
Am 07.06.2016 um 15:45 schrieb Jacob Carlborg: On 2016-06-07 13:22, Sönke Ludwig wrote: Oh, I typed that by accident, should be /+ dub.sdl: ... +/ BTW, /+ dub.json: ... +/ is also possible, of course. Does it work with all kind of comments D supports? No, it has to be the "+" variant (the

Re: Beta release DUB 1.0.0-beta.1

2016-06-07 Thread Rory McGuire via Digitalmars-d-announce
On 07 Jun 2016 11:56, "Sönke Ludwig" wrote: > > DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for single-file packages, which can be used to write shebang-style scripts on Posix systems: > > #!/usr/bin/env dub > /++ dub.sdl:

Re: Beta release DUB 1.0.0-beta.1

2016-06-07 Thread Jacob Carlborg via Digitalmars-d-announce
On 2016-06-07 13:22, Sönke Ludwig wrote: Oh, I typed that by accident, should be /+ dub.sdl: ... +/ BTW, /+ dub.json: ... +/ is also possible, of course. Does it work with all kind of comments D supports? -- /Jacob Carlborg

Re: Beta release DUB 1.0.0-beta.1

2016-06-07 Thread earthfront via Digitalmars-d-announce
On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote: DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for single-file packages So nice. Thanks so much! This is great for solutions to project euler problems!

Re: Beta release DUB 1.0.0-beta.1

2016-06-07 Thread meppl via Digitalmars-d-announce
On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote: #!/usr/bin/env dub /++ dub.sdl: name "colortest" dependency "color" version="~>0.0.3" +/ this is exactly what i could make good use of for my scripting stuff. thank you for implementing

Re: Beta release DUB 1.0.0-beta.1

2016-06-07 Thread Sönke Ludwig via Digitalmars-d-announce
Am 07.06.2016 um 13:09 schrieb Marc Schütz: On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote: DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for single-file packages, which can be used to write shebang-style scripts on Posix systems: #!/usr/bin/env dub

Re: Beta release DUB 1.0.0-beta.1

2016-06-07 Thread Marc Schütz via Digitalmars-d-announce
On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote: DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for single-file packages, which can be used to write shebang-style scripts on Posix systems: #!/usr/bin/env dub /++ dub.sdl: name "colortest"

Re: Beta release DUB 1.0.0-beta.1

2016-06-07 Thread Luis via Digitalmars-d-announce
On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote: DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for single-file packages, which can be used to write shebang-style scripts on Posix systems: #!/usr/bin/env dub /++ dub.sdl: name "colortest"

Re: Beta release DUB 1.0.0-beta.1

2016-06-07 Thread wobbles via Digitalmars-d-announce
On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote: DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for single-file packages, which can be used to write shebang-style scripts on Posix systems: [...] This is great - very nice feature. That was one of the

Re: Beta release DUB 1.0.0-beta.1

2016-06-07 Thread Edwin van Leeuwen via Digitalmars-d-announce
On Tuesday, 7 June 2016 at 09:54:19 UTC, Sönke Ludwig wrote: DUB 1.0.0 is nearing completion. The new feature over 0.9.25 is support for single-file packages, which can be used to write shebang-style scripts on Posix systems: #!/usr/bin/env dub /++ dub.sdl: name "colortest"