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 dart & flutter path on windows #36

Merged
merged 1 commit into from Feb 1, 2023
Merged

Fix dart & flutter path on windows #36

merged 1 commit into from Feb 1, 2023

Conversation

chomosuke
Copy link
Contributor

@chomosuke chomosuke commented Jan 21, 2023

On windows, HOME environment variable doesn't exist, hence os.getenv('HOME') will return nil which causes attempt to concatenate a nil value.

This PR fixes that with an best effort guess of flutter's installation path on windows. A more sophisticated approach would be to find the install path dynamically from $PATH if required, something similar to what flutter-tools.nvim do. Though I'd imagine that would require some refactoring though.

@jay-babu jay-babu merged commit b56327d into jay-babu:main Feb 1, 2023
@jay-babu
Copy link
Owner

jay-babu commented Feb 1, 2023

Thanks for this!

@chomosuke chomosuke deleted the fix-dart-windows branch February 1, 2023 03:50
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