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

Firebase Data Connect VS Code Extension: Request textDocument/hover failed #8177

Open
remarcoble opened this issue Feb 5, 2025 · 1 comment
Assignees
Labels
platform: windows type: bug VSCode Extension https://marketplace.visualstudio.com/items?itemName=GoogleCloudTools.firebase-dataconnect-vscode

Comments

@remarcoble
Copy link

remarcoble commented Feb 5, 2025

[REQUIRED] Environment info

firebase-tools: 13.30.0

Platform: Windows 11 Pro

[REQUIRED] Test case

I am using the Firebase Data Connect extension in VS Code on Windows 11 Pro. The same repository and setup works fine on macOS and idx, but on Windows, hovering over anything (schema types, queries and mutations) does not show documentation.
Tested also with the example schema, query and mutation created by the extension after pressing the button Run firebase init.

[REQUIRED] Steps to reproduce

  1. Install the Firebase Data Connect extension in VS Code on Windows 11 Pro.
  2. Click the Run firebase init button in the extension and initialize a default project of dataconnect.
  3. Hover over any GraphQL field or type.
  4. The expected hover documentation does not appear, and the error is logged in the output.

[REQUIRED] Expected behavior

Hovering over a GraphQL field should display documentation or schema information.

[REQUIRED] Actual behavior

Firebase GraphQL Language Server started!
[Info  - 11:31:39 PM] {"type":"usage","messageType":"initialize"}
Firebase GraphQL Language Server restarted
[Error - 11:31:39 PM] WARNING: graphql-config error, only highlighting is enabled:

      Unable to find any GraphQL type definitions for the following pointers:
        
          - ../c:\Users\name\projects\my-project-firebase\dataconnect/schema/**/*.gql
          ,
          - ../c:\Users\name\projects\my-project-firebase\dataconnect/.dataconnect/**/*.gql
          
for more information on using 'graphql-config' with 'graphql-language-service-server', 
see the documentation at https://www.npmjs.com/package/graphql-language-service-server#user-content-graphql-configuration-file
{"type":"usage","messageType":"textDocument/documentSymbol","fileName":"file:///c%3A/Users/name/projects/my-project-firebase/dataconnect/connector/queries.gql"}
[Error - 11:31:43 PM] Request textDocument/hover failed.
  Message: Request textDocument/hover failed with message: 
      Unable to find any GraphQL type definitions for the following pointers:
        
          - ../c:\Users\name\projects\my-project-firebase\dataconnect/schema/**/*.gql
          ,
          - ../c:\Users\name\projects\my-project-firebase\dataconnect/.dataconnect/**/*.gql
          
  Code: -32603 
{"type":"usage","messageType":"textDocument/didClose","projectName":"default","fileName":"file:///c%3A/Users/name/projects/my-project-firebase/dataconnect/connector/queries.gql"}
@aalej aalej added VSCode Extension https://marketplace.visualstudio.com/items?itemName=GoogleCloudTools.firebase-dataconnect-vscode platform: windows labels Feb 6, 2025
@hlshen
Copy link
Contributor

hlshen commented Feb 11, 2025

Thank you for reporting this issue. I'll do some investigation this week

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: windows type: bug VSCode Extension https://marketplace.visualstudio.com/items?itemName=GoogleCloudTools.firebase-dataconnect-vscode
Projects
None yet
Development

No branches or pull requests

3 participants