question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support generated projects with dots in the namespace

See original GitHub issue

Hello Zaid, I’ve encountered some “strange” behaviour. When I define Snoflaqe.json file like this

    "schema": "http://localhost:8085/graphql",
    "queries": "./gql-queries",
    "project": "Cookbook.GraphQL.Client",
    "output": "./gql-output",
    "overrideClientName": "ClientGraphqlClient"
}

then the namespaces in the generated project are created in quotes like this

namespace rec ``Cookbook.GraphQL.Client``

and project in this state throws compilation errors.

Is this “by design” or did I encountered some bug?

It can be solved by removing the dots from the project name but then I endup with project whose name doesn’t match the rest of the projects in sln.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
landycommented, Aug 15, 2020

Works like a charm! Thanks again 👍

1reaction
landycommented, Aug 11, 2020

wow! 🥇 I will give it a try. Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - A dot in project name interpreted as namespace delimiter
A dot in project name will be a namespace, I usually name my projects like that MyProject.Data.EntityFramewor, or MyProject.WPF. Don't use dots ......
Read more >
Export as namespace should support dots #28142
Currently TS forces to pollute global scope like so: VendorNameSpace1.SDK and VendorNameSpace2.AnotherSDK . Or if only Vendor namespace is used ...
Read more >
Formatting issues (dots replaced by underscores) in ...
When creating a new solution and say a project with name like SolutionName.ProjectName using one of the SPA templates, the generation of the ......
Read more >
Display warning when creating namespaces with . (dots) ...
Display warning when creating namespaces with . (dots) for GitLab Pages · Release notes · Problem to solve · Intended users · User...
Read more >
When I create a new project, the using System namespace ...
I just created a small calculator so I could hopefully answer your question about it working. Yes, when I run, it works without...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found