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

Error in VSCode output pane when trying to get autocompletions #124

Closed
bakerac4 opened this issue Apr 1, 2021 · 1 comment · Fixed by #131
Closed

Error in VSCode output pane when trying to get autocompletions #124

bakerac4 opened this issue Apr 1, 2021 · 1 comment · Fixed by #131
Labels
bug Something isn't working

Comments

@bakerac4
Copy link

bakerac4 commented Apr 1, 2021

When I go into my controllers template, and type {{this.}} I see the following error in the output pane for Glint Language Server in VSCode

[Error - 12:00:04 PM] Error: Could not find source file: '/Users/adambaker/Development/gavant/PEP-Web-User-Interface/pep/app/pods/admin/language/template.hbs'.
    at getValidSourceFile (/Users/adambaker/Development/gavant/PEP-Web-User-Interface/pep/node_modules/typescript/lib/typescript.js:147056:29)
    at Object.getCompletionsAtPosition (/Users/adambaker/Development/gavant/PEP-Web-User-Interface/pep/node_modules/typescript/lib/typescript.js:147289:80)
    at GlintLanguageServer.getCompletions (/Users/adambaker/Development/gavant/PEP-Web-User-Interface/pep/node_modules/@glint/core/lib/language-server/glint-language-server.js:114:40)
    at /Users/adambaker/Development/gavant/PEP-Web-User-Interface/pep/node_modules/@glint/core/lib/language-server/binding.js:41:51
    at captureErrors (/Users/adambaker/Development/gavant/PEP-Web-User-Interface/pep/node_modules/@glint/core/lib/language-server/binding.js:76:24)
    at /Users/adambaker/Development/gavant/PEP-Web-User-Interface/pep/node_modules/@glint/core/lib/language-server/binding.js:41:16
    at /Users/adambaker/Development/gavant/PEP-Web-User-Interface/pep/node_modules/vscode-languageserver/lib/common/server.js:678:20
    at handleRequest (/Users/adambaker/Development/gavant/PEP-Web-User-Interface/pep/node_modules/vscode-jsonrpc/lib/common/connection.js:405:41)
    at processMessageQueue (/Users/adambaker/Development/gavant/PEP-Web-User-Interface/pep/node_modules/vscode-jsonrpc/lib/common/connection.js:286:17)
    at Immediate._onImmediate (/Users/adambaker/Development/gavant/PEP-Web-User-Interface/pep/node_modules/vscode-jsonrpc/lib/common/connection.js:276:13)

It also seems to occur if you hover on that code as well.

@dfreeman dfreeman added the bug Something isn't working label Apr 1, 2021
@dfreeman
Copy link
Member

dfreeman commented Apr 1, 2021

Got it, thanks for writing this up! Should be a quick fix, I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants