damondouglas commented on code in PR #23378: URL: https://github.com/apache/beam/pull/23378#discussion_r986255928
########## playground/frontend/README.md: ########## @@ -21,27 +21,24 @@ ## About -Beam Playground is an interactive environment to try out Beam transforms and examples. The vision for the Playground is to be a web application where users can try out Beam without having to install/initialize a Beam environment. +Beam Playground is an interactive environment to try out Beam transforms and examples. +The vision for the Playground is to be a web application where users can try out Beam +without having to install/initialize a Beam environment. ## Getting Started Running, debugging, and testing all require this first step that fetches -dependencies and generates code: +dependencies and generates code. Run this in the Beam root: ```bash -cd playground_components -flutter pub get -flutter pub run build_runner build -cd .. -flutter pub get -flutter pub run build_runner build +$ ./gradlew :playground:frontend:configure Review Comment: I tried this command in two different environments and received two different errors. In the first environment, I cloned and checked out the branch in the Google Cloud shell. This led to several incremental retries with the message showing below. ``` Attempting `./gradlew :playground:frontend:configure` leads to `pub get failed (server unavailable) -- attempting retry 7 in 64 seconds...` ``` However, when I navigated to the playground/frontend directory and ran `pub get`, I didn't have any problems except for this message: ``` Git error. Command: `git clone --mirror https://github.com/BertrandBev/code_field.git /home/<user>/.pub-cache/git/cache/code_field-4fdb625753a3dad07e371ca34045120ddd9a3f88 stderr: Cloning into bare repository '/home/<user>/.pub-cache/git/cache/code_field-4fdb625753a3dad07e371ca34045120ddd9a3f88'... ``` So I attempted a second environment which was on my own linux machine. Running the command in this context, yielded the following error. ``` FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':playground:frontend:flutterClean'. > A problem occurred starting process 'command 'flutter'' ``` I ran the command again as `./gradlew :playground:frontend:configure --stacktrace` and it yielded: ``` java.io.IOException: Cannot run program "flutter" (in directory "/playground/frontend"): error=2, No such file or directory at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25) ... 6 more Caused by: java.io.IOException: error=2, No such file or directory ``` However, running `flutter --version`, I see: ``` Flutter 3.3.2 • channel stable • https://github.com/flutter/flutter.git Framework • revision e3c29ec00c (3 weeks ago) • 2022-09-14 08:46:55 -0500 Engine • revision a4ff2c53d8 Tools • Dart 2.18.1 • DevTools 2.15.0 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
