question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't run tests in Unsound Null Safety Mode

See original GitHub issue

Steps to Reproduce

Running individual tests requires adding --no-sound-null-safety argument. And currently there’s no way to pass the argument.

Even if there was a way to pass the argument through configuration, it’ll still be a bit of a hassle as we would need to update configuration for individual tests with the argument.

It’ll be nice if a switch in Settings could be added, where users would be able to force using Sound or Unsound Null Safety mode for tests.

Version info

[✓] Flutter (Channel dev, 1.25.0-4.0.pre, on Linux, locale en_US.UTF-8) • Flutter version 1.25.0-4.0.pre at *** • Framework revision a7f5fd5360 (3 days ago), 2020-11-30 13:14:13 +0100 • Engine revision 20caf54969 • Dart version 2.12.0 (build 2.12.0-76.0.dev)

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

19reactions
sarbagyasthacommented, Dec 17, 2020

@stevemessick How can we set --no-sound-null-safety argument for every test by default, without having to add the argument manually to each test configuration?

1reaction
devoncarewcommented, Dec 7, 2020

Update: if we get to this in the near term, we should patch the change into the current (M52) release

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unsound null safety - Dart
Sound null safety is what you want if possible. Dart tools automatically run your program in sound mode if the main entrypoint library...
Read more >
Cannot run with sound null safety because dependencies don ...
First, you should read through the guide to understand unsound null safety. If you are sure that you want to run your application...
Read more >
[SOLVED] Flutter : Cannot run with sound null safety, because ...
Solution. If you want run your project with --no-sound-null-safety so now you add this line your main. dart file in top(first line) with ......
Read more >
Adding no-sound-null-safety to VSCode - YouTube
In the previous screencast, we saw that running a hybrid app required permitting legacy mode from a command-line argument.
Read more >
test | Dart Package - Pub.dev
The test runner does not support general purpose flags to control compilation such as -D defines or flags like --no-sound-null-safety . In most...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found