https://pantsbuild.org/ logo
#general
Title
# general
h

happy-family-315

02/03/2023, 5:05 PM
Hi I am using pants
2.15.0rc2
and I use the extra_env_vars field inside the python_tests target. ./pants test works fine but when running it with the debug adapter flag my environment variables are missing. Before I reach a breakpoint I get a key not found error in my code because some ENV VAR is missing. Do you know if this is a bug or do I need to improve my config.
b

bitter-ability-32190

02/03/2023, 5:18 PM
Likely a bug? File an issue with all the relevant details for reproduction and I'll take a look
t

thousands-plumber-33255

02/04/2023, 4:13 PM
I am working on the same repo and noticed that this likely applies to
run
as well. Though, the run goal is executed in a
local_environment
. Is the debugger supposed to work in an environment?
b

bitter-ability-32190

02/04/2023, 4:22 PM
I'm not surprised, the code paths are similar
4 Views