Open britannio opened 2 years ago
What in actual you are trying to do ??
same problem here with Flutter Intl: Initialize
trying to initialize the project but no luck
No Flutter projects detected.
[✓] Flutter (Channel stable, 2.8.1, on macOS 12.0.1 21A559 darwin-x64, locale it-IT)
• Flutter version 2.8.1 at /Users/mac/progetti/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 77d935af4d (3 settimane fa), 2021-12-16 08:37:33 -0800
• Engine revision 890a5fca2e
• Dart version 2.15.1
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc5)
• Android SDK at /Users/mac/Library/Android/sdk
• Platform android-31, build-tools 31.0.0-rc5
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7281165)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2020.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 11.0.10+0-b96-7281165)
[✓] VS Code (version 1.63.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.29.0
[✓] Connected device (2 available)
• shipper (mobile) • 78341175-DE5D-42CF-ACCC-5D32A83021C7 • ios • com.apple.CoreSimulator.SimRuntime.iOS-15-2 (simulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 96.0.4664.110
• No issues found!
any idea how to solve it?
@Miamoto-Musashi What is the project structure in VS Code in your case?
@aleksakrstic nothing fancy in my case, this is my folder list
README.md
amplify
android
assets
build
ios
lib
pubspec.lock
pubspec.yaml
web
windows
Hi @Miamoto-Musashi,
I've checked the reported issue, and it seems that everything works well 😕.
The Flutter Intl extension goes through VS Code workspace and tries to find Flutter projects (directory that have pubspec.yaml
file in the root).
According to the error message (No Flutter projects detected.
), I assume that your project includes sub-projects (e.g. the Flutter project is a sub-directory) or you opened one of the parent directories in the workspace.
Does the same issue appear in the following cases:
Add Folder to Workspace
)?Had the same problem and creating a workspace containing the folders of my packages solved the problem.
This folder should be configurable at least.
My project is four folders deep so I'm guessing that it isn't searching far enough. If that is the case, could an extension setting to configure the project root location for a workspace be added?