Skip to content

dart.env isn't applying unless config is reloaded #1725

Closed

Description

@DanTup

Think I broke this in b2a8796 because setupToolEnv is no longer called automatically (FYI @stuartmorgan - I think you may have mentioned this to me, but somehow I lost the report, and just re-discovered it today!).

Activity

  1. added this to the v3.1.0 milestone on May 20, 2019
  2. changed the title [-]dart.env isn't applying properly[/-] [+]dart.env isn't applying unless config is reloaded[/+] on May 20, 2019
  3. stuartmorgan-g commented on May 20, 2019

    @stuartmorgan-g
    Contributor

    I'm actually seeing it not work at all on a second machine, and I got a report of the same thing from someone else recently.

    I was going to follow up and see if maybe the reason I was seeing inconsistent behavior (which is why I hadn't filed the issue original; when I retested at the time it worked on three machines I tried and only failed on one) was due to versions, and the working machines weren't quite as up-to-date.

    Recently the only way I can seem to make the flow work is to command-line launch VS Code from a terminal that sets the environment variable.

  4. added a commit that references this issue on May 20, 2019
    f34a2af
  5. DanTup commented on May 20, 2019

    @DanTup
    MemberAuthor

    The bug I introduced basically means it'll only work if your trigger a config reload (which usually means changing your config, either directly, or by using something like the SDK switching).

    I've pushed a fix - if it's annoying that it's broken, lmk and I'll send you build with it in (or if you have vsce installed you can run vsce package to build your own).

  6. stuartmorgan-g commented on May 20, 2019

    @stuartmorgan-g
    Contributor

    Oh, I see what you mean by 'reloaded' now. I was thinking 'relaunched', but this would actually be the opposite.

    That definitely explains why I couldn't repro it when I specifically went and set it up on a new machine to see if it was really broken :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions