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

Sample.StarWars-AzureFunctions-RepoDB does not compile #14

Open
rmacfadyen opened this issue Apr 29, 2024 · 3 comments
Open

Sample.StarWars-AzureFunctions-RepoDB does not compile #14

rmacfadyen opened this issue Apr 29, 2024 · 3 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@rmacfadyen
Copy link

Same problem as previously.

Using Visual Studio I cloned the repo again, rebuild solution, and the following errors:

Build started at 11:06 PM...
1>------ Build started: Project: StarWars-AzureFunctions-RepoDB, Configuration: Debug Any CPU ------
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(4,20,4,43): error CS0234: The type or namespace name 'PreProcessingExtensions' does not exist in the namespace 'HotChocolate' (are you missing an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(7,20,7,43): error CS0234: The type or namespace name 'PreProcessingExtensions' does not exist in the namespace 'HotChocolate' (are you missing an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(8,20,8,43): error CS0234: The type or namespace name 'PreProcessingExtensions' does not exist in the namespace 'HotChocolate' (are you missing an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(17,23,17,37): warning CS0618: 'ExtendObjectTypeAttribute.Name.set' is obsolete: 'Use the new constructor.'
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(47,29,47,43): error CS0246: The type or namespace name 'IParamsContext' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(44,27,44,63): error CS0246: The type or namespace name 'IPreProcessedCursorSlice<>' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(83,29,83,43): error CS0246: The type or namespace name 'IParamsContext' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(80,27,80,69): error CS0246: The type or namespace name 'IPreProcessedOffsetPageResults<>' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(113,29,113,43): error CS0246: The type or namespace name 'IParamsContext' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(110,27,110,57): error CS0246: The type or namespace name 'PreProcessedCursorSlice<>' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(145,29,145,43): error CS0246: The type or namespace name 'IParamsContext' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(142,27,142,57): error CS0246: The type or namespace name 'PreProcessedCursorSlice<>' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(174,29,174,43): error CS0246: The type or namespace name 'IParamsContext' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(195,29,195,43): error CS0246: The type or namespace name 'IParamsContext' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(47,14,47,27): error CS0246: The type or namespace name 'GraphQLParamsAttribute' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(47,14,47,27): error CS0246: The type or namespace name 'GraphQLParams' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(83,14,83,27): error CS0246: The type or namespace name 'GraphQLParamsAttribute' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(83,14,83,27): error CS0246: The type or namespace name 'GraphQLParams' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(113,14,113,27): error CS0246: The type or namespace name 'GraphQLParamsAttribute' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(113,14,113,27): error CS0246: The type or namespace name 'GraphQLParams' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(145,14,145,27): error CS0246: The type or namespace name 'GraphQLParamsAttribute' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(145,14,145,27): error CS0246: The type or namespace name 'GraphQLParams' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(174,14,174,27): error CS0246: The type or namespace name 'GraphQLParamsAttribute' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(174,14,174,27): error CS0246: The type or namespace name 'GraphQLParams' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(195,14,195,27): error CS0246: The type or namespace name 'GraphQLParamsAttribute' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Users\rmacfadyen\Source\Repos\GraphQL.RepoDB\Sample.StarWars-AzureFunctions-RepoDB\Characters\CharacterQueries.cs(195,14,195,27): error CS0246: The type or namespace name 'GraphQLParams' could not be found (are you missing a using directive or an assembly reference?)
1>Done building project "StarWars-AzureFunctions-RepoDB.csproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 4 up-to-date, 0 skipped ==========
========== Build completed at 11:06 PM and took 00.653 seconds ==========

The file Sample.StarWars-AzureFunctions-RepoDB/Characters/CharacterQueries.cs does not appear to have been updated. It continues to use out of date usings:

using HotChocolate.PreProcessingExtensions;
using HotChocolate.PreProcessingExtensions.Sorting;
using HotChocolate.PreProcessingExtensions.Pagination;

@cajuncoding cajuncoding added the duplicate This issue or pull request already exists label Apr 29, 2024
@cajuncoding
Copy link
Owner

This is a duplicate of the original issue #13

@cajuncoding
Copy link
Owner

@rmacfadyen I apologize for that.... I honestly don't know what happened but some changes were somehow not committed and I lost them locally too. I was doing this while traveling via mobile hotspot, but have no idea how they were lost locally.... because I certainly tested and validated everything. 🤷‍♂️

Luckily the changes were small and easy to redo and now committed...I re-tested the queries, and re-ran all Unit Tests to be safe and everything worked fine. I then validated the changes are now in the main branch in Github portal... ✅

image

image

@cajuncoding cajuncoding added the bug Something isn't working label Apr 29, 2024
@cajuncoding
Copy link
Owner

Is this is now resolved, can I close this ticket?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants