Skip to content

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

Closed
1RedOne opened this issue Mar 15, 2018 · 8 comments
Closed
Labels

Comments

@1RedOne
Copy link

1RedOne commented Mar 15, 2018

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

Name Version
Operating System Windows_NT x64 10.0.14393
VSCode 1.20.1
PowerShell Extension Version 1.6.0

PowerShell Information

Name Value
PSVersion 5.1.14393.2068
PSEdition Desktop
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.14393.2068
BuildVersion 10.0.14393.2068
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
bracket-pair-colorizer CoenraadS 1.0.20
git-indicators lamartire 2.1.1
gitlens eamodio 8.1.1
hopscotch idleberg 0.2.2
nord-visual-studio-code arcticicestudio 0.6.0
PowerShell ms-vscode 1.6.0
theme-glacier Kal 0.0.1
@1RedOne
Copy link
Author

1RedOne commented Mar 15, 2018

I mean, I know that I should avoid Write-host, but I didn't think it would crash VSCode Syntax Highlighter.

@rkeithhill
Copy link
Contributor

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?

@rjmholt
Copy link
Contributor

rjmholt commented Mar 21, 2018

If you have an error trace for a crash like this, that would very helpful

@TylerLeonhardt
Copy link
Member

I think I understand what @1RedOne is saying and I think it's a dupe of #1232.

My guess is syntax highlighter is PSSA results (aka squiggles 👍 ).

@1RedOne
Copy link
Author

1RedOne commented Mar 26, 2018 via email

@TylerLeonhardt
Copy link
Member

Hmm I don't think I got the email. You sent it to: [email protected]?

@TylerLeonhardt
Copy link
Member

Alternatively you can upload the zip here so more eyes can debug 😄 lots of awesome non-Microsoft maintainers 😄

@TylerLeonhardt
Copy link
Member

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:
https://github.com/powershell/editorsyntax

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants