-
Notifications
You must be signed in to change notification settings - Fork 6
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
win32: source file exclusive access locks #12
Comments
Fascinating. Since ascsh is a thin wrapper around MXMLC, it knows nothing about source files, and MXMLC provides very few public functions. I wonder why FlashDevelop users (also win32) don't see this issue. Maybe FD unlocks source files manually? @elsassph - any idea about MXMLC locking source files? Hmm, the solution may have to be some external script that manually unlocks the source files. |
We don't do anything special to unlock the files and never saw this behaviour - does that happen with previous versions of the AIR SDK? |
yes, FD is not affected. |
looking at TaskManager while FD compiles - it calls fdbuild.exe then it leaves a java.exe (some sort of IPC scheme here, i assume), while exiting fdbuild.exe. but unlike starting ASCSH and using the shell from console, the java.exe that FD instantiates does not lock the source files. |
I notice FD's version isn't up to date: https://github.com/elsassph/ascsh You possibly want to compare them. |
Yes that's IPC. The Java process is maintained by FlashDevelop.exe. |
just tried it - the same issue occurs. |
Then the difference may be the Java runtime, or the arguments... |
that java.exe process is versioned as follows for both ASCSH standalone and FD: also tried the exact same arguments that mxmlc-cli from FD uses in ASCSH and the issue still happens. |
I have similar issue: files that have errors in them kept locked preventing me from deleting/renaming them. Though I still able to edit/save them. |
Hmm, as an aside, I don't have this problem using ascshd from the commandline in Linux, though that's a obviously different environment. |
hello,
i've just tried the current 'master' branch with 'ant install' on the latest AIR SDK / win32.
it works great, but one problem that i've noticed is that if you run 'compile 1' on the simplest of Main.as projects with a deliberate small error you will find that after MXMLC displays the error, java.exe locks the file (assuming LockFile() from the WINAPI) and the file cannot be changed until ASCSH is stopped (i.e. the jave.exe process is stopped) or the file is manually unlocked by another process.
this issue prevents fixing errors / warnings in any source file that was just compiled by MXMLC via ASCSH.
any possible solutions?
The text was updated successfully, but these errors were encountered: