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

ConvertTo-DscObject hangs #16

Open
SebastianGoers opened this issue Apr 15, 2021 · 2 comments
Open

ConvertTo-DscObject hangs #16

SebastianGoers opened this issue Apr 15, 2021 · 2 comments

Comments

@SebastianGoers
Copy link

SebastianGoers commented Apr 15, 2021

Using ConvertTo-DscObject with PS 5.1 hangs due to an infinite loop in the code. I believe the issue results from

while ($parsedData[$newIndexPosition].Type -ne 'Keyword')
as in the while statement $i gets incremented which is also used in the for loop
for ($i = 0; $i -lt $parsedData.Count; $i++)
and thus the for-loop never terminates. Also, there seems to be a change in the actual behavior in PS. It is documented here: #15.

@PrzemyslawKlys
Copy link
Contributor

@SebastianGoers it seems this is no longer a problem and your problem is solved?

@mpiederiet
Copy link
Contributor

@PrzemyslawKlys I would say "yes it looks to be solved" as the referenced PR did include code to end the infinite loop. Close this one and when my PR is merged there will be no more open issues for this repo :-)

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

3 participants