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

[BUG] Having a space between the UseMauiCommunityToolkitMediaElement and the ( throws the MCTME001 error #1476

Open
2 tasks done
SotoiGhost opened this issue Oct 26, 2023 · 0 comments · May be fixed by #1477
Open
2 tasks done
Labels
area/core Issue/Discussion/PR that has to do with the core of the toolkit bug Something isn't working

Comments

@SotoiGhost
Copy link

SotoiGhost commented Oct 26, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

I have a .editorconfig that adds a space between the method name and its () by default. Because of this, every time the code is formatted, it adds a space between the UseMauiCommunityToolkitMediaElement method name and its (), causing the compiler/analyzer to throw the error:

`.UseMauiCommunityToolkitMediaElement()` must be chained to `.UseMauiApp<T>()`(MCTME001)

PS: Why I add a space between the name and its ()? I've always used the Mono Coding Guidelines

Expected Behavior

Be able to compile

Steps To Reproduce

  1. Open the solution
  2. Compile

Link to public reproduction project repository

https://github.com/SotoiGhost/MauiSandbox/tree/MCT-issue

Environment

- .NET MAUI CommunityToolkit: 2.0.0
- OS: macOS Sonoma 14.0
- .NET MAUI: 8.0.100-rc.2.23502.2

Anything else?

No response

@SotoiGhost SotoiGhost added bug Something isn't working unverified labels Oct 26, 2023
SotoiGhost added a commit to SotoiGhost/MauiCommunityToolkit that referenced this issue Oct 26, 2023
@vhugogarcia vhugogarcia added area/core Issue/Discussion/PR that has to do with the core of the toolkit and removed unverified labels Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core Issue/Discussion/PR that has to do with the core of the toolkit bug Something isn't working
Projects
None yet
2 participants