Git Product home page Git Product logo

Comments (6)

ljoly83 avatar ljoly83 commented on June 11, 2024 1

Hey,
I finally installed mason.
The reason is that I use fvm https://fvm.app/ to manage multiple version of flutter on a single computer.
So I did
fvm dart pub global activate mason_cli
and it worked.
Altough flutter command was no more available after fvm install, dart was avalaible.
May be you can add this notice in the mason_cli documentation.
Many thanks for your help!

from mason.

felangel avatar felangel commented on June 11, 2024

Hi @ljoly83 👋
Thanks for opening an issue!

Based on the snippet, it looks like you have mason_cli v0.1.0-dev.40 which is quite old. Have you tried deactivating and reactivating:

dart pub global deactivate mason_cli
dart pub global activate mason_cli

Let me know if that helps 👍

from mason.

ljoly83 avatar ljoly83 commented on June 11, 2024

Hi @felangel,
Thanks for the reply.
It doesn't worked.
Indeed, mason_cli wasn't installed at firt try, so dart pub global deactivate mason_cli does nothing.
I don't have any version before, I just tried to installed for the first time 8 days ago, so I think it should install the latest version.

from mason.

felangel avatar felangel commented on June 11, 2024

@ljoly83 based on your logs it looks like you have an old version cached in AppData/Local/Pub/Cache/hosted/pub.dartlang.org/mason-0.1.0-dev.41. Can you try deleting that directory and trying again?

from mason.

ljoly83 avatar ljoly83 commented on June 11, 2024

@felangel
You are right, there were 4 folders with mason. I deleted them and try again and this is the log (the same)

dart pub global activate mason_cli
Resolving dependencies...
+ archive 3.4.2 (3.4.6 available)
+ args 2.3.1 (2.4.2 available)
+ async 2.9.0 (2.11.0 available)
+ checked_yaml 2.0.1 (2.0.3 available)
+ cli_util 0.3.5 (0.4.0 available)
+ collection 1.17.0 (1.18.0 available)
+ convert 3.1.0 (3.1.1 available)
+ crypto 3.0.2 (3.0.3 available)
+ file 6.1.4 (7.0.0 available)
+ http 0.13.5 (1.1.0 available)
+ http_parser 4.0.2
+ js 0.6.5 (0.6.7 available)
+ json_annotation 4.7.0 (4.8.1 available)
+ mason 0.1.0-dev.41 (0.1.0-dev.51 available)
+ mason_api 0.1.0-dev.9 (0.1.0-dev.10 available)
+ mason_cli 0.1.0-dev.40 (0.1.0-dev.52 available)
+ mason_logger 0.2.4 (0.2.10 available)
+ meta 1.11.0
+ mustache_template 2.0.0
+ path 1.8.3
+ platform 3.1.0 (3.1.3 available)
+ pointycastle 3.7.3
+ pool 1.5.1
+ process 4.2.4 (5.0.1 available)
+ pub_semver 2.1.4
+ pub_updater 0.2.4 (0.4.0 available)
+ recase 4.1.0
+ source_span 1.9.1 (1.10.0 available)
+ stack_trace 1.10.0 (1.11.1 available)
+ string_scanner 1.1.1 (1.2.0 available)
+ term_glyph 1.2.1
+ typed_data 1.3.2
+ yaml 3.1.1 (3.1.2 available)
Downloading mason_cli 0.1.0-dev.40...
Downloading mason_api 0.1.0-dev.9...
Downloading mason 0.1.0-dev.41...
Downloading mason_logger 0.2.4...
Building package executables...
Failed to build mason_cli:mason:
AppData/Local/Pub/Cache/hosted/pub.dartlang.org/mason_cli-0.1.0-dev.40/lib/src/commands/bundle.dart:152:242: Error: The property 'camelCase' is defined in multiple extensions for 'String' and neither is more specific.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
    "// GENERATED CODE - DO NOT MODIFY BY HAND\n// ignore_for_file: type=lint, implicit_dynamic_list_literal, implicit_dynamic_map_literal, inference_failure_on_collection_literal\n\nimport 'package:mason/mason.dart';\n\nfinal ${bundle.name.camelCase}Bundle = MasonBundle.fromJson(<String, dynamic>${json.encode(bundle.toJson())});",


 ^^^^^^^^^
AppData/Local/Pub/Cache/hosted/pub.dartlang.org/mason-0.1.0-dev.41/lib/src/string_case_extensions.dart:6:14: Context: This is one of the extension members.
  String get camelCase => ReCase(this).camelCase;
             ^^^^^^^^^
AppData/Local/Pub/Cache/hosted/pub.dartlang.org/recase-4.1.0/lib/recase.dart:115:14: Context: This is one of the extension members.
  String get camelCase => ReCase(this).camelCase;
             ^^^^^^^^^
AppData/Local/Pub/Cache/hosted/pub.dartlang.org/mason_cli-0.1.0-dev.40/lib/src/commands/new.dart:45:37: Error: The property 'snakeCase' is defined in multiple extensions for 'String' and neither is more specific.
Try using an explicit extension application of the wanted extension or hiding unwanted extensions from scope.
    final name = results.rest.first.snakeCase;
                                    ^^^^^^^^^
AppData/Local/Pub/Cache/hosted/pub.dartlang.org/mason-0.1.0-dev.41/lib/src/string_case_extensions.dart:36:14: Context: This is one of the extension members.
  String get snakeCase => ReCase(this).snakeCase;
             ^^^^^^^^^
AppData/Local/Pub/Cache/hosted/pub.dartlang.org/recase-4.1.0/lib/recase.dart:121:14: Context: This is one of the extension members.
  String get snakeCase => ReCase(this).snakeCase;

from mason.

felangel avatar felangel commented on June 11, 2024

@ljoly83 what version of dart/flutter are you using? I suspect you're on an really old version and pub isn't able to allow you to install the latest stable version. The latest version of Mason CLI requires Dart >= 2.19.0

from mason.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.