-
-
Notifications
You must be signed in to change notification settings - Fork 1
Add windows support. #3
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
Comments
What OS do you work on? I see flutter windows in the log so I presume you're using windows? |
Yes, windows Lib folder is there and working. Tried also running with Admin(cmd), and checked that I ran pub get in both example and parent folder but this always happens on running with that command Edit: |
That should not make a difference. I have not tested Klutter on windows myself because you won't be able to do the iOS development on windows. I will see if I reproduce this issue later today but I think it's as simple as an invalid windows path (e.g. / VS ). |
Oh ok thank you. I just wanted to try Android side on Windows to see if it is viable option and to test Android code and later try on MAC for iOS Side |
Yes please try on a mac and let me know! Thank you. :) |
Seeing the same thing, I had assumed it was a windows issue from the path displayed in the error message. I think windows support would be a nice addition. Even if most people would use a mac to build and publish for IOS many people do there development in windows/linux. |
Okay noted. If there's enough interest I can look into it. For now I'm focussing on the 2023 beta release and I'm not sure how much time I will have beyond that (this year). |
I may be able to find some time to help get it working on windows. In fact it seams the main issue here is that the klutter-dart/lib/src/common/utilities.dart Lines 99 to 101 in 46d3dc0
|
Ah good find! Maybe it's enough to replace every forward slash with Platform.sep in that code. I'll have a look tomorrow. |
Got the producer init command to run successfully but it isn't pretty... changes can be seen here https://github.com/charliebudd/klutter/tree/windows-support |
I'm looking into this for next release. |
The dart side is done (1.0.0). There's work to be done in the Gradle Plugin e.a. because using global flutter on windows does not work well. It will be fixed by this issue where I'm working on right now. |
I tried everything in https://buijs.dev/klutter-2/ for setting up my project but I get an error on latest flutter/dart
when running
flutter pub run klutter:producer init
I tried alot of stuff but the problem remains the same
` ════════════════════════════════════════════
KLUTTER (v0.2.4)
════════════════════════════════════════════
This might take a while. Just a moment please...
Unhandled exception:
FileSystemException: Exists failed, path = '\D:\flutter\test_klutter\lib' (OS Error: The filename, directory name, or volume label syntax is incorrect.
, errno = 123)
#0 _Directory.existsSync (dart:io/directory_impl.dart:94:7)
#1 FileUtil.maybeDelete (package:klutter/src/common/utilities.dart:60:9)
#2 _extension#0.setupRoot (package:klutter/src/cli/task_producer_init.dart:53:27)
#3 ProducerInit.toBeExecuted (package:klutter/src/cli/task_producer_init.dart:41:7)
#4 Task.execute (package:klutter/src/cli/task.dart:52:7)
#5 execute (package:klutter/src/cli/cli.dart:107:27)
#6 main (file:///D:/flutter/flutter_windows_3.3.6-stable/flutter/.pub-cache/hosted/pub.dartlang.org/klutter-0.2.4/bin/producer.dart:40:24)
#7 _delayEntrypointInvocation. (dart:isolate-patch/isolate_patch.dart:295:32)
#8 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:192:12)
pub finished with exit code 255`
The text was updated successfully, but these errors were encountered: