FSharp.Data.GraphQL icon indicating copy to clipboard operation
FSharp.Data.GraphQL copied to clipboard

TypeProvider runs out of control with certain schema/operation

Open aggieben opened this issue 6 years ago • 1 comments

Describe the bug

When opening a specific .fsx file that makes use of a type provider, the .NET Core Host used by Ionide loses its mind and hogs all the CPU and memory. Pretty spectacularly:

image

I did also try this with Visual Studio 2019, and it exhibited similar behavior, although after trying it with VS it seems to be specifically caused by this operation:

let updateOperation =
  AdminAPI.Operation<
      """
      mutation UpdateProduct($input: ProductInput!) {
          productUpdate(input: $input) {
              product {
                  id
              }
              userErrors {
                  field
                  message
              }
          }
      }
      """
      >()

See attached files below for the schema and full script.

To Reproduce Steps to reproduce the behaviour:

  1. Clone the latest FSharp.Data.GraphQL repository
  2. In the samples/client-provider folder, add the following files: shopify_tests.fsx, shopify.json provided here: client-provider.zip
  3. Open the root FSharp.Data.GraphQL workspace in VSCode
  4. Open shopify_tests.fsx
  5. Observe the .NET Core Host go bonkers

Expected behaviour

I would expect this to not happen :-)

Screenshots See above

Environment (please complete the following information):

  • OS: Windows 10
  • Ionide version: 4.2.0
  • VSCode version: 1.39.2
  • dotnet SDK version: 3.0.100
  • mono / .Net Framework version: 4.8.03752

Additional context

aggieben avatar Nov 01 '19 14:11 aggieben

Hi @aggieben, I’m having a similar issue. Did you find a workaround?

moinessim avatar Jun 08 '20 01:06 moinessim

Try again with the latest version from the GitHub feed. Feel free to reopen

xperiandri avatar Nov 05 '23 23:11 xperiandri