-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
Inside <style> blocks in html files: Error while computing completions for; Cannot read property 'label' of undefined #47429
Comments
(Experimental duplicate detection) |
This issue also occurs on version Version 1.22.1 (950b8b0). I think it’s a race condition that happens when I delete text VS Code is trying to provide a suggestion with. However, I don’t have reliable repro steps. It appears to happen frequently when editing CSS embedded in a |
@fuzzykiller same here, I was editing CSS in a |
@ramya-rao-a htmlServerMain.js:323 is Are you sure about https://github.com/Microsoft/vscode/blob/master/extensions/css-language-features/server/src/cssServerMain.ts#L198? What's wrong there? |
Looks like #47384 |
@aeschli thanks let us know if you need any help |
Sorry about that @aeschli, yes this is coming from I'll add the null/undefined check, but I am curious as to what conditions lead to this error as I cannot backtrack and see any case where the completion items is not an array in a completion list. @joshunger Can you repro this consistently? If yes, then can you provide sample code and steps? |
@ramya-rao-a no |
@ramya-rao-a Just spam Ctrl+Space and Backspace (or Ctrl+Backspace because it's easier to keep pressing Ctrl) inside a It does not happen in CSS files, only in HTML files. |
Thanks @fuzzykiller Steps to verify fix:
|
Thanks 👏 @ramya-rao-a |
Hi, Inside an inline #test {
border-
} then escape the suggestions, and continue typing... #test {
border-b
} I get the error. It also happens during this scenario:
This seems to be consistent only with the first letter of the second part of a hyphenated property. For example:
BUT if I start off with a letter that is post-first letter, i.e.: The error:
My info: VS Code version: Code 1.22.1 (950b8b0, 2018-04-06T00:21:13.607Z) System Info
Hope that made sense; please let me know! |
@dmbdesignpdx You are on stable VS Code version 1.22.1 The fix is currently available in the Insiders build of 1.23. The fix will also be shipped in stable VS Code version 1.22.2 in a few days |
Issue Type: Bug
VS Code version: Code - Insiders 1.23.0-insider (fc389d2, 2018-04-05T05:10:30.542Z)
OS version: Darwin x64 17.4.0
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: enabled
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Extensions (10)
I don't have repro steps but if you can tell me context I can estimate the issue and repro steps.
The text was updated successfully, but these errors were encountered: