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

Changes to schema file cause panics #374

Open
rbalicki2 opened this issue Feb 8, 2025 · 0 comments
Open

Changes to schema file cause panics #374

rbalicki2 opened this issue Feb 8, 2025 · 0 comments

Comments

@rbalicki2
Copy link
Collaborator

rbalicki2 commented Feb 8, 2025

On Ubuntu (mint) with an encrypted file system, you cannot modify the schema, because a modification results in a delete followed by a create, and we error if the schema is deleted.

Oddly, the behavior is different for non-schema files. e.g. I would expect to see an invalid compilation, followed by a valid compilation, when a file containing an isograph literal is modified. Hence, I think there's a possibility that there's a difference in behavior in categorize_and_filter_events between schema and non-schema files. But that doesn't seem to be the case!

It's mysterious


EDIT: I just repro'd this on a mac. When I save a file via VSCode, I see no errors. But if I do git checkout head -- ./demos, I can consistently cause this issue to arise:

Handling schema update Remove("/Users/rbalicki/code/isograph/demos/pet-demo/backend/schema.graphql")
Handling schema update CreateOrModify("/Users/rbalicki/code/isograph/demos/pet-demo/backend/schema.graphql")
Handling schema update CreateOrModify("/Users/rbalicki/code/isograph/demos/pet-demo/backend/schema.graphql")
  ERROR  Error when compiling.

Schema file not found. Cannot proceed without a schema.
Compilation took 0ms.
@rbalicki2 rbalicki2 changed the title Cannot change schema file on Linux mint (ubuntu) without panic Changes to schema file cause panics Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant