Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Error: 'MapLiteral' isn't a type. #324

Closed
michaelu123 opened this issue Sep 23, 2020 · 4 comments
Closed

Error: 'MapLiteral' isn't a type. #324

michaelu123 opened this issue Sep 23, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@michaelu123
Copy link

The command
flutter pub global activate l10n
terminates with
Precompiling executables...
Failed to precompile l10n:mkl10n:
/C:/flutter/.pub-cache/hosted/pub.dartlang.org/l10n-2.0.19/lib/extractor/L10NMessageExtraction.dart:159:56: Error: 'MapLiteral' isn't a type.
if(arguments.length == 2 && arguments.last is! MapLiteral) {
^^^^^^^^^^
pub finished with exit code 1

@michaelu123 michaelu123 added the bug Something isn't working label Sep 23, 2020
@guidezpl
Copy link
Member

Can you please provide your flutter doctor -v?

@michaelu123
Copy link
Author

First I thought this was because I was not on the master channel, butI see the same problem on beta, master and stable.

@michaelu123
Copy link
Author

PS C:\Users\Michael\FlutterProjects\gallery> flutter doctor -v
Downloading android-arm-profile/windows-x64 tools...                1,5s
Downloading android-arm-release/windows-x64 tools...                1,0s
Downloading android-arm64-profile/windows-x64 tools...              1,2s
Downloading android-arm64-release/windows-x64 tools...              1,1s
Downloading android-x64-profile/windows-x64 tools...                1,2s
Downloading android-x64-release/windows-x64 tools...                1,1s
[√] Flutter (Channel master, 1.22.0-10.0.pre.317, on Microsoft Windows [Version 10.0.19041.508], locale de-DE)
    • Flutter version 1.22.0-10.0.pre.317 at C:\flutter
    • Framework revision 10febea877 (4 hours ago), 2020-09-23 07:22:10 +0200
    • Engine revision 57ee3d4b32
    • Dart version 2.10.0 (build 2.10.0-156.0.dev)

 
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
    • Android SDK at C:\Android\AndroidSDK
    • Platform android-30, build-tools 30.0.2
    • ANDROID_HOME = C:\Android\AndroidSDK
    • ANDROID_SDK_ROOT = C:\Android\AndroidSDK
    • Java binary at: C:\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.6.2)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.6.30204.135
    • Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 4.0)
    • Android Studio at C:\Android\Android Studio
    • Flutter plugin version 48.1.2
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] VS Code, 64-bit edition (version 1.49.0)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.14.1

[√] Connected device (5 available)
    • Nexus 5X (mobile) • 00d21cd1da4a33f0 • android-arm64  • Android 8.1.0 (API 27)
    • Windows (desktop) • windows          • windows-x64    • Microsoft Windows [Version 10.0.19041.508]
    • Web Server (web)  • web-server       • web-javascript • Flutter Tools
    • Chrome (web)      • chrome           • web-javascript • Google Chrome 85.0.4183.102
    • Edge (web)        • edge             • web-javascript • Microsoft Edge 81.0.416.88

• No issues found!
PS C:\Users\Michael\FlutterProjects\gallery> 

@guidezpl
Copy link
Member

I see. Since this has to do with a separate package, closing this. You can track this issue at MikeMitterer/dart-l10n-gettext#4

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants