DDT-IDE / DDT

DDT is an Eclipse-based IDE for the D programming language:
http://ddt-ide.github.io/
101 stars 16 forks source link

Eclipse-internal variable substitutions not resolved in Run Configurations/Environment tab #139

Closed aubade closed 8 years ago

aubade commented 8 years ago

When setting per-Run Configuration environment variables, using eclipse substitutions, said substitutions do not appear to be properly resolved, at least on Win32 (I haven't yet tested this on linux or any other platforms yet)

It's pretty easy to illustrate this; create a project with this source file:

import std.stdio;
import std.process;

void main() {
    writeln("Eclipse project name: ", environment.get("PROJNAME", "Name not found"));
}

Then create a run configuration for it, and in the environment tab, make a variable named PROJNAME and set its value to ${project_name}; It should return whatever project is currently active in eclipse at the time you hit the run button, but here it just prints ${project_name}.

aubade commented 8 years ago

Unfortunately, this still seems to be an issue in the 1.0.1.v201606011426 release, with the same symptoms. I uninstalled and reinstalled DDT just to make sure it wasn't an issue in my installatian.

aubade commented 8 years ago

(I suspect the fix may just not have gotten baked into the release files)

bruno-medeiros commented 8 years ago

Oh, run configurations! What happened is that I fixed this for the env vars in Build Target execution, I thought that's where the problem was (and indeed it was buggy there as well). Will fix here as well

bruno-medeiros commented 8 years ago

Ok, I believe it is fixed now.