onepub-dev / dcli

An extensive library and tooling for building console/cli applications and scripts using the Dart programming language.
246 stars 27 forks source link

Issue installing on linux using documentation. #232

Closed FitzM closed 9 months ago

FitzM commented 9 months ago

I'm unable to install dcli according to the documentation.

system: I'm currently running OpenSUSE Tumbleweed however I've also tried to install on MX Linux and Pika OS. I've just installed dart and flutter sdk using snapd.

When I run the command dart pub global activate dcli this is the returned output.

~> dart pub global activate dcli
+ archive 3.4.10encies... (1.3s)
+ args 2.4.2
+ async 2.11.0
+ characters 1.3.0
+ chunked_stream 1.4.2
+ circular_buffer 0.11.0
+ clock 1.1.1
+ collection 1.18.0
+ completer_ex 4.0.0
+ convert 3.1.1
+ crypto 3.0.3
+ csv 5.1.1 (6.0.0 available)
+ dart_console2 3.0.0
+ dcli 3.3.5
+ dcli_core 3.3.5
+ dcli_terminal 0.2.0
+ equatable 2.0.5
+ ffi 2.1.2
+ file 7.0.0
+ fixnum 1.1.0
+ fsm2 3.0.0
+ functional_data 1.1.1
+ glob 2.1.2
+ globbing 1.0.0
+ ini 2.1.0
+ intl 0.18.1 (0.19.0 available)
+ js 0.7.1
+ json2yaml 3.0.1
+ lists 1.0.1
+ logger 2.0.2+1
+ logging 1.2.0
+ meta 1.12.0
+ mime 1.0.5
+ path 1.9.0
+ pointycastle 3.7.4
+ posix 6.0.1
+ pub_semver 2.1.4
+ pubspec_lock 3.0.2
+ pubspec_manager 1.0.0-alpha.16
+ scope 4.1.0
+ settings_yaml 8.0.1
+ simple_logger 1.9.0+3
+ source_span 1.10.0
+ sprintf 7.0.0
+ stack_trace 1.11.1
+ stacktrace_impl 2.3.0
+ string_scanner 1.2.0
+ strings 3.1.1
+ sum_types 0.3.5
+ synchronized 3.1.0+1
+ system_info2 4.0.0
+ term_glyph 1.2.1
+ tree_iterator 3.0.0
+ typed_data 1.3.2
+ unicode 0.3.1
+ uuid 4.3.3
+ validators2 5.0.0
+ win32 4.1.4 (5.2.0 available)
+ yaml 3.1.2
Building package executables... (5.4s)
Failed to build dcli:dcli:
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_project.dart:114:18: Error: Member not found: 'packageConfig'.
    if (Platform.packageConfig != null) {
                 ^^^^^^^^^^^^^
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_project.dart:121:49: Error: Member not found: 'packageConfig'.
          DartProject.fromPath(dirname(Platform.packageConfig!));
                                                ^^^^^^^^^^^^^
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_script.dart:42:29: Error: Member not found: 'script'.
    final script = Platform.script;
                            ^^^^^^
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_script.dart:49:31: Error: Member not found: 'script'.
      pathToScript = Platform.script.toFilePath();
                              ^^^^^^
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_script.dart:54:33: Error: Member not found: 'resolvedExecutable'.
        pathToScript = Platform.resolvedExecutable;
                                ^^^^^^^^^^^^^^^^^^
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_script.dart:164:28: Error: Member not found: 'script'.
      p.extension(Platform.script.toFilePath()) != '.dart' &&
                           ^^^^^^
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_script.dart:165:39: Error: Member not found: 'script'.
      !_isPubGlobalActivated(Platform.script.toFilePath());
                                      ^^^^^^
Failed to build dcli:dcli_complete:
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_project.dart:114:18: Error: Member not found: 'packageConfig'.
    if (Platform.packageConfig != null) {
                 ^^^^^^^^^^^^^
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_project.dart:121:49: Error: Member not found: 'packageConfig'.
          DartProject.fromPath(dirname(Platform.packageConfig!));
                                                ^^^^^^^^^^^^^
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_script.dart:42:29: Error: Member not found: 'script'.
    final script = Platform.script;
                            ^^^^^^
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_script.dart:49:31: Error: Member not found: 'script'.
      pathToScript = Platform.script.toFilePath();
                              ^^^^^^
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_script.dart:54:33: Error: Member not found: 'resolvedExecutable'.
        pathToScript = Platform.resolvedExecutable;
                                ^^^^^^^^^^^^^^^^^^
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_script.dart:164:28: Error: Member not found: 'script'.
      p.extension(Platform.script.toFilePath()) != '.dart' &&
                           ^^^^^^
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_script.dart:165:39: Error: Member not found: 'script'.
      !_isPubGlobalActivated(Platform.script.toFilePath());
                                      ^^^^^^
Failed to build dcli:dcli_install:
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_project.dart:114:18: Error: Member not found: 'packageConfig'.
    if (Platform.packageConfig != null) {
                 ^^^^^^^^^^^^^
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_project.dart:121:49: Error: Member not found: 'packageConfig'.
          DartProject.fromPath(dirname(Platform.packageConfig!));
                                                ^^^^^^^^^^^^^
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_script.dart:42:29: Error: Member not found: 'script'.
    final script = Platform.script;
                            ^^^^^^
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_script.dart:49:31: Error: Member not found: 'script'.
      pathToScript = Platform.script.toFilePath();
                              ^^^^^^
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_script.dart:54:33: Error: Member not found: 'resolvedExecutable'.
        pathToScript = Platform.resolvedExecutable;
                                ^^^^^^^^^^^^^^^^^^
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_script.dart:164:28: Error: Member not found: 'script'.
      p.extension(Platform.script.toFilePath()) != '.dart' &&
                           ^^^^^^
.pub-cache/hosted/pub.dev/dcli-3.3.5/lib/src/script/dart_script.dart:165:39: Error: Member not found: 'script'.
      !_isPubGlobalActivated(Platform.script.toFilePath());

I'm unable to run dcli doctor since I can't install the package. Any guidance would be appreciated.

bsutton commented 9 months ago

I've just published 3.3.6 which should fix this. One of dcli's dependencies had an update that caused the above breakage. I will close this issue out but feel free to re-open if the 3.3.6 version doesn't resolve the issue.