-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Error on "flutter gen-l10n" #145112
Comments
Looking at the stack trace, the error seems to come from:
This has been changed since #141233 landed. Could you switch to beta/master channel to see if it fixed on your end?
|
I tried on beta and master channel but not working... same error. [√] Flutter (Channel beta, 3.21.0-1.0.pre.2, on Microsoft Windows [Versione 10.0.22631.3296], locale it-IT) PathNotFoundException: PathNotFoundException: Cannot open file, path = 'C:\Users\STB010\Documents\GitHub\bancass_fe\lib\l10n\application\pubspec.yaml' (OS Error: Impossibile trovare il file specificato.
|
Thanks for checking, keeping the issue open for further insights. Meanwhile, could you confirm this issue on a new Flutter project? |
Hi I was experiencing this issue on flutter 3.19.5, upgrading to the beta 3.21.0-0.0.pre fixed the issue but that version has a lot of graphical issues. I had to downgrade to 3.13.9 to get a working build |
Without additional information, we are unfortunately not sure how to resolve this issue. We are therefore reluctantly going to close this bug for now. |
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 |
Since version 3.19.0 i'm getting an error on command: "flutter gen-l10n".
I've been waiting for months for the fix to be released on stable.
command
flutter gen-l10n
exception
PathNotFoundException: PathNotFoundException: Cannot open file, path = 'pubspec.yaml' (OS Error: Impossibile trovare il file specificato.
, errno = 2)
Expected results
generation of localization files
Flutter Doctor output
[√] Flutter (Channel stable, 3.19.3, on Microsoft Windows [Versione 10.0.22631.3155], locale it-IT)
• Flutter version 3.19.3 on channel stable at C:\src\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ba39319 (6 days ago), 2024-03-07 15:22:21 -0600
• Engine revision 2e4ba9c6fb
• Dart version 3.3.1
• DevTools version 2.31.1
[√] Windows Version (Installed version of Windows is version 10 or higher)
[!] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
• Android SDK at C:\Users\STB010\AppData\Local\Android\sdk
X cmdline-tools component is missing
Run
path/to/sdkmanager --install "cmdline-tools;latest"
See https://developer.android.com/studio/command-line for more details.
X Android license status unknown.
Run
flutter doctor --android-licenses
to accept the SDK licenses.See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Professional 2022 17.8.5)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Professional
• Visual Studio Professional 2022 version 17.8.34511.84
• Windows 10 SDK version 10.0.19041.0
[√] Android Studio (version 2021.3)
• Android Studio at C:\Program Files\Android\Android Studio1
• 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.13+0-b1751.21-8125866)
[√] VS Code (version 1.87.2)
• VS Code at C:\Users\STB010\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.84.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Versione 10.0.22631.3155]
• Chrome (web) • chrome • web-javascript • Google Chrome 122.0.6261.112
• Edge (web) • edge • web-javascript • Microsoft Edge 122.0.2365.80
[√] Network resources
• All expected network resources are available.
The text was updated successfully, but these errors were encountered: