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

symbolize requires gsutil but that isn't documented anywhere #162

Open
jmagman opened this issue Mar 27, 2024 · 0 comments
Open

symbolize requires gsutil but that isn't documented anywhere #162

jmagman opened this issue Mar 27, 2024 · 0 comments

Comments

@jmagman
Copy link

jmagman commented Mar 27, 2024

gsutil is required to run symbolize on the command line, but that dependency isn't documented and is causing confusion.

_log.info('gsutil cp $fromUri $toDir');
return _run('gsutil', ['cp', fromUri, toDir]);

➜  Desktop dart pub global run symbolizer:symbolize https://github.com/flutter/flutter/issues/117523\#issue-1507570308 "flutter#135454a arm64 release force ios"

INFO: 2024-03-26 13:06:30.671915: checking for llvm-{symbolizer,readobj,objdump} in $PATH
INFO: 2024-03-26 13:06:30.698415: checking for llvm-{symbolizer,readobj,objdump} in tools/android-ndk/toolchains/llvm/prebuilt/darwin-x86_64/bin/
INFO: 2024-03-26 13:06:30.729213: checking for llvm-{symbolizer,readobj,objdump} in /Users/h/Library/Android/sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/darwin-x86_64/bin/
INFO: 2024-03-26 13:06:32.494511: downloading /var/folders/2j/3q66vxk13y5cx0ch1dywgx5m0000gn/T/symbols-cache/3316dd8728419ad3534e3f6112aa6291f587078a-ios-release for EngineBuild(engineHash: 3316dd8728419ad3534e3f6112aa6291f587078a, variant: EngineVariant(os: ios, arch: arm64, mode: release))
INFO: 2024-03-26 13:06:32.497015: gsutil cp gs://flutter_infra_release/flutter/3316dd8728419ad3534e3f6112aa6291f587078a/ios-release/Flutter.dSYM.zip /var/folders/2j/3q66vxk13y5cx0ch1dywgx5m0000gn/T/HUil4a/Flutter.dSYM.zip
INFO: 2024-03-26 13:06:32.508693: downloading /var/folders/2j/3q66vxk13y5cx0ch1dywgx5m0000gn/T/symbols-cache/3316dd8728419ad3534e3f6112aa6291f587078a-ios-release for EngineBuild(engineHash: 3316dd8728419ad3534e3f6112aa6291f587078a, variant: EngineVariant(os: ios, arch: arm64, mode: release))
Unhandled exception:
ProcessException: No such file or directory
  Command: gsutil cp gs://flutter_infra_release/flutter/3316dd8728419ad3534e3f6112aa6291f587078a/ios-release/Flutter.dSYM.zip /var/folders/2j/3q66vxk13y5cx0ch1dywgx5m0000gn/T/HUil4a/Flutter.dSYM.zip
#0      _ProcessImpl._start (dart:io-patch/process_patch.dart:402:33)
#1      Process.start (dart:io-patch/process_patch.dart:38:20)
#2      _runNonInteractiveProcess (dart:io-patch/process_patch.dart:579:18)
#3      Process.run (dart:io-patch/process_patch.dart:49:12)
#4      SymbolsCache._run (package:symbolizer/symbols.dart:292:23)
#5      SymbolsCache._copyFromGS (package:symbolizer/symbols.dart:204:12)
#6      SymbolsCache._downloadSymbols (package:symbolizer/symbols.dart:211:11)
#7      SymbolsCache._getImpl (package:symbolizer/symbols.dart:184:23)
<asynchronous suspension>
#8      Symbolizer._symbolizeCrashWith (package:symbolizer/symbolizer.dart:124:26)
<asynchronous suspension>
#9      Symbolizer._symbolizeCrash (package:symbolizer/symbolizer.dart:180:18)
<asynchronous suspension>
#10     Symbolizer._symbolizeImpl (package:symbolizer/symbolizer.dart:75:20)
<asynchronous suspension>
#11     Symbolizer.symbolize (package:symbolizer/symbolizer.dart:41:20)
<asynchronous suspension>
#12     main (file:///Users/h/.pub-cache/git/dart_ci-510788efa644955fca3baba715ac04200be653ad/github-label-notifier/symbolizer/bin/symbolize.dart:122:18)
<asynchronous suspension>

Either change gsutil to something else (can it be curled, or are there additional auth steps needed?) or change the tool to detect gsutil isn't on the PATH and send to instructions for installing it https://cloud.google.com/storage/docs/gsutil_install#install

cc @mraleph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant