-
Notifications
You must be signed in to change notification settings - Fork 393
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
Prevent Process conversion to Get-Process #1514
Comments
@PrzemyslawKlys could you provide an example script in which this is happening? |
@PrzemyslawKlys it would also be great to know the output of: |
Right now I have only latest. I used to have multiple 0.18.x.
Usually, I have code like this: function Test-Me {
[cmdletBinding()]
param(
)
Begin {
}
Process {
}
End {
}
} Having said that - it doesn't just automatically happen. It will randomly insert Get-Process instead of Process - I am not sure when that happens, and under what conditions. I just noticed it couple of times and I can't reproduce it on demand. |
Closing due to inactivity |
I think this is actually a duplicate of #1402 and the learnings from that other issue is that it only happens when there is invalid syntax (both at either parse or runtime). What probably happens as well is that this allows time for a rogue entry to make its way into the cache and once it's in the cache it will always stay there until the next restart of the integrated terminal. |
This issue has been marked as duplicate and has not had any activity for 1 day. It will be closed for housekeeping purposes. |
This is a bit of non-standard request - I often get into a situation where for some reason Process gets converted to Get-Process and breaks a function (it should be Begin / Process / End) that I notice way too late. I am not sure when it happens but with formatting on save or just formatting on demand it does happen and can cause issues. Would it be possible to make a hard exception for Process where it doesn't get converted from alias to function name?
The text was updated successfully, but these errors were encountered: