-
-
Notifications
You must be signed in to change notification settings - Fork 740
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
ParseSolution throws IndexOutOfRangeException on empty lines #3143
Comments
@nmbro i am curious.... Does this happen with the same method in Cake.Incubator? It has been a long term goal to bring the methods from Cake.Incubator into Cake properly. |
I can give it a shot; actually I can't seem to find a ParseSolution function in Cake.Incubator? |
nmbro
added a commit
to nmbro/cake
that referenced
this issue
Feb 15, 2021
(cake-buildGH-3143) Don't try to parse empty solution file lines
nmbro
added a commit
to nmbro/cake
that referenced
this issue
Feb 16, 2021
(cake-buildGH-3143) Don't try to parse empty solution file lines
nmbro
added a commit
to nmbro/cake
that referenced
this issue
Feb 16, 2021
augustoproiete
pushed a commit
to nmbro/cake
that referenced
this issue
Feb 17, 2021
(cake-buildGH-3143) Recreate the issue with a test
augustoproiete
added a commit
that referenced
this issue
Feb 17, 2021
GH-3143: Don't try to parse empty solution file lines
🎉 This issue has been resolved in version v1.1.0 🎉 The release is available on: Your GitReleaseManager bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What You Are Seeing?
ParseSolution(ICakeContext context, FilePath solutionPath)
doesn't handle empty lines in the solution file correctly.What is Expected?
It's expected for it to just ignore the empty lines.
What version of Cake are you using?
1.0.0
Are you running on a 32 or 64 bit system?
64 bit, shouldn't matter
What environment are you running on? Windows? Linux? Mac?
Windows
Are you running on a CI Server? If so, which one?
no
How Did You Get This To Happen? (Steps to Reproduce)
Clone https://github.com/nmbro/cake-bug2
Run the
build.ps1
The steps to reproduce is that the solution file has to have a blank line in the NestedProject section:
This causes the
Cake.Common.Solution.SolutionAliases.ParseSolution(ICakeContext context, FilePath solutionPath)
to fail.Output Log
The text was updated successfully, but these errors were encountered: