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

v1.2.0 path splitting issue #100

Open
matthiasotto opened this issue Nov 20, 2024 · 3 comments
Open

v1.2.0 path splitting issue #100

matthiasotto opened this issue Nov 20, 2024 · 3 comments

Comments

@matthiasotto
Copy link

Hi all,
with 1.2.0 we noticed ExtractPO breaking for us (on CI and locally). Downgrading to 1.1.0 resolved the issue.

It is failing on this line: v1.1.0...v1.2.0#diff-278f797f65a94d95062662ff3b79e00916d305d4bf7e41cfbb13224c9d4d2373R87

CI Job output:

Tool 'orchardcorecontrib.poextractor' (version '1.2.0') was successfully installed.

> extractpo C:\git\appName\WebApps\AppName\ProjectFolder C:\git\appName\outputFolder --language "C#" --template "razor"

Unhandled exception. System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string. (Parameter 'startIndex')
   at System.String.ThrowSubstringArgumentOutOfRange(Int32 startIndex, Int32 length)
   at System.String.Substring(Int32 startIndex, Int32 length)
   at OrchardCoreContrib.PoExtractor.Program.Main(String[] args) in G:\Repositories\OrchardCoreContrib.PoExtractor\src\OrchardCoreContrib.PoExtractor\Program.cs:line 87

Thank you for your help,
Matthias

@hishamco
Copy link
Member

hishamco commented Nov 20, 2024

Thanks for reporting this Matthias, I will try to reproduce and fix it ASAP

@hishamco
Copy link
Member

I tried to use the same command from within the code-base there's no error shows up

@hishamco
Copy link
Member

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

2 participants