-
Notifications
You must be signed in to change notification settings - Fork 490
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
Visual Studio Code PowerShell Extension crashes when IntelliSense about to pop out on passing param to custom function #1513
Comments
Thanks for opening an issue @victorwoo. This looks like a crash in the URI class in the CodeLens reference provider. The workaround is to disable CodeLens: #1174 (comment) I suspect the non-ASCII characters are causing the crash (it's occurring when the |
Yes, the #1174 (comment) workaround works. Thanks! Further information:
|
I can't reproduce this on Ubuntu 18.04 LTS. It may be macOS specific. |
I just tried this on my Mac (OS 10.13.6, PS 6.1.0): PS| rob@Desktop> [uri]::new('file:///Users/vichamp/脚本/Reduce-Directory/test.ps1').AbsoluteUri
file:///Users/vichamp/%E8%84%9A%E6%9C%AC/Reduce-Directory/test.ps1/Users/vichamp/%E8%84%9A%E6%9C%AC/Reduce-Directory/test.ps1 |
@victorwoo it looks like this might have been an issue in .NET Core 2.0 which was what we used in PowerShell Core 6.0.4. Can you upgrade to PowerShell Core 6.1 and try again? |
PS Core 6.1:
PS Core 6.0.4:
Note the extra |
On macOS 10.13.6 (17G2307) PS Core 6.0.4: PS /Users/vichamp> [Uri]::new("/Users/vichamp/脚本/Reduce-Directory").AbsoluteUri file://file:/Users/vichamp/%E8%84%9A%E6%9C%AC/Reduce-Directory
PS /Users/vichamp> [uri]::new('file:///Users/vichamp/脚本/Reduce-Directory/test.ps1').AbsoluteUri
# EMPTY PS Core 6.1.0: PS /Users/vichamp> [Uri]::new("/Users/vichamp/脚本/Reduce-Directory").AbsoluteUri
file:///Users/vichamp/%E8%84%9A%E6%9C%AC/Reduce-Directory/Users/vichamp/%E8%84%9A%E6%9C%AC/Reduce-Directory I think the result on PS Core 6.1 still error. |
Yes, try |
On macOS 10.13.6 (17G2307) with PS Core 6.1.0: PS /Users/vichamp> [Uri]::new("/Users/vichamp/脚本/Reduce-Directory").LocalPath
/Users/vichamp/脚本/Reduce-Directory It seems OK. |
Update to PowerShell Extension 1.9.0 and this issue disappears. |
System Details
Issue Description
PowerShell extension for Visual Studio Code crashes when InteliSense about to parse
mytest
custom function.Attached Logs
logs.zip
The text was updated successfully, but these errors were encountered: