You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can run the Dart: Collect Diagnostic Information command from the VS Code command palette (F1) to easily capture this information or provide it manually.
I would first check whether you have a folder /tmp and if so, whether your user has access to it, since the error seems to indicate it can't access that path.
@DanTup
When I create a flutter app via command-line with flutter create my-projectand I run always with command-line via flutter run -d macos it's works
It fails only when I run over VSCode
My path is correct : it's exists and I have right acces
When I create a flutter app via command-line with flutter create my-project and I run always with command-line via flutter run -d macos it's works
Did you try both with the same project, rather than create a new one? I'm trying to understand if the difference is VS Code vs Terminal, or it might be something in the original project you created causing this.
If all projects fail in VS Code but work in the terminal, could you try:
Using the built-in terminal from VS Code to run flutter run -d macos to see if that works or fails (this will help understand if the issue is VS Code in general, or only when the extension launches the debug session)
If it works from the VS Code built-in terminal, can you try try running flutter run -d macos --start-paused and see whether that works or fails? (note: if it works, the app will start paused and may just appear as a white screen - you can just terminate it - we're mostly trying to see whether it's crashing with the same error as above)
There is also a similar report at flutter/flutter#173450 that might be worth reading through. In particular some comments about what some users tried and may have fixed it:
From the VS Code build-in terminal, this command flutter run -d macos works but this command flutter run -d macos --start-paused with the same error _createDevFS: Unexpected exception:PathAccessException: Creation of temporary directory failed, path = '/tmp' (OS Error: Operation not permitted, errno= 1) and a black screen
Thanks for the additional testing. I've added some notes on flutter/flutter#173450 with a link back here (feel free to add anything you think is relevant that I've missed).
Based on the title of that issue and that you're also on MacOS 13, the issue could be specific to that OS version. Unfortunately I couldn't find much online about this issue, although these two StackOverflow questions have some ideas about changing permissions that may or may not help:
I don't think there's anything we can do from the VS Code extension here since this seems to be affecting Flutter outside of VS Code too (when launched with a debugger), so I'll close this in favour of flutter/flutter#173450 to keep further troubleshooting all in one place.
Activity
DanTup commentedon Nov 6, 2025
Does the same happen if you use
flutter runfrom the terminal? If so, this may need filing at https://github.com/flutter/flutter/ since it won't be fixable by the VS Code extension.I would first check whether you have a folder
/tmpand if so, whether your user has access to it, since the error seems to indicate it can't access that path.ElRochito commentedon Nov 6, 2025
@DanTup
When I create a flutter app via command-line with
flutter create my-projectand I run always with command-line viaflutter run -d macosit's worksIt fails only when I run over VSCode
My path is correct : it's exists and I have right acces
DanTup commentedon Nov 6, 2025
Did you try both with the same project, rather than create a new one? I'm trying to understand if the difference is VS Code vs Terminal, or it might be something in the original project you created causing this.
If all projects fail in VS Code but work in the terminal, could you try:
flutter run -d macosto see if that works or fails (this will help understand if the issue is VS Code in general, or only when the extension launches the debug session)flutter run -d macos --start-pausedand see whether that works or fails? (note: if it works, the app will start paused and may just appear as a white screen - you can just terminate it - we're mostly trying to see whether it's crashing with the same error as above)Thanks!
DanTup commentedon Nov 6, 2025
There is also a similar report at flutter/flutter#173450 that might be worth reading through. In particular some comments about what some users tried and may have fixed it:
ElRochito commentedon Nov 6, 2025
@DanTup
From the VS Code build-in terminal, this command
flutter run -d macosworks but this commandflutter run -d macos --start-pausedwith the same error_createDevFS: Unexpected exception:PathAccessException: Creation of temporary directory failed, path = '/tmp' (OS Error: Operation not permitted, errno= 1)and a black screenElRochito commentedon Nov 6, 2025
@DanTup
ElRochito commentedon Nov 6, 2025
I try all solutions posted on your links but always got error
DanTup commentedon Nov 6, 2025
Thanks - so things work the first time after a reboot, but fail for subsequent attempts? And the issue only occurs when you use
--start-paused?Does it fail from an external terminal when using
--start-pausedtoo?ElRochito commentedon Nov 6, 2025
Yes works once after reboot and after got error.
The issue occurs using
flutter run -d macos --start-pausedorflutter run -d macoson build-in vscode terminal or macos terminalElRochito commentedon Nov 6, 2025
After many researches, it seems an Apple restriction, wrote on DevFS is possible once per reboot ...
So either we restart the computer each time, or we run with --release or --profile not an ideal approach for developing or debugging correctly
DanTup commentedon Nov 7, 2025
Thanks for the additional testing. I've added some notes on flutter/flutter#173450 with a link back here (feel free to add anything you think is relevant that I've missed).
Based on the title of that issue and that you're also on MacOS 13, the issue could be specific to that OS version. Unfortunately I couldn't find much online about this issue, although these two StackOverflow questions have some ideas about changing permissions that may or may not help:
I don't think there's anything we can do from the VS Code extension here since this seems to be affecting Flutter outside of VS Code too (when launched with a debugger), so I'll close this in favour of flutter/flutter#173450 to keep further troubleshooting all in one place.
Thanks!
ElRochito commentedon Nov 7, 2025
@DanTup Yes sorry, I thought the problem was related to the VS Code extension, but it wasn’t.
Thanks for your responsiveness.