is_relaxed() always returns False on Windows, and no Task objects are created · Issue #5 · samizdatco/corduroy · GitHub
More Web Proxy on the site http://driver.im/
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
Now, Windows uses backslashes in paths so 'tornado/gen.py' in filename is always False. I did a quick fix on my dev machine to change that line to work on Windows as well, and now Task objects are correctly created:
Obviously, if there are similar file path matches somewhere else in the code (I haven't come across) with forward slashes only, they would get the same treatment. I'm not sure if matching a string in the filename of current frame is the optimal way to do that anyway, but that fix would enable developing on Windows.
The text was updated successfully, but these errors were encountered:
On my Windows system,
@relax
didn't make Task objects out of any query, and I suppose this problem arises on any Windows system, like in issue #1 .I traced the issue back to the is_relaxed() function in io.py module (issue #3 made debugging a bit tricky):
Now, Windows uses backslashes in paths so 'tornado/gen.py' in filename is always False. I did a quick fix on my dev machine to change that line to work on Windows as well, and now Task objects are correctly created:
Obviously, if there are similar file path matches somewhere else in the code (I haven't come across) with forward slashes only, they would get the same treatment. I'm not sure if matching a string in the filename of current frame is the optimal way to do that anyway, but that fix would enable developing on Windows.
The text was updated successfully, but these errors were encountered: