Skip to content
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

[BUG] msix:create - The getter isn't defined for the class 'String' #180

Closed
jbaptisteroesch opened this issue Feb 21, 2023 · 1 comment
Closed
Labels
bug Something isn't working fixed bug fixed

Comments

@jbaptisteroesch
Copy link

ℹ️ Info

Version: v3.8.1

💬 Description

The msix:create command failed with the error below.

flutter pub run msix:create
$> flutter pub run msix:create
Failed to build msix:create:
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/msix-3.8.1/lib/src/method_extensions.dart:14:48: Error: The getter 'this' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'this'.
  String get emphasized => '${Ansi(true).bold}$this${Ansi(true).none}';
                                               ^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/msix-3.8.1/lib/src/method_extensions.dart:15:44: Error: The getter 'this' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'this'.
  String get green => '${Ansi(true).green}$this${Ansi(true).none}';
                                           ^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/msix-3.8.1/lib/src/method_extensions.dart:16:42: Error: The getter 'this' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'this'.
  String get blue => '${Ansi(true).blue}$this${Ansi(true).none}';
                                         ^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/msix-3.8.1/lib/src/method_extensions.dart:17:40: Error: The getter 'this' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'this'.
  String get red => '${Ansi(true).red}$this${Ansi(true).none}';
                                       ^^^^
../../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/msix-3.8.1/lib/src/method_extensions.dart:18:42: Error: The getter 'this' isn't defined for the class 'String'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'this'.
  String get gray => '${Ansi(true).gray}$this${Ansi(true).none}';
                                         ^^^^
pub finished with exit code 1

📜 Pubspec.yaml

We ask that you include your pubspec.yaml file as a common problem we have seen has been the pubspec.yaml file being incorrect

dev_dependencies:
  flutter_test:
    sdk: flutter

  flutter_lints: ^2.0.0
  msix: ^3.8.0

msix_config:
  display_name: JSON parser
  publisher_display_name: Actanima
  msix_version: 1.0.5.0
  languages: en-us
  logo_path: C:\Users\jbroe\Documents\Actanima\json_parser\windows\runner\resources\app_icon.ico
  icons_background_color: transparent
  app_installer: #<-- app installer configuration
    publish_folder_path: C:\Users\jbroe\Documents\Actanima\json_parser\publish_folder

📜 Flutter doctor

Flutter doctor
[√] Flutter (Channel stable, 3.3.10, on Microsoft Windows [Version 10.0.22621.1265], locale en-US)
    • Flutter version 3.3.10 on channel stable at C:\Users\jbroe\Documents\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 135454af32 (10 weeks ago), 2022-12-15 07:36:55 -0800
    • Engine revision 3316dd8728
    • Dart version 2.18.6
    • DevTools version 2.15.0

[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at C:\Users\jbroe\AppData\Local\Android\sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
    • All Android licenses accepted.

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

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.4.2)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.4.33122.133
    • Windows 10 SDK version 10.0.22000.0

[√] Android Studio (version 2021.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • 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.11+9-b60-7590822)

[√] IntelliJ IDEA Ultimate Edition (version 2022.3)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA 2022.1
    • Flutter plugin version 72.1.4
    • Dart plugin version 223.8617.8

[√] VS Code (version 1.75.1)
    • VS Code at C:\Users\jbroe\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.56.0

[√] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22621.1265]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 110.0.5481.96
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 109.0.1518.61

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

@YehudaKremer
Copy link
Owner

Thank you for reporting this bug 👍

Fixed in version 3.8.2

@YehudaKremer YehudaKremer added bug Something isn't working fixed bug fixed labels Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed bug fixed
Projects
None yet
Development

No branches or pull requests

2 participants