You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On macOS this code runs fine. On Windows, the program immediately terminates with no error. Checking errorlevel just gives a nondescript 1073741819 (Google seems to indicate File System error). Oddly enough, changing async to sync causes the problem to go away and so does placing the waitUntilExit on the main thread (both of which are obviously a problem because it delays the return)
The text was updated successfully, but these errors were encountered:
The "nondescript" error is actually indicating the real issue - the path does not exist. At least for my default installation of Visual Studio, it is, in fact, correct. The Python interpreter by default is installed to C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\python.exe and your path does not seem correct (ignoring the obvious issues with the condition around the code). Fixing the path seems to resolve the issue for me. I suspect the hang in the changed case was due to a bug in Foundation's RunLoop that has since been fixed by @lxbndr.
I'm going to mark this as invalid for now, however, if you find that adjusting the path does not fix the issue, please re-open the issue.
@compnerd I think the path to python is correct, if I totally change it to something wrong, it gives me a file not found error from Swift itself rather than immediately terminating. But if it’s just the RunLoop issue, I’ll try it again on a newer build.*
Environment
compnerd.org Swift version 5.3-dev (LLVM b6c965e56f7a3c6, Swift 789ada59f316f84)
Windows 10 Pro Version 2004 Build 19041.572
Additional Detail from JIRA
md5: 401fa1b8ecbf06c995206676ce540660
Issue Description:
I have code that is similar to the following:
On macOS this code runs fine. On Windows, the program immediately terminates with no error. Checking errorlevel just gives a nondescript 1073741819 (Google seems to indicate File System error). Oddly enough, changing async to sync causes the problem to go away and so does placing the waitUntilExit on the main thread (both of which are obviously a problem because it delays the return)
The text was updated successfully, but these errors were encountered: