-
Notifications
You must be signed in to change notification settings - Fork 511
Syntax highlighter crasehes after typing subexpression within Write-Host cmd #1229
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
I mean, I know that I should avoid Write-host, but I didn't think it would crash VSCode Syntax Highlighter. |
What exactly do you mean by crashing? Does the language server actually crash? If so, can you please provide the log files for that session (see https://github.com/PowerShell/vscode-powershell#reporting-problems for instructions on attaching a zip of the log files). Or do you see that syntax colorization is messed up after this command? |
If you have an error trace for a crash like this, that would very helpful |
Hi guys! I emailed the error logs in as requested, and by crashing I mean
that red-squiggles appear under everything and that syntax highlighting no
longer works. I've had a few repros since then, and it looks like it
happens a lot when dealing with here-strings of multi line hashtables.
…On Sun, Mar 25, 2018 at 10:27 AM, Tyler James Leonhardt < ***@***.***> wrote:
I think I understand what @1RedOne <https://github.com/1RedOne> is saying
and I think it's a dupe of #1232
<#1232>.
My guess is syntax highlighter is PSSA results (aka squiggles 👍 ).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1229 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABMJilCvwzo0FzISQo_DFhpcjc6oIrsdks5th6lFgaJpZM4Ssn-W>
.
|
Hmm I don't think I got the email. You sent it to: |
Alternatively you can upload the zip here so more eyes can debug 😄 lots of awesome non-Microsoft maintainers 😄 |
I don't think I ever got your email... :( The squiggles are due to PSScriptAnalyzer and if you're receiving those when you shouldn't be, it's better to open an issue here: https://github.com/PowerShell/PSScriptAnalyzer If it's related to general slowness of the extension not updating squiggles that's tracked with #1232 And if syntax highlighting is breaking for some reason, you'll want to open an issue on: I'm going to close this as both a mix of a dupe of 1232 and an external issue. If you see otherwise, let me know and I'm more than happy to reopen :) |
Issue Description
Syntax highlighter reports everything as error when typing a $SubExpression.
Attached Logs
sent via email
Follow the instructions in the README about
capturing and sending logs.
Environment Information
Visual Studio Code
PowerShell Information
Visual Studio Code Extensions
Visual Studio Code Extensions(Click to Expand)
The text was updated successfully, but these errors were encountered: