String.fromEnvironment without a const silently does the wrong thing in the VM
As [44083](https://github.com/flutter/flutter/pull/44083) was merged in, I would expect it to be working in at least dev, but I am not able to get it to work as expected. I set the channel to dev (flutter channel dev), then did an upgrade (flutter upgrade). Then I issued the following: flutter -run -t lib/main_generic.dart --dart-define=ENV=DEV In my main_generic.dart I do this: var env = String.fromEnvironment("ENV", defaultValue: "PROD"); The env variable always returns PROD. Should this not be picked up and return DEV instead of defaulting to PROD? @jonahwilliams
Posted by darrinps on Apr 28, 2020, 4:54 PM
Tags
Related issues
- [Meta] Feedback on granular control over Copilot changes
- unexpected status 401 Unauthorized issue
- [MODEL] Measurable quality regression in Claude generation 5 (Fable 5 / Opus 5 / Sonnet 5): worse nonsense detection, ~2x verbosity, under-disclosed model fallb
- [CRITICAL] Subagent spawning and subagent pattern bugs trigger infinite recursion, infinite token usage, grossly inefficient token usage, and lost accumulated s
- Video stops playing after some minutes
- [MODEL] Claude verbose code comments by default — ignores instructions to stop.
Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments
github (Software)
[Meta] Feedback on granular control over Copilot changes
unexpected status 401 Unauthorized issue
[MODEL] Measurable quality regression in Claude generation 5 (Fable 5 / Opus 5 / Sonnet 5): worse nonsense detection, ~2x verbosity, under-disclosed model fallb
[CRITICAL] Subagent spawning and subagent pattern bugs trigger infinite recursion, infinite token usage, grossly inefficient token usage, and lost accumulated s
Video stops playing after some minutes
[MODEL] Claude verbose code comments by default — ignores instructions to stop.
Scope Codex VS Code chats to the current workspace/project
Update on "Co-authored-by: Copilot" in commit messages
String.fromEnvironment without a const silently does the wrong thing in the VM
As [44083](https://github.com/flutter/flutter/pull/44083) was merged in, I would expect it to be working in at least dev, but I am not able to get it to work as expected. I set the channel to dev (flutter channel dev), then did an upgrade (flutter upgrade). Then I issued the following: flutter -run -t lib/main_generic.dart --dart-define=ENV=DEV In my main_generic.dart I do this: var env = String.fromEnvironment("ENV", defaultValue: "PROD"); The env variable always returns PROD. Should this not be picked up and return DEV instead of defaulting to PROD? @jonahwilliams
Comments (0)
No comments yet. Start the discussion.