Sublime Text 3 Gets Better D Support

Twenty Two via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Wed Jan 27 16:42:40 PST 2016


On Wednesday, 27 January 2016 at 19:27:47 UTC, Jack Stouffer 
wrote:
> On Wednesday, 27 January 2016 at 19:15:02 UTC, Damian wrote:
>> Thank you, this is very much welcome!
>>
>> Wishlist:
>> Will we see some dub support integration for building? I find 
>> when using rust the cargo build support is excellent, I wish 
>> we had this for D in sublime :)
>
> I actually didn't do this, I just complained on their issue 
> tracker :)
>
> I use dub with sublime currently by using sublime's custom 
> build system. Just go to "Build System" under tools, click new 
> build system, and add in the following
>
> {
>     "cmd": ["dmd", "-g", "-debug", "$file"],
>     "file_regex": "^(.*?)\\(([0-9]+),?([0-9]+)?\\): (.*)",
>     "selector": "source.d",
>     "path": "/usr/bin:/usr/local/bin",
>
>     "variants": [
>         {
>             "name": "Run",
>             "cmd": ["rdmd", "-g", "-debug", "$file"]
>         },
>         {
>             "name": "unittest",
>             "cmd": ["rdmd", "-g", "-debug", "-unittest", 
> "$file"]
>         },
>         {
>             "name": "dub",
>             "working_dir": "$project_path",
>             "cmd": ["dub"]
>         }
>     ]
> }
>
> Now in your D project, select the build system you just 
> created, click shift command B, choose dub, and then command B, 
> and now your building with dub.

Is there any way to get that to build in a terminal window rather 
than Sublime's inbuilt build window?


More information about the Digitalmars-d-announce mailing list