-
Notifications
You must be signed in to change notification settings - Fork 15
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
opt_type_constraint_case getting stuck #2
Comments
Do you have a sample? |
Here is a sample - I am having the same issue.
I have taken your code and basically merged certain sections with my own - I am first converting .ps1 into raw AST, then calling optimizer in same way as yourself - I am getting infinite messages like below; '[02-17-2023 11:52:51] [DEBUG] Fix typename case from 'string' to 'String'' This happens on a few files and I'm not sure why but it is getting stuck in a loop - I am trying to debug as well. |
There was a problem with fixed with 67e713c |
You are a boss - really, fixing a bug within 4 hours of having a sample is amazing (especially since this was opened a year ago lol), props to you! I am using your tool in a combined ML workflow to analyze suspicious PowerShell files with both text classification and DNN learning - thank you very much for such an interesting approach to AST simplification/analysis. (I confirmed that your patch mitigates the issue I was experiencing and this bug can probably be closed) |
the function opt_type_constraint_case(ast) is getting stuck at "Fix typename case from 'string' to 'String'"
It looks like the Element isn't getting replaced properly
The text was updated successfully, but these errors were encountered: