-
Notifications
You must be signed in to change notification settings - Fork 1
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
Paths on Windows example flutter project result in errors #5
Comments
Hi @pushkinman thanks for this bug report pinpointing the exact issue. As I primarily develop and test on MacOS, I sometimes miss cases where I incorrectly use If you come across any other occurrences of the same bug, please comment below. This would speed up fixing the issue. |
@pushkinman , I believe we came across 3 issues when running on WIndows:
Could you please elaborate? |
@maxim-saplin please open separate issues to track your 2nd and 3rd points. Please keep in mind, that this project is part of my bachelors thesis at the moment, thus implementing all research questions on a primary platform (MacOS in my case) is the higher priority. However, I'll gladly improve Windows support along the way. This requires knowledge of issues specific to Windows including their cause and symptoms. Thank you for your valuable feedback. |
Yes, first we fixed the slashes from Secondly, we've closed the file stream in method Finally, the main error was encountered in
|
For working with paths in platform agnostic way I'd suggest to go with: https://pub.dev/packages/path
Don't do string concatenation with slashes. |
@IVLIVS-III,
Only file APIs need slashes fixed via |
Thanks for the response, I realized this myself during testing. |
@maxim-saplin @pushkinman If you have spare time, please test if the current If any of the above issues persists, I'll reopen this issue. |
We'll do, thanks for quick turnaround! |
@IVLIVS-III The example project still does not work after the fix. Here is the log:
|
@pushkinman ahhh right thanks, I've seen this kind of log multiple times before. The following line points to an incorrect location:
I think, it should be I'll look into this tomorrow. I only tested the examples in packages/examples but not the one in packages/python_ffi/example. In the meantime… do the other example projects in packages/examples work? |
Closed in favor of #7 |
Let me check |
@IVLIVS-III I am having trouble launching example projects, could you explain how it should be done? |
This should be a file called This should compute Run
|
|
|
Hello @IVLIVS-III, I've successfully launched example flutter project on macOS, but on Windows I am getting the following errors.
In
python_ffi_cpython.dart
file on line 47 -await tmpZipFile.delete();
Exception has occurred. PathAccessException (PathAccessException: Cannot delete file, path = 'C:\Users\Anton\AppData\Roaming\com.example\example/python_ffi/lib/python3.11.zip' (OS Error: The process cannot access the file because it is being used by another process. , errno = 32))
As you can see from the error log the path is incorrect and has
/
and\
in different places. Are you planning on fixing this anytime soon?P.S. After fixing the path in this particular place, I've found out that the issue starts to show up in other places.
The text was updated successfully, but these errors were encountered: