Closed RandalSchwartz closed 2 years ago
So a couple of new things here:
The flutter message is new, but easy to fix.
The posix issue will take a little more effort. I will try to have a look over the weekend.
On Fri, Oct 14, 2022 at 4:45 AM Randal L. Schwartz @.***> wrote:
Describe the bug dcli install blows up, whether run as sudo or not.
To Reproduce
Locohost.local:~ % dart pub global activate dcli
Package dcli is currently active at version 1.34.0.
The package dcli is already activated at newest available version.
To recompile executables, first run
dart pub global deactivate dcli
.Installed executables dcli, dcli_complete and dcli_install.
Activated dcli 1.34.0.
Locohost.local:~ % dcli install
Please Run: sudo env "PATH=$PATH" dcli install
Locohost.local:~ % sudo -E dcli install
Woah! You appear to be trying to run flutter as root.
We strongly recommend running the flutter tool without superuser privileges.
/
π
UnsupportedError: Unsupported operation: Operation 'toDartString' not allowed on a 'nullptr'.
Stacktrace: utf8.dart : Utf8Pointer._ensureNotNullptr : 62
utf8.dart : Utf8Pointer.toDartString : 42
conversions.dart : copyCBuffToDartString : 53
pwd.dart : _buildPasswd : 286
pwd.dart : getpwnam : 134
simplified.dart : getPassword : 27
posix_shell.dart : PosixShell._resetUserEnvironment : 149
posix_shell.dart : PosixShell.releasePrivileges : 126
install.dart : InstallCommand.run : 90
command_line_runner.dart : CommandLineRunner.process : 98
entry_point.dart : EntryPoint._parseCmdLine : 41
entry_point.dart : EntryPoint.process : 36
dcli.dart : DCli.run : 17
dcli.dart : main : 12
isolate_patch.dart : _delayEntrypointInvocation.
: 295 isolate_patch.dart : _RawReceivePortImpl._handleMessage : 192
Locohost.local:~ %
Expected behavior Does what the manual says. :)
Logs
Run dcli doctor: From the cli run dcli doctor
DCli version 1.34.0
os macos
os version Version 12.6 (Build 21G115)
path separator /
dart version 2.18.2
dcli path /
/.pub-cache/bin/dcli dart exe path /
/fvm/default/bin/dart dart path /
/fvm/default/bin/dart which: / /fvm/default/bin/dart compiler using 'dart compile exe'
pub using 'dart pub'
pub cache /
/.pub-cache PUB_CACHE Env false
package config /
/not passed PATH
/<HOME>/.amplify/bin /Library/Frameworks/Python.framework/Versions/3.6/bin /<HOME>/bin /opt/git/bin /<HOME>/MIRROR/rakudo-GIT/install/bin /<HOME>/MIRROR/rakudo-GIT/install/share/perl6/site/bin /opt/perl/bin /opt/local/bin /opt/local/sbin /<HOME>/Flutter/.pub-cache/bin /<HOME>/fvm/default/bin /<HOME>/Flutter/bin /<HOME>/.pub-cache/bin /<HOME>/.dcli/bin /<HOME>/MIRROR/brew-GIT/bin /<HOME>/MIRROR/brew-GIT/opt/ruby/bin /<HOME>/.gem/ruby/3.0.0/bin /usr/local/bin /usr/bin /bin /usr/sbin /sbin /Applications/VMware Fusion.app/Contents/Public /usr/local/share/dotnet /opt/X11/bin /<HOME>/~/.dotnet/tools /Library/Apple/usr/bin /Library/Frameworks/Mono.framework/Versions/Current/Com /<HOME>/Sdk/google-cloud-sdk/bin /<HOME>/Library/Android/sdk/platform-tools /Library/Java/JavaVirtualMachines/adoptopenjdk-11.jdk/C
Shell Settings
$SHELL /bin/zsh
detected zsh
Start script /
/.zshrc dart location(s)
/Users/merlyn/fvm/default/bin/dart
permissions
HOME rwxr-xr-x
: / .dcli /
/.dcli does not exist project template /
/.dcli/template/project does not exist script template /
/.dcli/template/script does not exist pub cache rwxr-xr-x
:merlyn / /.pub-cache Additional context Add any other context about the problem here.
β Reply to this email directly, view it on GitHub https://github.com/onepub-dev/dcli/issues/202, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG32ODBFK5MII4VFIAIGD3WDBDE5ANCNFSM6AAAAAAREQKMVA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Released as 1.34.1. If you have any problems feel free to re-open this issue.
FYI: I recommend that your .dcli/bin is placed before your pub-cache/bin so that any complied dcli script take precedence over your pub-cache global activations.
Still broken.
Locohost.local:~ % dart pub global activate dcli
Package dcli is currently active at version 1.34.0.
+ archive 3.3.2dencies... (2.1s)
+ args 2.3.1
+ async 2.9.0
+ basic_utils 3.9.4 (5.4.0 available)
+ chunked_stream 1.4.1
+ circular_buffer 0.11.0
+ clock 1.1.1
+ collection 1.17.0
+ convert 3.1.1
+ crypto 3.0.2
+ csv 5.0.1
+ dart_console2 2.0.0
+ dcli 1.34.1
+ dcli_core 1.34.1 (1.35.1 available)
+ equatable 2.0.5
+ ffi 2.0.1
+ file 6.1.4
+ file_utils 1.0.1
+ glob 2.1.0
+ globbing 1.0.0
+ http 0.13.5
+ http_parser 4.0.2
+ ini 2.1.0
+ intl 0.17.0
+ js 0.6.5
+ json_annotation 4.7.0
+ logging 1.1.0
+ matcher 0.12.12
+ meta 1.8.0
+ mime 1.0.2
+ path 1.8.2
+ pointycastle 3.6.2
+ posix 4.0.1
+ pub_semver 2.1.2
+ pubspec2 2.4.1
+ quiver 3.1.0
+ random_string 2.3.1
+ scope 2.2.1 (3.0.0 available)
+ settings_yaml 3.5.0 (4.0.0 available)
+ source_span 1.9.1
+ stack_trace 1.11.0
+ stacktrace_impl 2.3.0
+ string_scanner 1.1.1
+ system_info2 2.0.4
+ term_glyph 1.2.1
+ typed_data 1.3.1
+ uri 1.0.0
+ uuid 3.0.6
+ validators2 3.0.0
+ vin_decoder 0.2.1-nullsafety
+ win32 2.7.0 (3.0.1 available)
+ yaml 3.1.1
Downloading dcli 1.34.1...
Downloading posix 4.0.1...
Downloading dcli_core 1.34.1...
Downloading stack_trace 1.11.0...
Downloading js 0.6.5...
Building package executables... (8.3s)
Built dcli:dcli.
Built dcli:dcli_install.
Built dcli:dcli_complete.
Installed executables dcli, dcli_complete and dcli_install.
Activated dcli 1.34.1.
Locohost.local:~ % dcli_install
Please Run:
sudo -E dcli install
Locohost.local:~ % sudo -E dcli_install
Woah! You appear to be trying to run flutter as root.
We strongly recommend running the flutter tool without superuser privileges.
/
π
UnsupportedError: Unsupported operation: Operation 'toDartString' not allowed on a 'nullptr'.
Stacktrace: utf8.dart : Utf8Pointer._ensureNotNullptr : 62
utf8.dart : Utf8Pointer.toDartString : 42
conversions.dart : copyCBuffToDartString : 53
pwd.dart : _buildPasswd : 288
pwd.dart : getpwnam : 134
simplified.dart : getPassword : 27
posix_shell.dart : PosixShell._resetUserEnvironment : 149
posix_shell.dart : PosixShell.releasePrivileges : 126
install.dart : InstallCommand.run : 90
command_line_runner.dart : CommandLineRunner.process : 98
entry_point.dart : EntryPoint._parseCmdLine : 41
entry_point.dart : EntryPoint.process : 36
dcli_install.dart : DCliInstall.run : 25
dcli_install.dart : main : 11
isolate_patch.dart : _delayEntrypointInvocation.<anonymous closure> : 295
isolate_patch.dart : _RawReceivePortImpl._handleMessage : 192
Can't reopen, so I'm opening a new issue.
sorry but just realized that the deploy failed. dcli_core was published but not dcli.
I will try the deploy again today.
The dcli version should be 1.35.
On Thu, Oct 20, 2022 at 9:22 AM Randal L. Schwartz @.***> wrote:
Still broken.
Locohost.local:~ % dart pub global activate dcli
Package dcli is currently active at version 1.34.0.
archive 3.3.2dencies... (2.1s)
args 2.3.1
async 2.9.0
basic_utils 3.9.4 (5.4.0 available)
chunked_stream 1.4.1
circular_buffer 0.11.0
clock 1.1.1
collection 1.17.0
convert 3.1.1
crypto 3.0.2
csv 5.0.1
dart_console2 2.0.0
dcli 1.34.1
dcli_core 1.34.1 (1.35.1 available)
equatable 2.0.5
ffi 2.0.1
file 6.1.4
file_utils 1.0.1
glob 2.1.0
globbing 1.0.0
http 0.13.5
http_parser 4.0.2
ini 2.1.0
intl 0.17.0
js 0.6.5
json_annotation 4.7.0
logging 1.1.0
matcher 0.12.12
meta 1.8.0
mime 1.0.2
path 1.8.2
pointycastle 3.6.2
posix 4.0.1
pub_semver 2.1.2
pubspec2 2.4.1
quiver 3.1.0
random_string 2.3.1
scope 2.2.1 (3.0.0 available)
settings_yaml 3.5.0 (4.0.0 available)
source_span 1.9.1
stack_trace 1.11.0
stacktrace_impl 2.3.0
string_scanner 1.1.1
system_info2 2.0.4
term_glyph 1.2.1
typed_data 1.3.1
uri 1.0.0
uuid 3.0.6
validators2 3.0.0
vin_decoder 0.2.1-nullsafety
win32 2.7.0 (3.0.1 available)
yaml 3.1.1
Downloading dcli 1.34.1...
Downloading posix 4.0.1...
Downloading dcli_core 1.34.1...
Downloading stack_trace 1.11.0...
Downloading js 0.6.5...
Building package executables... (8.3s)
Built dcli:dcli.
Built dcli:dcli_install.
Built dcli:dcli_complete.
Installed executables dcli, dcli_complete and dcli_install.
Activated dcli 1.34.1.
Locohost.local:~ % dcli_install
Please Run:
sudo -E dcli install
Locohost.local:~ % sudo -E dcli_install
Woah! You appear to be trying to run flutter as root.
We strongly recommend running the flutter tool without superuser privileges.
/
π
UnsupportedError: Unsupported operation: Operation 'toDartString' not allowed on a 'nullptr'.
Stacktrace: utf8.dart : Utf8Pointer._ensureNotNullptr : 62
utf8.dart : Utf8Pointer.toDartString : 42
conversions.dart : copyCBuffToDartString : 53
pwd.dart : _buildPasswd : 288
pwd.dart : getpwnam : 134
simplified.dart : getPassword : 27
posix_shell.dart : PosixShell._resetUserEnvironment : 149
posix_shell.dart : PosixShell.releasePrivileges : 126
install.dart : InstallCommand.run : 90
command_line_runner.dart : CommandLineRunner.process : 98
entry_point.dart : EntryPoint._parseCmdLine : 41
entry_point.dart : EntryPoint.process : 36
dcli_install.dart : DCliInstall.run : 25
dcli_install.dart : main : 11
isolate_patch.dart : _delayEntrypointInvocation.
: 295 isolate_patch.dart : _RawReceivePortImpl._handleMessage : 192
β Reply to this email directly, view it on GitHub https://github.com/onepub-dev/dcli/issues/202#issuecomment-1284633688, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG32OFS6KDLRMFZFMQDQS3WEBYC7ANCNFSM6AAAAAAREQKMVA . You are receiving this because you modified the open/close state.Message ID: @.***>
I've just deployed 1.35.2
On Thu, Oct 20, 2022 at 9:59 AM Brett Sutton @.***> wrote:
sorry but just realized that the deploy failed. dcli_core was published but not dcli.
I will try the deploy again today.
The dcli version should be 1.35.
On Thu, Oct 20, 2022 at 9:22 AM Randal L. Schwartz < @.***> wrote:
Still broken.
Locohost.local:~ % dart pub global activate dcli
Package dcli is currently active at version 1.34.0.
archive 3.3.2dencies... (2.1s)
args 2.3.1
async 2.9.0
basic_utils 3.9.4 (5.4.0 available)
chunked_stream 1.4.1
circular_buffer 0.11.0
clock 1.1.1
collection 1.17.0
convert 3.1.1
crypto 3.0.2
csv 5.0.1
dart_console2 2.0.0
dcli 1.34.1
dcli_core 1.34.1 (1.35.1 available)
equatable 2.0.5
ffi 2.0.1
file 6.1.4
file_utils 1.0.1
glob 2.1.0
globbing 1.0.0
http 0.13.5
http_parser 4.0.2
ini 2.1.0
intl 0.17.0
js 0.6.5
json_annotation 4.7.0
logging 1.1.0
matcher 0.12.12
meta 1.8.0
mime 1.0.2
path 1.8.2
pointycastle 3.6.2
posix 4.0.1
pub_semver 2.1.2
pubspec2 2.4.1
quiver 3.1.0
random_string 2.3.1
scope 2.2.1 (3.0.0 available)
settings_yaml 3.5.0 (4.0.0 available)
source_span 1.9.1
stack_trace 1.11.0
stacktrace_impl 2.3.0
string_scanner 1.1.1
system_info2 2.0.4
term_glyph 1.2.1
typed_data 1.3.1
uri 1.0.0
uuid 3.0.6
validators2 3.0.0
vin_decoder 0.2.1-nullsafety
win32 2.7.0 (3.0.1 available)
yaml 3.1.1
Downloading dcli 1.34.1...
Downloading posix 4.0.1...
Downloading dcli_core 1.34.1...
Downloading stack_trace 1.11.0...
Downloading js 0.6.5...
Building package executables... (8.3s)
Built dcli:dcli.
Built dcli:dcli_install.
Built dcli:dcli_complete.
Installed executables dcli, dcli_complete and dcli_install.
Activated dcli 1.34.1.
Locohost.local:~ % dcli_install
Please Run:
sudo -E dcli install
Locohost.local:~ % sudo -E dcli_install
Woah! You appear to be trying to run flutter as root.
We strongly recommend running the flutter tool without superuser privileges.
/
π
UnsupportedError: Unsupported operation: Operation 'toDartString' not allowed on a 'nullptr'.
Stacktrace: utf8.dart : Utf8Pointer._ensureNotNullptr : 62
utf8.dart : Utf8Pointer.toDartString : 42
conversions.dart : copyCBuffToDartString : 53
pwd.dart : _buildPasswd : 288
pwd.dart : getpwnam : 134
simplified.dart : getPassword : 27
posix_shell.dart : PosixShell._resetUserEnvironment : 149
posix_shell.dart : PosixShell.releasePrivileges : 126
install.dart : InstallCommand.run : 90
command_line_runner.dart : CommandLineRunner.process : 98
entry_point.dart : EntryPoint._parseCmdLine : 41
entry_point.dart : EntryPoint.process : 36
dcli_install.dart : DCliInstall.run : 25
dcli_install.dart : main : 11
isolate_patch.dart : _delayEntrypointInvocation.
: 295 isolate_patch.dart : _RawReceivePortImpl._handleMessage : 192
β Reply to this email directly, view it on GitHub https://github.com/onepub-dev/dcli/issues/202#issuecomment-1284633688, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG32OFS6KDLRMFZFMQDQS3WEBYC7ANCNFSM6AAAAAAREQKMVA . You are receiving this because you modified the open/close state.Message ID: @.***>
can't reopen, so I'm creating a NEW BUG again.... Please, next time, wait until I verify....
Describe the bug
dcli install
blows up, whether run as sudo or not.To Reproduce
Expected behavior Does what the manual says. :)
Logs
Run dcli doctor: From the cli run
dcli doctor
Additional context Add any other context about the problem here.