Skip to content
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

css language server error on suggest #66637

Closed
RMacfarlane opened this issue Jan 17, 2019 · 2 comments
Closed

css language server error on suggest #66637

RMacfarlane opened this issue Jan 17, 2019 · 2 comments
Assignees
Labels
css-less-scss Issues and items concerning CSS,Less,SCSS styling *duplicate Issue identified as a duplicate of another issue(s)

Comments

@RMacfarlane
Copy link
Contributor

Issue Type: Bug

I'm not sure of the exact repro steps, I saw this while typing in a css file when completion items were triggered. I'll provide better steps if I see it again.

Error - 4:30:48 PM] Unhandled exception: Cannot read property 'getChildren' of undefined
TypeError: Cannot read property 'getChildren' of undefined
    at er (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain.js:1:581664)
    at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain.js:1:586291
    at e.visitRuleSet (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain.js:1:586605)
    at e.visitNode (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain.js:1:583785)
    at t.e.accept (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain.js:1:111597)
    at t.e.accept (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain.js:1:111669)
    at t.e.acceptVisitor (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain.js:1:111724)
    at Function.e.entries (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain.js:1:582413)
    at e.doValidation (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain.js:1:591888)
    at then.t (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain.js:1:70477)

VS Code version: Code - Insiders 1.31.0-insider (d3024ec, 2019-01-16T07:51:38.794Z)
OS version: Darwin x64 18.0.0

@vSanjo
Copy link

vSanjo commented Jan 17, 2019

Having the same issue. I can replicate it below.

Open an empty .scss file, and drop the following in.

.test {
}

Then I can type b, tab out to border with the autocompletes showing, and it'll error.

[Error - 10:02:56 am] Unhandled exception: Cannot read property 'getChildren' of undefined
TypeError: Cannot read property 'getChildren' of undefined
    at er (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain.js:1:581664)
    at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain.js:1:586291
    at e.visitRuleSet (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain.js:1:586605)
    at e.visitNode (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain.js:1:583785)
    at t.e.accept (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain.js:1:111597)
    at t.e.accept (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain.js:1:111669)
    at t.e.acceptVisitor (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain.js:1:111724)
    at Function.e.entries (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain.js:1:582413)
    at e.doValidation (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain.js:1:591888)
    at then.t (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/extensions/css-language-features/server/dist/cssServerMain.js:1:70477)

VS Code Version: Version 1.31.0-insider (1.31.0-insider) (d3024ec, 2019-01-16T07:51:38.794Z)
OS version: macOS High Sierra - 10.13.6

@octref octref added bug Issue identified by VS Code Team member as probable bug css-less-scss Issues and items concerning CSS,Less,SCSS styling labels Jan 17, 2019
@octref octref added this to the December/January 2019 milestone Jan 17, 2019
@octref
Copy link
Contributor

octref commented Jan 17, 2019

Duplicate of #66519. I'll pull in the latest css language service.

@octref octref closed this as completed Jan 17, 2019
@octref octref added *duplicate Issue identified as a duplicate of another issue(s) and removed bug Issue identified by VS Code Team member as probable bug labels Jan 17, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
css-less-scss Issues and items concerning CSS,Less,SCSS styling *duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

3 participants