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

firebase_auth: Incompatible with Windows on NET 9 or VS 17.12.0 #16536

Open
1 task done
thedeukalion opened this issue Nov 13, 2024 · 25 comments
Open
1 task done

firebase_auth: Incompatible with Windows on NET 9 or VS 17.12.0 #16536

thedeukalion opened this issue Nov 13, 2024 · 25 comments
Labels
blocked: external dependency platform: windows Issues / PRs which are specifically for Windows. plugin: auth type: bug Something isn't working

Comments

@thedeukalion
Copy link

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

Auth

Which platforms are affected?

Windows

Description

I just updated to the latest Visual Studio version and this occured on Flutter 3.24.3 and then I upgraded to 3.24.4 and it was still there. Been running this on every project between tries:

Global

dart pub cache clean --force
flutter update-packages --force-upgrade

Once per project

flutter clean
flutter pub upgrade
flutter pub get

And then I tried adding a simple project with just the firebase_auth package and it simply did not work.

.NET / Visual Studio Versions

dotnet --version = 9.0.100
Visual Studio Community 2022 17.12.0

Will try to rollback to previous DOTNET / VS version to see if there's any change.

Reproducing the issue

flutter create fb_test
cd fb_test
flutter pub add firebase_auth
flutter build windows --debug

Firebase Core version

3.7.0

Flutter Version

3.24.4

Relevant Log Output

Z:\fb_test\windows\flutter\ephemeral\cpp_client_wrapper\include\flutter\encodable_value.h(199,60): error C2665: 'std::variant<std::monostate,bool,int32_t,int64_t,double,std::string,std::vector<uint8_t,std::allocator<uint8_t>>,std::vector<int32_t,std::allocator<int>>,std::vector<int64_t,std::allocator<int64_t>>,std::vector<double,std::allocator<double>>,flutter::EncodableList,flutter::EncodableMap,flutter::CustomEncodableValue,std::vector<float,std::allocator<float>>>::variant': no overloaded function could convert all the argument types [Z:\fb_test\build\windows\x64\plugins\firebase_auth\firebase_auth_plugin.vcxproj]

Flutter dependencies

Expand Flutter dependencies snippet
Dart SDK 3.5.4
Flutter SDK 3.24.4
fb_test 1.0.0+1

dependencies:
- firebase_auth 5.3.2 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]

dev dependencies:
- flutter_lints 4.0.0 [lints]
- flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math leak_tracker_flutter_testing async boolean_selector characters collection leak_tracker leak_tracker_testing material_color_utilities meta source_span stream_channel string_scanner term_glyph vm_service]

transitive dependencies:
- _flutterfire_internals 1.3.45 [collection firebase_core firebase_core_platform_interface flutter meta]
- async 2.12.0 [collection meta]
- boolean_selector 2.1.2 [source_span string_scanner]
- characters 1.3.0
- clock 1.1.2
- collection 1.18.0
- fake_async 1.3.2 [clock collection]
- firebase_auth_platform_interface 7.4.8 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 5.13.3 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser meta web]
- firebase_core 3.7.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_core_platform_interface 5.3.0 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 2.18.1 [firebase_core_platform_interface flutter flutter_web_plugins meta web]
- flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math]
- http_parser 4.0.2 [collection source_span string_scanner typed_data]
- leak_tracker 10.0.5 [clock collection meta path vm_service]
- leak_tracker_flutter_testing 3.0.5 [flutter leak_tracker leak_tracker_testing matcher meta]
- leak_tracker_testing 3.0.1 [leak_tracker matcher meta]
- lints 4.0.0
- matcher 0.12.16+1 [async meta stack_trace term_glyph test_api]
- material_color_utilities 0.11.1 [collection]
- meta 1.15.0
- path 1.9.1
- plugin_platform_interface 2.1.8 [meta]
- sky_engine 0.0.99
- source_span 1.10.0 [collection path term_glyph]
- stack_trace 1.12.0 [path]
- stream_channel 2.1.2 [async]
- string_scanner 1.4.0 [source_span]
- term_glyph 1.2.1
- test_api 0.7.3 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph]
- typed_data 1.4.0 [collection]
- vector_math 2.1.4
- vm_service 14.3.1
- web 1.1.0

Additional context and comments

No response

@thedeukalion thedeukalion added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Nov 13, 2024
@thedeukalion
Copy link
Author

Rolled back my version of Visual Studio to 17.11.5 with dotnet version 8.0.403.
Except a million warnings it successfully builds.
No changes to my flutter pub deps -- --style=compact output

@guilhermeeng99
Copy link

same here

@tranhuudang
Copy link

Haven't see any attempts to fix firebase on windows. My app crash often and still has no clue why or how to fix it. I checked for new update of firebase continuously and what I see is almost like zero fix.

@SelaseKay SelaseKay added plugin: auth platform: windows Issues / PRs which are specifically for Windows. labels Nov 14, 2024
@SelaseKay
Copy link
Contributor

cc @russellwheatley

@iyyappanGitHub
Copy link

iyyappanGitHub commented Nov 15, 2024

Same Issue.
I tried lot nothing helps.

D:\WD\BusinessPersonalManager\business_personal_manager\windows\flutter\ephemeral\cpp_client_wrapper\include\flutter\encodable_value.h(199,60): error C2665: 'std::variant<std::monostate,bool,int32_t,int64_t,double,std::string,std::vector<uint8_t,std::allocator<uint8_t>>,std::vector<int32_t,std::allocator>,std::vector<int64_t,std::allocator<int64_t>>,std::vector<double,std::allocator>,flutter::EncodableList,flutter::EncodableMap,flutter::CustomEncodableValue,std::vector<float,std::allocator>>::variant': no overloaded function could convert all the argument types [D:\WD\BusinessPersonalManager\business_personal_manager\build\windows\x64\plugins\firebase_auth\firebase_auth_plugin.vcxproj]

I tried following solutions.

  1. Reinstall the VS2022
  2. Downgrade the flutter
  3. Flutter_Auth plugin tried versions from 4.16.0 to 5.3.3

@PrimeTheFirst
Copy link

Same!

@uditrugman
Copy link

same, but this also started failing on github actions when building for windows

@PrimeTheFirst
Copy link

Rolled back my version of Visual Studio to 17.11.5 with dotnet version 8.0.403. Except a million warnings it successfully builds. No changes to my flutter pub deps -- --style=compact output

How do I rollback???

@russellwheatley russellwheatley added blocked: external dependency and removed Needs Attention This issue needs maintainer attention. labels Nov 19, 2024
@russellwheatley
Copy link
Member

russellwheatley commented Nov 19, 2024

Rolled back my version of Visual Studio to 17.11.5 with dotnet version 8.0.403. Except a million warnings it successfully builds. No changes to my flutter pub deps -- --style=compact output

@thedeukalion - thank you for confirming that reverting Visual Studio/Dot not version is a way to circumvent this issue for now 🙏

@AbdelaliAmine
Copy link

i have the same problem if any one solve it, please help me

@PrimeTheFirst
Copy link

Rolled back my version of Visual Studio to 17.11.5 with dotnet version 8.0.403. Except a million warnings it successfully builds. No changes to my flutter pub deps -- --style=compact output

@thedeukalion - thank you for confirming that reverting Visual Studio/Dot not version is a way to circumvent this issue for now 🙏

Will the issue be fixed for dotnet 9?

@russellwheatley
Copy link
Member

@PrimeTheFirst - I have no idea I'm afraid. I don't have dotnet installed on my machine

@AbdelaliAmine
Copy link

@PrimeTheFirst - I have no idea I'm afraid. I don't have dotnet installed on my machine

how do you rollback to the version 17.11.5 of visual studio?

@PrimeTheFirst
Copy link

PrimeTheFirst commented Nov 19, 2024

@PrimeTheFirst - I have no idea I'm afraid. I don't have dotnet installed on my machine

I see. Is this a flutter auth issue or a visual studio issue? Any idea when it might be fixed??

@PrimeTheFirst
Copy link

@PrimeTheFirst - I have no idea I'm afraid. I don't have dotnet installed on my machine

how do you rollback to the version 17.11.5 of visual studio?

From what I understand you can only rollback if you have upgraded it from a previous version before. Otherwise Microsoft archives have 17.11.5 update download links for the exe, which isn't working for me. It just says preparing and then closes
@thedeukalion Please guide.

@dion-gionet
Copy link

On our side, we managed to workaround the issue on Github Actions with the following steps :

      # Replace Visual Studio 17.12 with 17.10 to workaround Firebase issue
      # https://github.com/firebase/flutterfire/issues/16536
      - name: Cleanup Visual Studio Installer
        continue-on-error: true
        run: |
          & "C:\Program Files (x86)\Microsoft Visual Studio\Installer\InstallCleanup.exe"
        shell: pwsh

      # Replace Visual Studio 17.12 with 17.10 to workaround Firebase issue
      # https://github.com/firebase/flutterfire/issues/16536
      - name: Install Visual Studio 2022 Enterprise
        run: |
          Invoke-WebRequest -Uri https://aka.ms/vs/17/release.ltsc.17.10/vs_enterprise.exe -OutFile vs_enterprise.exe
          $process = Start-Process -FilePath '.\vs_enterprise.exe' -ArgumentList "--add", "Microsoft.VisualStudio.Workload.Azure", "--quiet", "--norestart", "--wait", "--includeRecommended" -Wait -PassThru
          Write-Output $process.ExitCode
          $process = Start-Process -FilePath '.\vs_enterprise.exe' -ArgumentList "--add", "Microsoft.VisualStudio.Workload.NativeDesktop", "--quiet", "--norestart", "--wait", "--includeRecommended" -Wait -PassThru
          Write-Output $process.ExitCode
        shell: pwsh

@kaansagtas
Copy link

kaansagtas commented Nov 21, 2024

I have the same error. I tried almost everything but couldn't solve it. I just couldn't downgrade the Visual Studio version because it was a new installation and there was no old version already.

@PrimeTheFirst - I have no idea I'm afraid. I don't have dotnet installed on my machine

I see. Is this a flutter auth issue or a visual studio issue? Any idea when it might be fixed??

Is there any progress?

@AvianAeternum
Copy link

:(

@iyyappanGitHub
Copy link

On our side, we managed to workaround the issue on Github Actions with the following steps :

      # Replace Visual Studio 17.12 with 17.10 to workaround Firebase issue
      # https://github.com/firebase/flutterfire/issues/16536
      - name: Cleanup Visual Studio Installer
        continue-on-error: true
        run: |
          & "C:\Program Files (x86)\Microsoft Visual Studio\Installer\InstallCleanup.exe"
        shell: pwsh

      # Replace Visual Studio 17.12 with 17.10 to workaround Firebase issue
      # https://github.com/firebase/flutterfire/issues/16536
      - name: Install Visual Studio 2022 Enterprise
        run: |
          Invoke-WebRequest -Uri https://aka.ms/vs/17/release.ltsc.17.10/vs_enterprise.exe -OutFile vs_enterprise.exe
          $process = Start-Process -FilePath '.\vs_enterprise.exe' -ArgumentList "--add", "Microsoft.VisualStudio.Workload.Azure", "--quiet", "--norestart", "--wait", "--includeRecommended" -Wait -PassThru
          Write-Output $process.ExitCode
          $process = Start-Process -FilePath '.\vs_enterprise.exe' -ArgumentList "--add", "Microsoft.VisualStudio.Workload.NativeDesktop", "--quiet", "--norestart", "--wait", "--includeRecommended" -Wait -PassThru
          Write-Output $process.ExitCode
        shell: pwsh

Mine is Visual Studio Community Edition,
As per microsoft forum, they clearly mentioned that community edition could not be downgraded.

@PrimeTheFirst
Copy link

PrimeTheFirst commented Nov 23, 2024

Can this issue please be resolved ASAP or can we at least know if a fix is being worked upon and maybe a possible timeframe for its completion? It's affecting a lot of developers and is completely halting development.

@seungku
Copy link

seungku commented Nov 25, 2024

After Visual Studio rollback, I solve this problem. Please consider the below link for your roll back.

https://devblogs.microsoft.com/visualstudio/introducing-visual-studio-rollback/

@adricruzado
Copy link

Hey guys,

This solved the problem for me:

1- Uninstall Visual Studio.
2- Download the installer and execute from PowerShell this command to install the version 17.8:
.\visualstudiosetup.exe --channelUri https://aka.ms/vs/17/release.LTSC.17.8/channel

@richard457
Copy link

Studio

This worked for me while waiting for package solution to support latest visual studio

@PrimeTheFirst
Copy link

Hey guys,

This solved the problem for me:

1- Uninstall Visual Studio. 2- Download the installer and execute from PowerShell this command to install the version 17.8: .\visualstudiosetup.exe --channelUri https://aka.ms/vs/17/release.LTSC.17.8/channel

Thank you!!! This works.

@PrimeTheFirst
Copy link

Hey guys,

This solved the problem for me:

1- Uninstall Visual Studio. 2- Download the installer and execute from PowerShell this command to install the version 17.8: .\visualstudiosetup.exe --channelUri https://aka.ms/vs/17/release.LTSC.17.8/channel

For those getting warning LNK4099: PDB '' was not found with use this this solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked: external dependency platform: windows Issues / PRs which are specifically for Windows. plugin: auth type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

16 participants