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

fix: installation of dependencies on Windows #35

Merged
merged 2 commits into from Jun 3, 2022

Conversation

ruivop
Copy link
Contributor

@ruivop ruivop commented Jun 3, 2022

Description

Installing the dependencies was giving me the following error:
Bad state: No element #0 ListMixin.firstWhere (dart:collection/list.dart:167:5) #1 FileExtractor.extract (package:umbra_cli/src/workers/file_extractor.dart:26:26) ...

I managed to track the problem to the fact that the FileExtractor was expecting a file named "install/bin/glslc" in the archive, but the actual name is "install/bin/glslc.exe" (for Windows). Also, the file was being saved as "glslc" and not as "glslc.exe", as it should on Windows.

I just added the ".exe" to the end of the file names, when installing the dependencies and the platform is Windows. Creating and generating the shaders is working for me now.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@ruivop ruivop requested a review from wolfenrain as a code owner June 3, 2022 11:32
@wolfenrain
Copy link
Owner

Thank you for your contribution! I hadn't fully tested everything on Windows yet so glad that you managed to get a fix for it!

One of the tests for it is failing because you changed the extension. Can you adjust that test to reflect your change?

@ruivop
Copy link
Contributor Author

ruivop commented Jun 3, 2022

Sure! I changed the test.

@wolfenrain wolfenrain merged commit 36de9b2 into wolfenrain:main Jun 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants