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

Synchronous waiting using dart:cli waitFor and C API Dart_WaitForEvent is deprecated and disabled by default. This feature will be fully removed in Dart 3.4 release. You can currently still enable it by passing --enable_deprecated_wait_for to the Dart VM. See https://dartbug.com/52121. #248

Open
DabhiNavaghan opened this issue Feb 25, 2024 · 15 comments

Comments

@DabhiNavaghan
Copy link

get init

  1. GetX Pattern (by Kauê)

  2. CLEAN (by Arktekko)
    Which architecture do you want to use? [1] Unhandled exception:
    Synchronous waiting using dart:cli waitFor and C API Dart_WaitForEvent is deprecated and disabled by default. This feature will be fully removed in Dart 3.4 release. You can currently still enable it by passing --enable_deprecated_wait_for to the Dart VM. See https://dartbug.com/52121.
    dart:cli-patch/cli_patch.dart 9:47 _waitForEvent
    dart:cli/wait_for.dart 64:12 _WaitForUtils.waitForEvent
    dart:cli/wait_for.dart 152:19 waitFor
    package:dcli/src/util/wait_for_ex.dart 38:17 waitForEx
    package:dcli/src/functions/echo.dart 34:5 _Echo.echo
    package:dcli/src/functions/echo.dart 24:13 echo
    package:dcli/src/functions/ask.dart 157:7 Ask._ask
    package:dcli/src/functions/ask.dart 113:11 ask
    package:dcli/src/functions/menu.dart 135:22 menu
    package:get_cli/common/menu/menu.dart 20:20 Menu.choose
    package:get_cli/commands/impl/init/flutter/init.dart 21:25 InitCommand.execute
    C:\Users\dabhi\AppData\Local\Pub\Cache\hosted\pub.dev\get_cli-1.8.4\bin\get.dart 18:23 main
    dart:isolate-patch/isolate_patch.dart 295:33 _delayEntrypointInvocation.
    dart:isolate-patch/isolate_patch.dart 184:12 _RawReceivePort._handleMessage
    package:dcli/src/util/wait_for_ex.dart 35:28 waitForEx
    package:dcli/src/functions/echo.dart 34:5 _Echo.echo
    package:dcli/src/functions/echo.dart 24:13 echo
    package:dcli/src/functions/ask.dart 157:7 Ask._ask
    package:dcli/src/functions/ask.dart 113:11 ask
    package:dcli/src/functions/menu.dart 135:22 menu
    package:get_cli/common/menu/menu.dart 20:20 Menu.choose
    package:get_cli/commands/impl/init/flutter/init.dart 21:25 InitCommand.execute
    C:\Users\dabhi\AppData\Local\Pub\Cache\hosted\pub.dev\get_cli-1.8.4\bin\get.dart 18:23 main
    dart:isolate-patch/isolate_patch.dart 295:33 _delayEntrypointInvocation.
    dart:isolate-patch/isolate_patch.dart 184:12 _RawReceivePort._handleMessage

  3. GetX Pattern (by Kauê)

  4. CLEAN (by Arktekko)
    Which architecture do you want to use? [1] Unhandled exception:
    Synchronous waiting using dart:cli waitFor and C API Dart_WaitForEvent is deprecated and disabled by default. This feature will be fully removed in Dart 3.4 release. You can currently still enable it by passing --enable_deprecated_wait_for to the Dart VM. See https://dartbug.com/52121.
    dart:cli-patch/cli_patch.dart 9:47 _waitForEvent
    dart:cli/wait_for.dart 64:12 _WaitForUtils.waitForEvent
    dart:cli/wait_for.dart 152:19 waitFor
    package:dcli/src/util/wait_for_ex.dart 38:17 waitForEx
    package:dcli/src/functions/echo.dart 34:5 _Echo.echo
    package:dcli/src/functions/echo.dart 24:13 echo
    package:dcli/src/functions/ask.dart 157:7 Ask._ask
    package:dcli/src/functions/ask.dart 113:11 ask
    package:dcli/src/functions/menu.dart 135:22 menu
    package:get_cli/common/menu/menu.dart 20:20 Menu.choose
    package:get_cli/commands/impl/init/flutter/init.dart 21:25 InitCommand.execute
    C:\Users\dabhi\AppData\Local\Pub\Cache\hosted\pub.dev\get_cli-1.8.4\bin\get.dart 18:23 main
    dart:isolate-patch/isolate_patch.dart 295:33 _delayEntrypointInvocation.
    dart:isolate-patch/isolate_patch.dart 184:12 _RawReceivePort._handleMessage
    package:dcli/src/util/wait_for_ex.dart 35:28 waitForEx
    package:dcli/src/functions/echo.dart 34:5 _Echo.echo
    package:dcli/src/functions/echo.dart 24:13 echo
    package:dcli/src/functions/ask.dart 157:7 Ask._ask
    package:dcli/src/functions/ask.dart 113:11 ask
    package:dcli/src/functions/menu.dart 135:22 menu
    package:get_cli/common/menu/menu.dart 20:20 Menu.choose
    package:get_cli/commands/impl/init/flutter/init.dart 21:25 InitCommand.execute
    C:\Users\dabhi\AppData\Local\Pub\Cache\hosted\pub.dev\get_cli-1.8.4\bin\get.dart 18:23 main
    dart:isolate-patch/isolate_patch.dart 295:33 _delayEntrypointInvocation.
    dart:isolate-patch/isolate_patch.dart 184:12 _RawReceivePort._handleMessage
    PS E:\MYWORK\MY_FLUTTER_PROJECT\Signature\CODE\signature>

@rosyiid1440
Copy link

i have same problem

@mfebrihariyadi
Copy link

me too

@rosyiid1440
Copy link

me too

for now i just downgrade my flutter

@mfebrihariyadi
Copy link

me too

for now i just downgrade my flutter

downgrade flutter or dart version?
i think this error because new dart

@rosyiid1440
Copy link

downgrade flutter otomaticly downgrade dart too

@mfebrihariyadi
Copy link

downgrade flutter otomaticly downgrade dart too

okay, thanks bro

@fan123199
Copy link

same issue, stay focused about the status of fixing.

@DabhiNavaghan
Copy link
Author

But this is not solution

@mfebrihariyadi
Copy link

But this is not solution

not a solution, get_cli will update
may be in progress

@inyong1
Copy link

inyong1 commented Mar 1, 2024

get init

  1. GetX Pattern (by Kauê)
  2. CLEAN (by Arktekko)
    Which architecture do you want to use? [1] Unhandled exception:
    Synchronous waiting using dart:cli waitFor and C API Dart_WaitForEvent is deprecated and disabled by default. This feature will be fully removed in Dart 3.4 release. You can currently still enable it by passing --enable_deprecated_wait_for to the Dart VM. See https://dartbug.com/52121.
    dart:cli-patch/cli_patch.dart 9:47 _waitForEvent
    dart:cli/wait_for.dart 64:12 _WaitForUtils.waitForEvent
    dart:cli/wait_for.dart 152:19 waitFor
    package:dcli/src/util/wait_for_ex.dart 38:17 waitForEx
    package:dcli/src/functions/echo.dart 34:5 _Echo.echo
    package:dcli/src/functions/echo.dart 24:13 echo
    package:dcli/src/functions/ask.dart 157:7 Ask._ask
    package:dcli/src/functions/ask.dart 113:11 ask
    package:dcli/src/functions/menu.dart 135:22 menu
    package:get_cli/common/menu/menu.dart 20:20 Menu.choose
    package:get_cli/commands/impl/init/flutter/init.dart 21:25 InitCommand.execute
    C:\Users\dabhi\AppData\Local\Pub\Cache\hosted\pub.dev\get_cli-1.8.4\bin\get.dart 18:23 main
    dart:isolate-patch/isolate_patch.dart 295:33 _delayEntrypointInvocation.
    dart:isolate-patch/isolate_patch.dart 184:12 _RawReceivePort._handleMessage
    package:dcli/src/util/wait_for_ex.dart 35:28 waitForEx
    package:dcli/src/functions/echo.dart 34:5 _Echo.echo
    package:dcli/src/functions/echo.dart 24:13 echo
    package:dcli/src/functions/ask.dart 157:7 Ask._ask
    package:dcli/src/functions/ask.dart 113:11 ask
    package:dcli/src/functions/menu.dart 135:22 menu
    package:get_cli/common/menu/menu.dart 20:20 Menu.choose
    package:get_cli/commands/impl/init/flutter/init.dart 21:25 InitCommand.execute
    C:\Users\dabhi\AppData\Local\Pub\Cache\hosted\pub.dev\get_cli-1.8.4\bin\get.dart 18:23 main
    dart:isolate-patch/isolate_patch.dart 295:33 _delayEntrypointInvocation.
    dart:isolate-patch/isolate_patch.dart 184:12 _RawReceivePort._handleMessage
  3. GetX Pattern (by Kauê)
  4. CLEAN (by Arktekko)
    Which architecture do you want to use? [1] Unhandled exception:
    Synchronous waiting using dart:cli waitFor and C API Dart_WaitForEvent is deprecated and disabled by default. This feature will be fully removed in Dart 3.4 release. You can currently still enable it by passing --enable_deprecated_wait_for to the Dart VM. See https://dartbug.com/52121.
    dart:cli-patch/cli_patch.dart 9:47 _waitForEvent
    dart:cli/wait_for.dart 64:12 _WaitForUtils.waitForEvent
    dart:cli/wait_for.dart 152:19 waitFor
    package:dcli/src/util/wait_for_ex.dart 38:17 waitForEx
    package:dcli/src/functions/echo.dart 34:5 _Echo.echo
    package:dcli/src/functions/echo.dart 24:13 echo
    package:dcli/src/functions/ask.dart 157:7 Ask._ask
    package:dcli/src/functions/ask.dart 113:11 ask
    package:dcli/src/functions/menu.dart 135:22 menu
    package:get_cli/common/menu/menu.dart 20:20 Menu.choose
    package:get_cli/commands/impl/init/flutter/init.dart 21:25 InitCommand.execute
    C:\Users\dabhi\AppData\Local\Pub\Cache\hosted\pub.dev\get_cli-1.8.4\bin\get.dart 18:23 main
    dart:isolate-patch/isolate_patch.dart 295:33 _delayEntrypointInvocation.
    dart:isolate-patch/isolate_patch.dart 184:12 _RawReceivePort._handleMessage
    package:dcli/src/util/wait_for_ex.dart 35:28 waitForEx
    package:dcli/src/functions/echo.dart 34:5 _Echo.echo
    package:dcli/src/functions/echo.dart 24:13 echo
    package:dcli/src/functions/ask.dart 157:7 Ask._ask
    package:dcli/src/functions/ask.dart 113:11 ask
    package:dcli/src/functions/menu.dart 135:22 menu
    package:get_cli/common/menu/menu.dart 20:20 Menu.choose
    package:get_cli/commands/impl/init/flutter/init.dart 21:25 InitCommand.execute
    C:\Users\dabhi\AppData\Local\Pub\Cache\hosted\pub.dev\get_cli-1.8.4\bin\get.dart 18:23 main
    dart:isolate-patch/isolate_patch.dart 295:33 _delayEntrypointInvocation.
    dart:isolate-patch/isolate_patch.dart 184:12 _RawReceivePort._handleMessage
    PS E:\MYWORK\MY_FLUTTER_PROJECT\Signature\CODE\signature>

This can be used as a temporary solution
flutter pub global activate --source=git https://github.com/inyong1/get_cli.git

@GdevSP
Copy link

GdevSP commented Mar 1, 2024

get init

  1. GetX Pattern (by Kauê)
  2. CLEAN (by Arktekko)
    Which architecture do you want to use? [1] Unhandled exception:
    Synchronous waiting using dart:cli waitFor and C API Dart_WaitForEvent is deprecated and disabled by default. This feature will be fully removed in Dart 3.4 release. You can currently still enable it by passing --enable_deprecated_wait_for to the Dart VM. See https://dartbug.com/52121.
    dart:cli-patch/cli_patch.dart 9:47 _waitForEvent
    dart:cli/wait_for.dart 64:12 _WaitForUtils.waitForEvent
    dart:cli/wait_for.dart 152:19 waitFor
    package:dcli/src/util/wait_for_ex.dart 38:17 waitForEx
    package:dcli/src/functions/echo.dart 34:5 _Echo.echo
    package:dcli/src/functions/echo.dart 24:13 echo
    package:dcli/src/functions/ask.dart 157:7 Ask._ask
    package:dcli/src/functions/ask.dart 113:11 ask
    package:dcli/src/functions/menu.dart 135:22 menu
    package:get_cli/common/menu/menu.dart 20:20 Menu.choose
    package:get_cli/commands/impl/init/flutter/init.dart 21:25 InitCommand.execute
    C:\Users\dabhi\AppData\Local\Pub\Cache\hosted\pub.dev\get_cli-1.8.4\bin\get.dart 18:23 main
    dart:isolate-patch/isolate_patch.dart 295:33 _delayEntrypointInvocation.
    dart:isolate-patch/isolate_patch.dart 184:12 _RawReceivePort._handleMessage
    package:dcli/src/util/wait_for_ex.dart 35:28 waitForEx
    package:dcli/src/functions/echo.dart 34:5 _Echo.echo
    package:dcli/src/functions/echo.dart 24:13 echo
    package:dcli/src/functions/ask.dart 157:7 Ask._ask
    package:dcli/src/functions/ask.dart 113:11 ask
    package:dcli/src/functions/menu.dart 135:22 menu
    package:get_cli/common/menu/menu.dart 20:20 Menu.choose
    package:get_cli/commands/impl/init/flutter/init.dart 21:25 InitCommand.execute
    C:\Users\dabhi\AppData\Local\Pub\Cache\hosted\pub.dev\get_cli-1.8.4\bin\get.dart 18:23 main
    dart:isolate-patch/isolate_patch.dart 295:33 _delayEntrypointInvocation.
    dart:isolate-patch/isolate_patch.dart 184:12 _RawReceivePort._handleMessage
  3. GetX Pattern (by Kauê)
  4. CLEAN (by Arktekko)
    Which architecture do you want to use? [1] Unhandled exception:
    Synchronous waiting using dart:cli waitFor and C API Dart_WaitForEvent is deprecated and disabled by default. This feature will be fully removed in Dart 3.4 release. You can currently still enable it by passing --enable_deprecated_wait_for to the Dart VM. See https://dartbug.com/52121.
    dart:cli-patch/cli_patch.dart 9:47 _waitForEvent
    dart:cli/wait_for.dart 64:12 _WaitForUtils.waitForEvent
    dart:cli/wait_for.dart 152:19 waitFor
    package:dcli/src/util/wait_for_ex.dart 38:17 waitForEx
    package:dcli/src/functions/echo.dart 34:5 _Echo.echo
    package:dcli/src/functions/echo.dart 24:13 echo
    package:dcli/src/functions/ask.dart 157:7 Ask._ask
    package:dcli/src/functions/ask.dart 113:11 ask
    package:dcli/src/functions/menu.dart 135:22 menu
    package:get_cli/common/menu/menu.dart 20:20 Menu.choose
    package:get_cli/commands/impl/init/flutter/init.dart 21:25 InitCommand.execute
    C:\Users\dabhi\AppData\Local\Pub\Cache\hosted\pub.dev\get_cli-1.8.4\bin\get.dart 18:23 main
    dart:isolate-patch/isolate_patch.dart 295:33 _delayEntrypointInvocation.
    dart:isolate-patch/isolate_patch.dart 184:12 _RawReceivePort._handleMessage
    package:dcli/src/util/wait_for_ex.dart 35:28 waitForEx
    package:dcli/src/functions/echo.dart 34:5 _Echo.echo
    package:dcli/src/functions/echo.dart 24:13 echo
    package:dcli/src/functions/ask.dart 157:7 Ask._ask
    package:dcli/src/functions/ask.dart 113:11 ask
    package:dcli/src/functions/menu.dart 135:22 menu
    package:get_cli/common/menu/menu.dart 20:20 Menu.choose
    package:get_cli/commands/impl/init/flutter/init.dart 21:25 InitCommand.execute
    C:\Users\dabhi\AppData\Local\Pub\Cache\hosted\pub.dev\get_cli-1.8.4\bin\get.dart 18:23 main
    dart:isolate-patch/isolate_patch.dart 295:33 _delayEntrypointInvocation.
    dart:isolate-patch/isolate_patch.dart 184:12 _RawReceivePort._handleMessage
    PS E:\MYWORK\MY_FLUTTER_PROJECT\Signature\CODE\signature>

This can be used as a temporary solution flutter pub global activate --source=git https://github.com/inyong1/get_cli.git

Thanks! 🧡

@SadmanShahriar75
Copy link

same problem how to fix

@iamrutudhvaj
Copy link

If you are using GetX-Pattern then run this command in your terminal

dart pub global activate -sgit https://github.com/iamrutudhvaj/get_cli.git --git-ref GetX-Pattern

If you are using Clean-Pattern then run this command in your terminal

dart pub global activate -sgit https://github.com/iamrutudhvaj/get_cli.git --git-ref Clean-Pattern

it is temporary solution!

@SadmanShahriar75
Copy link

Synchronous waiting using dart:cli waitFor and C API Dart_WaitForEvent is deprecated and disabled by default. This feature will be fully removed in Dart 3.4 release. You can currently still enable it by passing --enable_deprecated_wait_for to the Dart VM. See https://dartbug.com/52121.

@rajamondal99
Copy link

I also faced the same problem.

The solution worked for me: flutter pub global activate --source=git https://github.com/inyong1/get_cli.git

Thank you @inyong1

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

9 participants