Skip to content

When schema.json size is greater than idea.max.intellisense.filesize, inspections break #265

@nhusher

Description

@nhusher

I'm having an issue loading a very large 2.7mb GraphQL schema.json file. The service appears to parse and load the definitions correctly, but the inspector doesn't seem to have access to the types.

I've pared down the schema file, and it appears that when I cut it down to below the default 2.5mb limit, the inspector suddenly can validate queries against the schema.

I don't know if there's a way to work around that, so that the inspector is still available even if the schema file size is very large.

Version and Environment Details

Operation system: OS X 10.14.5

IDE name and version: IntelliJ Idea Ultimate 2019.1.3

Plugin version: v2.2.0

Expected Behaviour

Schema files of arbitrary size (up to some reasonable limit—is 2.7mb unreasonable?) should continue to work with the inspector.

Actual Behaviour

Large schema.json files do not work with the inspector.

Steps to Reproduce

  1. Create a pretty big schema and record its file size in kilobytes
  2. Create a query in a JS file that makes use of the schema
  3. In IntelliJ, go to Help -> Edit Custom Properties
  4. In the properties file it opens, set idea.max.intellisense.filesize={less than filesize from step #1}
  5. Restart IntelliJ
  6. Notice that inspections are now broken for that query

Workaround

Set idea.max.instellisense.filesize to a number greater than the schema file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions