-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flutter run not working with null-safety flag #149
Comments
That’s really weird, might be windows only perhaps. But on a sidenote as I believe I also mentioned in the other ticket. If you don’t want to run in sound nullsafety mode you can opt out by putting |
@Kavantix When I run with the
I tried to do this on my linux machine with the same flutter version and the flutter run works without an issue, which leads me to believe that this is indeed a windows problem. I also tried to add the |
Interesting, can you try running with That the dart version comment doesn't work is even stranger, did you run without the flag after adding that line? |
I just noticed that the documentation of the flag specifies that it works differently for flutter web:
Are you running on web? |
I am running only on my android phone for both windows and linux. |
I ran wthout the flag after commenting the dart version, so I also ran with |
Well I have no idea why this would not work, or alternatively why it does work if you run directly from the console. It is even passing the flag to the dart executable:
|
Can you try running directly from the console with the dart version comment and without |
Are you refferinig to the command you specified in #149 (comment)? I tried to run that but I dont think powershell can parse all the flags properly:
|
No I just mean flutter run |
Running |
@brokoli18 could you try to check if coc-flutter is using the same flutter executable as when you run it manually. It might also help if you could share the normal flutter output (instructions are in the issue template) |
Describe the bug
More recent version of flutter implement the null safety feature, which throws out errors if not run with the
--no-sound-null-safety
flag. When running flutter from the terminal this works as normal (even without the flag), however when using the inbuiltCocCommand flutter.run --no-sound-null-safety
there are errors which indicate that this flag isnt parsed.There is only 1 version of flutter on my system (which I reinstalled using the stable channel).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect it to use the flag and work just like the normal terminal command.
Desktop (please complete the following information):
This is copy of #78 as it was noted there that a new ticket should be opened for this issue
The text was updated successfully, but these errors were encountered: