-
Notifications
You must be signed in to change notification settings - Fork 300
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
Need a way to specify --local-engine for locally built engine #1905
Comments
Found some flutter tools code convert environment variable |
I think you should be able to do this by just specifying the {
"name": "Flutter",
"request": "launch",
"type": "dart",
"args": ["--local-engine", "foo"]
} I don't have a locally built engine to test this, but if I supply only "--local-engine" it complains about not having the next argument. Another option if those env settings work, is you could set "dart.env": {
"LOCAL_ENGINE": "foo"
} Do either of these do what you need? |
Hi, I think the
The second option only works for some flutter tools which convert env
And you can test with a simulated locally built engine:
|
Ah, I didn't realise it would affect things like the daemon. I don't think I haven't tested it yet, but I think something like this may do? |
I'm using a locally built engine, all flutter commands should pass --local-engine argument or we will got an error : "You must specify --local-engine if you are using a locally built engine."
Maybe
globalFlutterArgs
is a good place to do this? src/extension/utils/processes.tsThe text was updated successfully, but these errors were encountered: