KronicDeth / intellij-elixir

Elixir plugin for JetBrain's IntelliJ Platform (including Rubymine)
Other
1.84k stars 153 forks source link

Environment variables not found when trying to debug #2187

Open felipeloha opened 3 years ago

felipeloha commented 3 years ago

Describe the bug When I debug code that needs some environment variables, they are not found. When I run automated tests with the very same configuration template, the variables are found.

To Reproduce Steps to reproduce the behavior:

  1. Set variables in the Mix Exunit template
  2. run test > works
  3. debug test > failes due variable not found

Expected behavior variables are found and code is debugged

Screenshots Screenshot 2021-11-09 at 06 58 05

Screenshot 2021-11-09 at 06 58 21

Screenshot 2021-11-09 at 07 00 17

Logs Error: ** (Mix) The database for Module.TestRepo couldn't be created: %RuntimeError{message: "killed"}

Commands: test: .... /private/var/folders/jp/j9dq9kv929s_nwklmhm3q4kh0000gq/T/intellij_elixir148/exunit/1.6.0/team_city_ex_unit_formatting.ex -r /private/var/folders/jp/j9dq9kv929s_nwklmhm3q4kh0000gq/T/intellij_elixir148/exunit/1.6.0/team_city_ex_unit_formatter.ex /Users/felipelopez/.asdf/installs/elixir/1.10.4-otp-23/bin/mix test --formatter TeamCityExUnitFormatter test/***_test.exs:60

debug: /private/var/folders/jp/j9dq9kv929s_nwklmhm3q4kh0000gq/T/intellij_elixir2677/exunit/1.6.0/team_city_ex_unit_formatting.ex -r /private/var/folders/jp/j9dq9kv929s_nwklmhm3q4kh0000gq/T/intellij_elixir2677/exunit/1.6.0/team_city_ex_unit_formatter.ex /Users/felipelopez/.asdf/installs/elixir/1.10.4-otp-23/bin/mix do intellij_elixir.debug, test --formatter TeamCityExUnitFormatter test/***_test.exs:60 --trace

Desktop:

Erlang:

Elixir:

Plugin:

felipeloha commented 3 years ago

its def. the env variables. If I write the values straight in the config, it works