-
Notifications
You must be signed in to change notification settings - Fork 499
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
Console crash when pasting parameter #1675
Comments
I can confirm the same behaviour with PS Core 6.1.0 and 6.1.1. PS Extension version: 1.10.2 |
Thanks for submitting this. I have a fix I'll be submitting shortly. It might be a few weeks until there is a release though. In the meantime, if you don't use an untitled file then you shouldn't run into this bug. |
This happens because the ScriptFile ctor does not initialize all its public props. I added initialization for the other public props except for the ScriptAst prop. I don't see an empty Ast. Perhaps null is OK for this prop? This address vscode-powershell bug PowerShell/vscode-powershell#1675 Also, for the 2.0.0 branch, we should see if we can use Array.Empty<>() for initialization. It isn't availble to net45x. :-(
Thanks Keith., |
Yeah, it is not the name per-se, it is that it is an "in-memory" document with no file backing it. |
I believe this bug to be fixed by the PR referenced above. The fix should be available in 1.11.0. Should we wait for confirmation of the fix before closing this? |
I'm closing this since we believe it to be fixed. @ili101 you can re-open it if you still see this bug with 1.11.0. |
Issue Type: Bug
Test-Params -Param1
)(if it's not crashing the first time repeat with "Param2")
Extension version: 1.10.2
VS Code version: Code 1.30.1 (dea8705087adb1b5e5ae1d9123278e178656186a, 2018-12-18T18:12:07.165Z)
OS version: Windows_NT x64 10.0.17134
EditorServices.log
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: