nxrocks icon indicating copy to clipboard operation
nxrocks copied to clipboard

[Bug] ERROR: Something went wrong in @nrwl/run-commands - Command failed: flutter install

Open nerddigestive opened this issue 3 years ago • 1 comments

Plugin Name

@nxrocks/nx-flutter

Plugin Version

v3.0.2

Nx Version

13.9.6

Expected Behaviour

Commands such as nx run myapp:build run (as when run manually) and produce output.

Actual Behaviour

All flutter commands run using run-commands throw the following error, with no further output:

ERROR: Something went wrong in @nrwl/run-commands - Command failed: flutter install

When the verbose flag is provided, we get:

Error: ERROR: Something went wrong in @nrwl/run-commands - Command failed: flutter doctor
    at /home/edhill/Code/brightsign/brightsign/node_modules/@nrwl/workspace/src/executors/run-commands/run-commands.impl.js:54:19
    at Generator.throw (<anonymous>)
    at rejected (/home/edhill/Code/brightsign/brightsign/node_modules/tslib/tslib.js:115:69)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

All of these commands run perfectly fine when run by hand in the app directory. All of these commands also run fine when wrapped like echo $(flutter install).

Steps to reproduce the behaviour

  1. With flutter installed and working correctly system-wide
  2. Create a new NX workspace.
  3. Install the nx-flutter package.
  4. Create a new flutter app (I have been testing with Android and iOS primarily)
  5. Attempt to run nx run myapp:xxxx

nerddigestive avatar Apr 05 '22 15:04 nerddigestive

Hi @nerddigestive

Thanks for using the plugin and for reporting the issue. Unfortunately i cannot reproduce it... Can you share a repro project ?

Thanks

tinesoft avatar Jul 29 '22 09:07 tinesoft

Closing for now, feel free to re-open (with repo project if possible) if the issue still occurs

tinesoft avatar Oct 23 '22 09:10 tinesoft