localizely / flutter-intl-vscode

This VS Code extension generates boilerplate code for localization of Flutter apps with official Dart Intl library
MIT License
87 stars 1 forks source link

No Flutter projects detected. #79

Open britannio opened 2 years ago

britannio commented 2 years ago

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?

tusharkhatriofficial commented 2 years ago

What in actual you are trying to do ??

Miamoto-Musashi commented 2 years ago

same problem here with Flutter Intl: Initialize

Miamoto-Musashi commented 2 years ago

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?

aleksakrstic commented 2 years ago

@Miamoto-Musashi What is the project structure in VS Code in your case?

Miamoto-Musashi commented 2 years ago

@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
lzoran commented 2 years ago

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:

ysmaherzi commented 1 year ago

Had the same problem and creating a workspace containing the folders of my packages solved the problem.

DevNico commented 1 year ago

This folder should be configurable at least.