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

CTRL + ALT + B Not Working on Windows #16

Open
faizabdillah opened this issue Jul 10, 2023 · 4 comments
Open

CTRL + ALT + B Not Working on Windows #16

faizabdillah opened this issue Jul 10, 2023 · 4 comments

Comments

@faizabdillah
Copy link

when i type CTRL + ALT + B i'm getting this error

extension version : 0.8.0

Running `flutter.bat pub run build_runner build --build-filter C:/Users/myuser/Documents/mydocs/FLUTTER/myprojectname/lib/app/data/model/request/my_model/my_model_model.freezed.dart --build-filter C:/Users/myuser/Documents/mydocs/FLUTTER/myprojectname/lib/app/data/model/request/my_model/my_model_model.g.dart`
Current working folder: `c:\Users\myuser\Documents\mydocs\FLUTTER\myprojectname`

[INFO] Generating build script...
[INFO] Generating build script completed, took 369ms

Invalid argument (--build-filter): Not a valid build filter, must be either a relative path or `package:` uri.

FormatException: Unsupported scheme c: Instance of '_Uri'
@gregslu
Copy link

gregslu commented Sep 10, 2023

Yup, I noticed it also, Windows uses backslashes in path, I think that the issue is in the extension.ts - it should check if OS is Windows, and use backslash instead of slash in path, this is just a guess

@bawahakim
Copy link

Actually it seems the issue that it uses absolute path instead of relative. I tried running the same command with path relative to the working dir, and it works as expected. So probably needs to be fixed in the source code

@bawahakim
Copy link

@gaetschwartz Would appreciate if you could have a look please! #18

@blacktaler1
Copy link

Running flutter.bat pub run build_runner build --delete-conflicting-outputs --build-filter C:/Users/black/OneDrive/Рабочий стол/model_casting/lib/features/offers/domain/entitites/offer.freezed.dart
Current working folder: c:\Users\black\OneDrive\Рабочий стол\model_casting

Error: spawn flutter.bat ENOENT

Hello What i do this state

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

No branches or pull requests

4 participants