Giter VIP home page Giter VIP logo

Comments (6)

fionawhim avatar fionawhim commented on April 27, 2024 2

Seeing this on the 0.0.8 I got from the marketplace.

ZEBRA 1: undefined undefined
ZEBRA: GraphQLProjectConfig {
  config: 
   { schemaPath: './services-js/commissions-app/graphql/schema.graphql',
     includes: [ './services-js/commissions-app/src/client/**/*.{graphql,ts,tsx,js,jsx}' ],
     extensions: { endpoints: [Object] } },
  configPath: '/Users/FinneganHopkins/Source/monorepo/.graphqlconfig',
  projectName: 'commissions-app' } /Users/FinneganHopkins/Source/monorepo/services-js/commissions-app/graphql/schema.graphql

Query file (./services-js/commissions-app/src/client/graphql/test.graphql):

query {
  commissions {
    applyUrl
  }
}

from vscode-graphql.

marktani avatar marktani commented on April 27, 2024

The same happens for graphql-server-example/queries/queries.graphql

from vscode-graphql.

divyenduz avatar divyenduz commented on April 27, 2024

Fixed via prisma-labs/graphql-prisma-typescript#246

Also, you are on an older version of extension. Can you please download it via the marketplace?

from vscode-graphql.

marktani avatar marktani commented on April 27, 2024

I did!

from vscode-graphql.

jhalborg avatar jhalborg commented on April 27, 2024

Reproduction:

  1. Create a create-react-app with TypeScript (create-react-app my-app --scripts-version=react-scripts-ts from https://github.com/wmonk/create-react-app-typescript)
  2. Add graphql-tag and graphql to project
  3. Install the plugin to VSCode
  4. Clone an exisiting schema (or fetch your own) into schema.graphql in project root
  5. Go into App.tsx and add
import gql from 'graphql-tag';

const TEST_QUERY = gql`
  query {
    // Expect automagical Intellisense and validation, be disappointed :)
  }
`
  1. Check the "Output" pane in VS Code for GraphQL Language Server, see
ZEBRA 1: undefined undefined
ZEBRA: GraphQLProjectConfig {
  config: 
   { schemaPath: 'schema.graphql',
     includes: [ 'schema.graphql' ],
     extensions: { endpoints: [Object] } },
  configPath: '[path to project]/.graphqlconfig.yaml',
  projectName: 'app' } [path to project]/schema.graphql

from vscode-graphql.

divyenduz avatar divyenduz commented on April 27, 2024

@marktani The original problem of vague logs in output "GraphQL Language Server" are resolved in 0.0.9.

The issue with autocomplete can be logged following these instructions and is unrelated to output "GraphQL Language Server" logs.

I will investigate it further under this issue (#21). Closing this one.

from vscode-graphql.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.