diff --git a/modules/codelite/codelite_project.lua b/modules/codelite/codelite_project.lua index c2f5f7dc..f52049f5 100755 --- a/modules/codelite/codelite_project.lua +++ b/modules/codelite/codelite_project.lua @@ -274,9 +274,10 @@ end function m.environment(cfg) + local envs = table.concat(cfg.debugenvs, "\n") + _p(3, '') - local variables = "" - _x(4, '', variables) + _x(4, '', envs) _p(3, '') end diff --git a/modules/codelite/tests/test_codelite_config.lua b/modules/codelite/tests/test_codelite_config.lua index 69d2e01a..b36c151e 100644 --- a/modules/codelite/tests/test_codelite_config.lua +++ b/modules/codelite/tests/test_codelite_config.lua @@ -142,11 +142,13 @@ end function suite.OnProjectCfg_Environment() + debugenvs { "ENV_ONE=1", "ENV_TWO=2" } prepare() codelite.project.environment(cfg) test.capture( ' \n' .. -' \n' .. +' \n' .. ' ' ) end