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

[BUG] RangeError (start): Invalid value: Not in inclusive range 0..57: -1 #129

Closed
JagandeepBrar opened this issue May 12, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@JagandeepBrar
Copy link

ℹ️ Info

Version: v3.6.1

💬 Description

When trying to build an MSIX using a custom output path set, the build fails with the following error:

running "flutter build windows"...     65.1s
building msix files...                 4.5s
packing msix files...                  2.6s
Unhandled exception:
RangeError (start): Invalid value: Not in inclusive range 0..57: -1
#0      RangeError.checkValidRange (dart:core/errors.dart:351:7)
#1      _StringBase.substring (dart:core-patch/string_patch.dart:400:27)
#2      Msix._msixOutputPath (package:msix/msix.dart:91:26)
#3      Msix._printMsixOutputLocation (package:msix/msix.dart:141:42)
#4      Msix.create (package:msix/msix.dart:59:5)
<asynchronous suspension>
#5      main (file:///C:/tools/flutter/.pub-cache/hosted/pub.dartlang.org/msix-3.6.1/bin/create.dart:4:3)

If --output-path is not set, the build completes successfully. v3.5.1 works as expected, v3.6.0 is the first version where this starts to occur.

Note that the actual MSIX does get packaged and outputted to the right location, but it throws trying to print the path to the MSIX file. Since it returns an error, it causes CI/CD scripts to fail which is causing it to be a breaking change for us.

@YehudaKremer
Copy link
Owner

Hello @JagandeepBrar

I Publish new version (3.6.2) with a fix for that,
please check if it solves this problem for you.

Thank you for reporting this bug! 👍

@YehudaKremer YehudaKremer reopened this May 12, 2022
@YehudaKremer YehudaKremer added the bug Something isn't working label May 12, 2022
@JagandeepBrar
Copy link
Author

JagandeepBrar commented May 16, 2022

Sorry for the delay but I can confirm that 3.6.2 fixes the issue, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants