Repository navigation
Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Steps to reproduce
Launch the app from VScode.
Press Hot reload or Hot restart from toolbar.
Expected results
App is hot reloaded or hot restarted.
Actual results
Got an error in VSCode debug console
Failed to Hot Restart: DebugAdapterException: Flutter failed to create file at "/Users/timwen/Library/Containers/com.example.simpleUi/Data/tmp/simple_uineH6Iu/simple_ui/main.dart.dill".
Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.
I check the path, my account surely has full access. So it seems the app isn't launched from my user account but some other account?
Update:
With further experiment, I found the hot reload is working fine if launched from terminal. Seems issue is more an VSCode extension bug?
Code sample
All code has this issue
Logs
Logs
Failed to Hot Restart: DebugAdapterException: Flutter failed to create file at "/Users/timwen/Library/Containers/com.example.simpleUi/Data/tmp/simple_uineH6Iu/simple_ui/main.dart.dill".
Please ensure that the SDK and/or project is installed in a location that has read/write permissions for the current user.Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.16.2, on macOS 14.0 23A344 darwin-arm64, locale en-AU)
• Flutter version 3.16.2 on channel stable at /Users/timwen/workspace/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 9e1c857886 (10 days ago), 2023-11-30 11:51:18 -0600
• Engine revision cf7a9d0800
• Dart version 3.2.2
• DevTools version 2.28.3
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/timwen/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: /Applications/Android
Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15A240d
• CocoaPods version 1.13.0
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
[✓] VS Code (version 1.84.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.78.0
[✓] Connected device (3 available)
• Tim's iPhone 13 Pro (mobile) • 00008110-001A016E0239401E • ios • iOS
17.1.2 21B101
• macOS (desktop) • macos • darwin-arm64 • macOS
14.0 23A344 darwin-arm64
• Chrome (web) • chrome • web-javascript •
Google Chrome 115.0.5790.170
[✓] Network resources
• All expected network resources are available.
• No issues found!VScode version
``` Version: 1.84.2 (Universal) Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e Date: 2023-11-09T10:52:33.687Z Electron: 25.9.2 ElectronBuildId: 24603566 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Darwin arm64 23.0.0 ```VSCode extension
Dart v3.78.0
Flutter v3.78.0
Metadata
Metadata
Assignees
Labels
No labels
Activity
timnew commentedon Dec 10, 2023
Errr....
I fixed the issue by restarting VSCode.
github-actions commentedon Dec 24, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.