-
Notifications
You must be signed in to change notification settings - Fork 510
Error/warning detection is randomly broken #1232
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
Comments
It could be that I write code that's not too conventional and too prone to mess up IntelliSense, I really dunno. I'm a PowerShell noob, this is my first shot at it. Maybe just writing invalid code in rudehash.ps1, then fixing it will trigger this more easily. To me it happens every few minutes, which gets really irritating after a while. |
Totally understandable and thank you so much for opening this! I couldn't repro what you are seeing on my mac but let me try a few other VMs and get back to you. |
@tylerl0706 and I talked, this might have something to do with the size of the flat .ps1 you're working with on you project. But it's certainly not the biggest .ps1 I've ever seen (here's what PowerShellGet looked like before a recent refactor), so it's reasonable that we should work better with larger files like that. |
But it also happens with my 2 line example... |
I've been speaking with @SeeminglyScience about this and he had some thoughts on why this was happening. Even for small files. It's entirely possible that the bigger the file, the more common this issue is which is why "large file" is quick to blame. I'll continue investigating. |
I C, that might very well be the case indeed. Thanks a lot for the quick responses, really appreciate it. |
This the same issue? |
Definitely almost identical, tho I don't think closing and reopening the file ever solved this issue for me. Only a full Code restart. |
This is one of my main focuses next week. I'll keep you updated. |
I can repro on PS Core 6.0.2 but not with Windows PS 5.1. |
I'm going to clone RudeHash and try to repro this on a couple OS's. |
Thanks a lot, really appreciate it! |
Hey everyone, I'm having a super hard time repro'ing this. I won't stop trying, but if you DO run into this issue, please grab the logs and drop them here so I can take a look. It'll be really helpful. Thanks! |
Exactly what kind of log? |
We have some instructions here: It also includes turning on Verbose logs that is crucial. Diagnostic would be even better if it doesn't affect performance. |
Closing this issue as inactive, will re-open if this is still an issue. |
Repro:
$test = @{ "item1" = @("foo"); "item1" = @("bar") }
then ctrl+swrite-host "hello"
and save, then the warning and error should appear.$test = @{ "item1" = @("foo"); "item2" = @("bar") }
, now error is displayed after the closing braceHappens to me all the time on at least 3 different computers (2 desktops, 1 laptop; 1 in domain, 2 in workgroup).
Windows 10 1709 16299.309
VS Code 1.21.1
PowerShell 6.0.2
PowerShell Extension 1.6.0
Basically any version that's been released since January, it happens on all of them, constantly.
The text was updated successfully, but these errors were encountered: