RejectedSoftware Forums

Sign up

IDE integration: describe the build configurations

I was working on DDT specific code last week, namely understanding build
configurations when the SDL format is used, (or when JSON is used with
non-standard syntax, like using trailing commas in an object/array entries).

Unfortunately dub describe does not provide this info, which is the
root of the problem. Last time this was discussed, Sonke mentioned
--print-configs --annotate which I saved note for later, but now that
I tried it, it's not a full solution: It's prints the configs, but not
the target names. This is used by DDT to automatically generate launch
configurations for a DUB project.

Is there another way to get this information?

Bruno Medeiros
https://twitter.com/brunodomedeiros

Re: IDE integration: describe the build configurations

On Mon, 16 May 2016 14:39:00 +0100, Bruno Medeiros wrote:

This is used by DDT to automatically generate launch
configurations for a DUB project.

Is there another way to get this information?

You can determine the target name by reading the JSON (or the SDL)

This is what I do in Coedit for the action Compile project and run or Run project.

Re: IDE integration: describe the build configurations

On 25/05/2016 03:36, BBaz wrote:

On Mon, 16 May 2016 14:39:00 +0100, Bruno Medeiros wrote:

This is used by DDT to automatically generate launch
configurations for a DUB project.

Is there another way to get this information?

You can determine the target name by reading the JSON (or the SDL)

This is what I do in Coedit for the action Compile project and run or Run project.

Yeah DDT does that with JSON, everything was fine until SDLang was
added. I don't want to have to make DDT understand SDLang too, the
introduction of SDLang was supposed to not influence IDE integration...

Bruno Medeiros
https://twitter.com/brunodomedeiros