Re: DLS deprecation
On Tuesday, 7 April 2020 at 19:12:49 UTC, Laurent Tréguier wrote: I started working on this project to make it more comfortable to write D back in 2017, Thanks for the time and effort you put into this. DLS has been a great piece of software. Thanks again!
Re: Beta 2.090.0
On Monday, 23 December 2019 at 21:59:42 UTC, Per Nordlöw wrote: On Sunday, 22 December 2019 at 23:05:20 UTC, Steven Schveighoffer wrote: extern(C) __gshared string[] rt_options = [ "testmode=run-main"]; There are far more people who run unittests as a separate step from running their application. If unittests pass, then there's no distinguishable output from a build without unittests. I can totally imagine accidentally shipping code with unittests in it without intending to. Thanks. So what is now the difference between dub run --build=unittest and dub test ? dub test doesn't run the actual program only unittests are far as I can tell.
Re: dud: A dub replacement
On Sunday, 17 November 2019 at 19:10:05 UTC, Sebastiaan Koppe wrote: On Sunday, 17 November 2019 at 16:26:45 UTC, Denis Feklushkin wrote: On Thursday, 14 November 2019 at 23:33:06 UTC, Nick Sabalausky (Abscissa) wrote: Also, this, apparently, should lead to the fact that dud will have their own package description format. Almost inevitable. (This has already been discussed, perhaps.) SDL all the way please. Yes please
Re: I wrote a little socket tutorial
On Tuesday, 12 November 2019 at 18:03:44 UTC, Adam D. Ruppe wrote: A lot of people ask me how to use sockets in Phobos, so I wrote it up with a few samples. Not every detail you could ever need, but I tried to be reasonably comprehensive for new users. http://dpldocs.info/this-week-in-d/Blog.Posted_2019_11_11.html Thanks Adam it's just what I was looking for!
Re: hunt entity v2.1.0 released!
On Wednesday, 9 January 2019 at 11:28:58 UTC, Brian wrote: Hunt Entity is an object-relational mapping (ORM) framework for dlang's database, support PostgreSQL / MySQL / SQLite. [...] Really cool! Thanks.
Re: DLS (D Language Server) v0.20
On Monday, 31 December 2018 at 10:19:58 UTC, Laurent Tréguier wrote: On Monday, 31 December 2018 at 04:06:30 UTC, Soulsbane wrote: Can dfmt be disabled completely? I think I tried this before way back and it couldn't. I don't really want auto formatting of my code. It can be disabled in the initialization options. You can set `d.init.capabilities.documentFormatting` to `false` in the configuration settings for VSCode and Atom; for other editors it depends on the language client extension that's used. Cool! Thanks a lot!
Re: DLS (D Language Server) v0.20
On Friday, 28 December 2018 at 11:14:01 UTC, Laurent Tréguier wrote: Hello, and merry Christmas! (a bit late, but whatever) At the end of March of this year, I had made a post [1] about this project, aimed at helping with D development on various editors (VSCode, Atom, Sublime text, vim...) [2]. In a nutshell, it's a bit like serve-d [3], albeit with fewer features, and focused more on being 'plug and play': a single binary with no dependencies, can be installed without being compiled on most OS's, automatically updates itself and tries to adapt to different dmd/ldc installations. [...] Can dfmt be disabled completely? I think I tried this before way back and it couldn't. I don't really want auto formatting of my code.
Re: This Week in D is back
On Monday, 17 December 2018 at 22:01:07 UTC, Adam D. Ruppe wrote: Well, I am getting back into it: http://dpldocs.info/this-week-in-d/Blog.Posted_2018_12_17.html Thanks Adam! I really loved the tips/tricks part in your old TWiD. I've learned quite a bit off of those so thanks again!
Re: smile.amazon.com Promotion
On Monday, 29 October 2018 at 16:01:38 UTC, Mike Parker wrote: One of the easiest ways to support the D Language Foundation is using smile.amazon.com when you make a purchase. Until Nov 2, they're running a special where they're donating 5% (10 times the usual amount) you buy through AmazonSmile. smile.amazon.com/ch/47-5352856 Already done!
Re: silly is released - new test runner for the D programming language
On Sunday, 12 August 2018 at 15:07:04 UTC, Anton Fediushin wrote: Hello, I'm glad to announce that silly v0.0.1 is released. Silly is a brand-new test runner with simplicity in mind. It's developed to be as simple as possible and contain no useless features. Another important goal is to provide flexible tool which can be easily integrated into existing environments. In my local version I've modified the test name to be colorized. Could you add this feature? it really helps the readability in my opinion. Either way, I really love silly! Thanks a lot!
Re: LDC 1.7.0
On Saturday, 6 January 2018 at 01:19:14 UTC, kinke wrote: Hi everyone, on behalf of the LDC team, I'm glad to announce LDC 1.7. The highlights of this version in a nutshell: * Based on D 2.077.1. * Catching C++ exceptions supported on Linux and Windows. * LLVM for prebuilt packages upgraded to v5.0.1. Full release log and downloads: https://github.com/ldc-developers/ldc/releases/tag/v1.7.0 Thanks to all contributors! Does anyone know if the ldc2 Snap is going to be updated. It is at 1.4.0 and snap refresh says no updates available. Thanks!
Re: Reorganization and list of D libraries (300+)
On Monday, 6 November 2017 at 16:12:14 UTC, Martin Tschierschke wrote: On Saturday, 4 November 2017 at 00:16:35 UTC, Ali Çehreli wrote: On 11/03/2017 05:12 PM, Fra Mecca wrote: https://github.com/FraMecca/D_Libraries_Registry This effort should be combined with the current work being done to http://code.dlang.org/ I hope Martin, Seb, and others that are involved will see this thread. (Yes, I'm pinging them. :) ) Ali Even being the wrong Martin :-) I think the DUB registry really needs more and better filters, so that the gems inside can be found easily. (like: Number of Github stars, number of downloads, number of developers and in the future: money donated to this project ...). There has been several attempts but I would like to encourage the D Foundation to put more focus on this. Better ecosystem around third party software means less work for improvement of standard lib. Regards mt. So true. I've written code before only to learn later that there was already a library for what I was doing that I just happened to stumble upon. Which would have saved me a lot of time.
Re: Visual Studio Code code-d serve-d beta release
On Saturday, 19 August 2017 at 13:07:41 UTC, WebFreak001 wrote: On Saturday, 19 August 2017 at 05:11:35 UTC, Soulsbane wrote: On Saturday, 19 August 2017 at 05:11:13 UTC, Soulsbane wrote: I got it working! Nice work so far except I no longer see any output in the extension Code Outline's[1] pane. It works fine in the other version of code-d. I know this functionality probably won't be a priority but in my opinion having the two extensions work together makes writing D code really sweet. Thanks again! And I forgot to link the extension: https://marketplace.visualstudio.com/items?itemName=patrys.vscode-code-outline cool, looks really useful! I added it to my dlang extension bundle https://marketplace.visualstudio.com/items?itemName=webfreak.dlang-bundle Thanks a lot!
Re: Visual Studio Code code-d serve-d beta release
On Saturday, 19 August 2017 at 05:11:13 UTC, Soulsbane wrote: On Thursday, 10 August 2017 at 06:49:23 UTC, Dmitry wrote: On Wednesday, 9 August 2017 at 14:39:12 UTC, WebFreak001 wrote: try using the C/C++ Extension in vscode which uses the visual studio debugger, that one works great on windows for D OMG, it's really works. Thank you alot! I'll try to use VSCode as main IDE for D code. I got it working! Nice work so far except I no longer see any output in the extension Code Outline's[1] pane. It works fine in the other version of code-d. I know this functionality probably won't be a priority but in my opinion having the two extensions work together makes writing D code really sweet. Thanks again! And I forgot to link the extension: https://marketplace.visualstudio.com/items?itemName=patrys.vscode-code-outline
Re: Visual Studio Code code-d serve-d beta release
On Thursday, 10 August 2017 at 06:49:23 UTC, Dmitry wrote: On Wednesday, 9 August 2017 at 14:39:12 UTC, WebFreak001 wrote: try using the C/C++ Extension in vscode which uses the visual studio debugger, that one works great on windows for D OMG, it's really works. Thank you alot! I'll try to use VSCode as main IDE for D code. I got it working! Nice work so far except I no longer see any output in the extension Code Outline's[1] pane. It works fine in the other version of code-d. I know this functionality probably won't be a priority but in my opinion having the two extensions work together makes writing D code really sweet. Thanks again!
Re: Visual Studio Code code-d serve-d beta release
On Sunday, 6 August 2017 at 08:54:28 UTC, WebFreak001 wrote: To access it open the panel at the bottom (F1 -> View: Toggle Output / Ctrl-K Ctrl-H) and at the top right select code-d & serve-d. Then just select everything, copy it and paste it somewhere. I tried with a fresh dub init project and the same thing happens: dub version: DUB version 1.4.0, built on Jul 19 2017 serve-d version: 2017-08-06T13:30:00.496:app.d:main:195 Features fulfilled 2017-08-06T13:30:00.496:app.d:main:198 Started reading from stdin 2017-08-06T13:30:00.496:app.d:main:201 RPC started 2017-08-06T13:30:00.506:app.d:main:209 Has Message 2017-08-06T13:30:00.506:app.d:main:211 Message: RequestMessage(0, "initialize", {"capabilities":{"textDocument":{"codeAction":{"dynamicRegistration":true},"codeLens":{"dynamicRegistration":true},"completion":{"completionItem":{"snippetSupport":true},"dynamicRegistration":true},"definition":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentLink":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"hover":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true},"references":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true},"signatureHelp":{"dynamicRegistration":true},"synchronization":{"didSave":true,"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true}},"workspace":{"applyEdit":true,"didChangeConfiguration":{"dynamicRegistration":false},"didChangeWatchedFiles":{"dynamicRegistration":true},"executeCommand":{"dynamicRegistration":true},"symbol":{"dynamicRegis! tration":true},"workspaceEdit":{"documentChanges":true}}},"processId":4751,"rootPath":"\/home\/soulsbane\/Projects\/D\/coded","rootUri":"file:\/\/\/home\/soulsbane\/Projects\/D\/coded","trace":"off"}) 2017-08-06T13:30:00.517:app.d:__lambda10:217 Processing as request 2017-08-06T13:30:00.517:app.d:processRequest:49 Initializing 2017-08-06T13:30:00.517:extension.d:initialize:136 Initializing serve-d for /home/soulsbane/Projects/D/coded 2017-08-06T13:30:00.517:extension.d:initialize:141 Starting dub... 2017-08-06T13:30:00.517:jsonrpc.d:showErrorMessage:310 Error message: Could not initialize dub. Falling back to limited functionality! 2017-08-06T13:30:00.517:jsonrpc.d:send:66 {"jsonrpc":"2.0","method":"window/showMessage","params":{"message":" Could not initialize dub. Falling back to limited functionality!","type":1}} 2017-08-06T13:30:00.517:extension.d:initialize:174 Starting dfmt 2017-08-06T13:30:00.517:extension.d:initialize:176 Starting dlangui 2017-08-06T13:30:00.517:extension.d:initialize:178 Starting importer 2017-08-06T13:30:00.517:extension.d:initialize:180 Starting moduleman 2017-08-06T13:30:00.517:app.d:processRequest:51 Initialized 2017-08-06T13:30:00.517:app.d:__lambda10:219 Responding with: ResponseMessage(0, {"capabilities":{"codeActionProvider":true,"codeLensProvider":null,"completionProvider":{"resolveProvider":false,"triggerCharacters":[".","("]},"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":false,"documentLinkProvider":null,"documentOnTypeFormattingProvider":null,"documentRangeFormattingProvider":false,"documentSymbolProvider":true,"executeCommandProvider":null,"experimental":null,"hoverProvider":true,"referencesProvider":false,"renameProvider":false,"signatureHelpProvider":{"triggerCharacters":["(",","]},"textDocumentSync":2,"workspaceSymbolProvider":true}}, null(ResponseError)) 2017-08-06T13:30:00.517:jsonrpc.d:send:66 {"id":0,"jsonrpc":"2.0","result":{"capabilities":{"codeActionProvider":true,"codeLensProvider":null,"completionProvider":{"resolveProvider":false,"triggerCharacters":[".","("]},"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":false,"documentLinkProvider":null,"documentOnTypeFormattingProvider":null,"documentRangeFormattingProvider":false,"documentSymbolProvider":true,"executeCommandProvider":null,"experimental":null,"hoverProvider":true,"referencesProvider":false,"renameProvider":false,"signatureHelpProvider":{"triggerCharacters":["(",","]},"textDocumentSync":2,"workspaceSymbolProvider":true}}} 2017-08-06T13:30:00.527:app.d:main:209 Has Message 2017-08-06T13:30:00.527:app.d:main:211 Message: RequestMessage(none, "initialized", {}) 2017-08-06T13:30:00.537:app.d:__lambda11:233 Processing as notification 2017-08-06T13:30:00.537:app.d:main:209 Has Message 2017-08-06T13:30:00.537:app.d:main:211 Message: RequestMessage(none, "$/setTraceNotification", {"value":"off"}) 2017-08-06T13:30:00.547:app.d:__lambda11:233 Processing as notification 2017-08-06T13:30:00.547:app.d:main:209 Has Message 2017-08-06T13:30:00.547:app.d:main:211 Message: RequestMessage(none, "workspace/didChangeConfiguration",
Re: Visual Studio Code code-d serve-d beta release
On Sunday, 6 August 2017 at 06:53:28 UTC, Suliman wrote: Could anybody make Sublime plugin please? Same person made one https://github.com/Pure-D/sublime-d. Although it looks like it hasn't yet been updated to take advantage of the latest features.
Re: Visual Studio Code code-d serve-d beta release
On Saturday, 5 August 2017 at 22:43:31 UTC, WebFreak001 wrote: You might remember the blog post from a while back about workspace-d and serve-d, I just released a beta version on the visual studio marketplace that allows you to try out the latest features of serve-d. Note that this version might easily break in the future, but for the next few days I am trying to gain some feedback. If you are a user of code-d and if you want to try out the new version please uninstall code-d and install code-d-beta I'm getting this error: "Could not initialize dub. Falling back to limited functionality!". I don't get this error in the other version and dub is installed: DUB version 1.4.0, built on Jul 19 2017.
Re: Release fluent-asserts 0.6.0
On Sunday, 2 July 2017 at 13:34:25 UTC, Szabo Bogdan wrote: Hi, I just made a new release of fluent-asserts: http://fluentasserts.szabobogdan.com/ https://code.dlang.org/packages/fluent-asserts Since my last announcement I improved the library with: - better error messages - better exception api - integration with ranges - new asserts `executionTime` for callable and `containsOnly` for ranges - a new `Assert` utility for those who don't like the BDD style of writing asserts Any feedback is appreciated. Thanks, Bogdan Great job with this! I absolutely love it. It's made my tests less ugly that's for sure. Why this kind of library isn't already a part of D is beyond me.
Re: Many documentation examples can now be run online
On Monday, 19 December 2016 at 19:11:26 UTC, Picaud Vincent wrote: On Monday, 19 December 2016 at 18:54:56 UTC, Jakub Szewczyk wrote: It looks great, but I think that the source code should not be hidden when pressing the Run button, instead the application output box should appear above/below the source code :-) +1 Otherwise that is great! +1 also.
Re: Fix suggestions for missing imports // code-d 0.15.0 & workspace-d 2.9.1 released
On Tuesday, 13 December 2016 at 14:09:53 UTC, WebFreak001 wrote: On Tuesday, 13 December 2016 at 00:25:27 UTC, Soulsbane wrote: On Monday, 12 December 2016 at 21:42:50 UTC, WebFreak001 wrote: I recently released workspace-d¹ 2.9.1 with many new additions and I released code-d² 0.15.0 just a few hours ago. [...] Question, will(or perhaps there already is an option and I missed it) there be an option to disable dfmt? I don't care anything about using it. I don't have it installed and everytime I open vscode it complains about it missing. Ah good idea, for now you can just set "d.dfmtPath": "echo" or any other executable which does basically nothing and that should work too. Next update will probably include this then. Cool, I'll give that a try thank! This is definitely my favorite D editor extension to use thanks for the hard work.
Re: Fix suggestions for missing imports // code-d 0.15.0 & workspace-d 2.9.1 released
On Monday, 12 December 2016 at 21:42:50 UTC, WebFreak001 wrote: I recently released workspace-d¹ 2.9.1 with many new additions and I released code-d² 0.15.0 just a few hours ago. [...] Question, will(or perhaps there already is an option and I missed it) there be an option to disable dfmt? I don't care anything about using it. I don't have it installed and everytime I open vscode it complains about it missing.
Re: Release D 2.072.0
On Thursday, 10 November 2016 at 23:02:09 UTC, Soulsbane wrote: On Thursday, 10 November 2016 at 15:38:08 UTC, Dicebot wrote: On 11/05/2016 06:04 AM, Soulsbane wrote: [...] Can't reproduce: $ cat sample.d unittest { import std.regex; static immutable TOC_LINE_PATTERN = `#{1,}\s*(?P.*):\s*(?P.*)`; auto linePattern = ctRegex!(TOC_LINE_PATTERN); } $ dmd-dev -release -O -inline -unittest -main -run sample.d Can you provide more details? Sorry I hadn't gotten back on this. Isolating the code like you did doesn't produce the error. It only fails in my larger project(same code). It's strange. The code is in https://github.com/Soulsbane/luaaddon/blob/master/source/luaaddon/tocparser.d Using struct TocParser in an empty project(just main) works just fine. But as part of my later project(skeletor) it fails to compile. Thanks. Linked wrong file. https://github.com/Soulsbane/luaaddon/blob/7d60711b7b733144f3925a57380e58eb2aab997e/source/luaaddon/tocparser.d is the correct one.
Re: Release D 2.072.0
On Thursday, 10 November 2016 at 15:38:08 UTC, Dicebot wrote: On 11/05/2016 06:04 AM, Soulsbane wrote: On Monday, 31 October 2016 at 01:27:08 UTC, Martin Nowak wrote: Glad to announce D 2.072.0. http://dlang.org/changelog/2.072.0.html -Martin I've run into a problem with code using ctRegex that fails to compile only in release build. Can't reproduce: $ cat sample.d unittest { import std.regex; static immutable TOC_LINE_PATTERN = `#{1,}\s*(?P.*):\s*(?P.*)`; auto linePattern = ctRegex!(TOC_LINE_PATTERN); } $ dmd-dev -release -O -inline -unittest -main -run sample.d Can you provide more details? Sorry I hadn't gotten back on this. Isolating the code like you did doesn't produce the error. It only fails in my larger project(same code). It's strange. The code is in https://github.com/Soulsbane/luaaddon/blob/master/source/luaaddon/tocparser.d Using struct TocParser in an empty project(just main) works just fine. But as part of my later project(skeletor) it fails to compile. Thanks.
Re: Release D 2.072.0
On Monday, 31 October 2016 at 01:27:08 UTC, Martin Nowak wrote: Glad to announce D 2.072.0. http://dlang.org/changelog/2.072.0.html -Martin I've run into a problem with code using ctRegex that fails to compile only in release build. private immutable string TOC_LINE_PATTERN = `#{1,}\s*(?P.*):\s*(?P.*)`; auto linePattern = ctRegex!(TOC_LINE_PATTERN); Error: /usr/include/dmd/phobos/std/uni.d(3133,13): Error: integral constant must be scalar type, not void /usr/include/dmd/phobos/std/functional.d-mixin-200(200,1): Error: __a.data is not yet implemented at compile time /usr/include/dmd/phobos/std/algorithm/searching.d(894,34): called from here: pred2(((InversionList!(GcPolicy) __copytmp4412 = (ref InversionList!(GcPolicy) this = __copytmp4412 = haystack[cast(ulong)i];) , ((ref CowArray!(GcPolicy) this = this.data;) , !((ref CowArray!(GcPolicy) this = this;) , this.data.length == 0LU) && ((ref CowArray!(GcPolicy) this = this;) , ((uint cnt = ((ref CowArray!(GcPolicy) this = this;) , this.data[__dollar - 1LU]) + 1u;)) , this.data[__dollar - 1LU] = cnt));) , __copytmp4412)) /usr/include/dmd/phobos/std/algorithm/searching.d(816,28): called from here: countUntil(haystack) /usr/include/dmd/phobos/std/regex/internal/parser.d(327,46): called from here: countUntil(this.charsets, ((InversionList!(GcPolicy) __copytmp4413 = (__copytmp4413 = set).__fieldPostblit();) , __copytmp4413)) /usr/include/dmd/phobos/std/regex/internal/parser.d(946,30): called from here: this.g.charsetToIr(set.add(10u, 11u).add(13u, 14u).inverted()) /usr/include/dmd/phobos/std/regex/internal/parser.d(858,26): called from here: this.parseAtom() /usr/include/dmd/phobos/std/regex/internal/parser.d(636,23): called from here: this.parseRegex() /usr/include/dmd/phobos/std/regex/package.d(378,61): called from here: parser.this(pattern, flags) /usr/include/dmd/phobos/std/regex/package.d(349,25): called from here: regexImpl(pat, flags) /usr/include/dmd/phobos/std/regex/package.d(357,17): called from here: regex([pattern], flags) /usr/include/dmd/phobos/std/regex/package.d(387,19): called from here: regex(TOC_LINE_PATTERN, []) /usr/include/dmd/phobos/std/regex/package.d(409,54): Error: template instance luaaddon.tocparser.TocParser.ctRegexImpl!(TOC_LINE_PATTERN, []) error instantiating ../libs/luaaddon/source/luaaddon/tocparser.d(31,22): instantiated from here: ctRegex!(TOC_LINE_PATTERN, []) It compiles just fine in debug build. Thanks!
Re: code-d 0.12.0 - The user friendly release (code-d for noobs)
On Tuesday, 4 October 2016 at 19:28:27 UTC, WebFreak001 wrote: I've been working a lot on the new features for code-d to improve the user experience for new users and lower the barrier of creating D projects. Will there be support for looking for dscanner.ini in .config rather than in project directory?
Re: SublimeLinter D Plugin
On Tuesday, 16 September 2014 at 00:16:43 UTC, Brian Schott wrote: Several of my co-workers use Sublime Text and wanted D-Scanner to work with SublimeLinter, so here it is. https://github.com/economicmodeling/SublimeLinter-dscanner I had to comment out the version checking code otherwise plugin wouldn't load. SublimeLinter: WARNING: no dscanner version could be extracted from: std.getopt.GetOptException@/usr/include/dmd/phobos/std/getopt.d(463): Unrecognized option --version
Re: D port of docopt
Thanks for this. Have played with it a whole lot yet but it looks like it will work better for me than getopt does. Thanks again.