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

dart pub global activate create wrong bat file on windows #3270

Closed
fiurthorn opened this issue Jul 20, 2021 · 2 comments
Closed

dart pub global activate create wrong bat file on windows #3270

fiurthorn opened this issue Jul 20, 2021 · 2 comments
Labels
closed-duplicate Closed in favor of an existing report

Comments

@fiurthorn
Copy link

  • Dart SDK Version: Dart SDK version: 2.13.4 (stable) (Wed Jun 23 13:08:41 2021 +0200) on "windows_x64"

using plain flutter installation, results into the output

3dXKmDSuB7a6Q0mc+SjZiLPo1JxfxaN5j+fRl/Z7uZw=
> Der Befehl "pub" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

adding the full sdk to the path, results into run the command twice:

OOx7svB2A9wfct77sTdaGxkvY6kIuMrJ5IWbLdE4u90=
i9oYXprfbb1hUt6U+ptDO7i6eRTyTHRxXEOTZgSFBus=

I marked the error line with a >.

@echo off
rem This file was created by pub v2.13.4.
rem Package: encrypt
rem Version: 5.0.0
rem Executable: secure-random
rem Script: secure-random
if exist "C:\Users\s.weinmann\AppData\Local\Pub\Cache\global_packages\encrypt\bin\secure-random.dart-2.13.4.snapshot" (
  dart "C:\Users\s.weinmann\AppData\Local\Pub\Cache\global_packages\encrypt\bin\secure-random.dart-2.13.4.snapshot" %*
  rem The VM exits with code 253 if the snapshot version is out-of-date.
  rem If it is, we need to delete it and run "pub global" manually.
  if not errorlevel 253 (
    goto error
  )
>  pub global run encrypt:secure-random %*
) else (
  pub global run encrypt:secure-random %*
)
goto eof
:error
exit /b %errorlevel%
:eof
@mit-mit
Copy link
Member

mit-mit commented Jul 20, 2021

cc @jonasfj

@jonasfj jonasfj transferred this issue from dart-lang/sdk Jan 3, 2022
@sigurdm
Copy link
Contributor

sigurdm commented Jan 4, 2022

I believe this is a duplicate of: #2934 that has been fixed in #3055. Try upgrading to dart 2.15.

Closing as duplicate.

@jonasfj jonasfj added the closed-duplicate Closed in favor of an existing report label Jan 5, 2022
@jonasfj jonasfj closed this as completed Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report
Projects
None yet
Development

No branches or pull requests

4 participants