ChilliCream / ChilliCream/graphql-platform

If `name` in .graphqlrc.json file contains a . (period) the codegen fails.

Open
#5,982 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🌶️ strawberry shake repro-validated
Dominant language
C#
Stars
5.8k
Forks
810
Avg merge
15h 39m
Merged PRs (30d)
98

Description

Is there an existing issue for this?
  • I have searched the existing issues
Product

Strawberry Shake

Describe the bug

When running dotnet graphql generate the generated code is not completed correctly if the name in the file .graphqlrc.json under extensions --> strawberryShake --> name contains a '.' (ie a period / full stop).

This name was auto generated by the CLI tools because my project name also has a '.' in it.

Steps to reproduce

I'm assuming this will work:

  1. Create a project called test.project
  2. Run the CLI tool dotnet graphql init <someworkingurl>
  3. Create a query
  4. Run the CLI tool dotnet graphql generate
  5. Look at the generated code, there will be red squigglies
Relevant log output

No response

Additional Context?

No response

Version

13.0.5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with a project named test.project, using .graphqlrc.json and the dotnet graphql init and dotnet graphql generate commands. Inspect the generated code after setting the Strawberry Shake name to a value containing a period. Done means generation completes correctly and the generated code has no errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.