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

Language server can't open files with special characters #1644

Closed
danielbuechele opened this issue Aug 16, 2020 · 3 comments · Fixed by #2072 or #2073
Closed

Language server can't open files with special characters #1644

danielbuechele opened this issue Aug 16, 2020 · 3 comments · Fixed by #2072 or #2073
Labels
bug lsp-server graphql-language-service-server

Comments

@danielbuechele
Copy link

When a file name has special characters (in my case []) they are escaped and therefor the file can't be found.

(node:99747) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/Users/danielbuechele/millone/pages/grinders/%5Bhandle%5D/buy.tsx'
    at Object.openSync (fs.js:447:3)
    at Object.func (electron/js2c/asar.js:140:31)
    at Object.func [as openSync] (electron/js2c/asar.js:140:31)
    at Object.readFileSync (fs.js:349:35)
    at Object.fs.readFileSync (electron/js2c/asar.js:542:40)
    at Object.fs.readFileSync (electron/js2c/asar.js:542:40)
    at /Users/danielbuechele/.vscode-fb/extensions/graphql.graphql-vscode-insiders-0.3.5/node_modules/graphql-language-service-server/dist/MessageProcessor.js:293:35
    at Array.map (<anonymous>)
    at MessageProcessor.handleWatchedFilesChangedNotification (/Users/danielbuechele/.vscode-fb/extensions/graphql.graphql-vscode-insiders-0.3.5/node_modules/graphql-language-service-server/dist/MessageProcessor.js:286:43)
    at /Users/danielbuechele/.vscode-fb/extensions/graphql.graphql-vscode-insiders-0.3.5/node_modules/graphql-language-service-server/dist/startServer.js:161:122
(node:99747) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 18)
@acao acao added the bug label Aug 16, 2020
@acao
Copy link
Member

acao commented Aug 16, 2020

@danielbuechele thanks for this! this might just be a pre-release bug.

does this happen when the extension (and thus the language service server) first initializes? or does it only happen when that file is opened or already open on start?

@danielbuechele
Copy link
Author

This seems to be happening every time I open the file.

@acao
Copy link
Member

acao commented Sep 16, 2020

@danielbuechele did this improve when switching back to prisma.vscode-graphql? we have some new stable releases there now. insiders is outdated for the moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug lsp-server graphql-language-service-server
Projects
None yet
2 participants