Skip to content
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

Multiple processes (e.g. -j2) causes some missing stdout #558

Open
goodoldneon opened this issue May 14, 2020 · 0 comments
Open

Multiple processes (e.g. -j2) causes some missing stdout #558

goodoldneon opened this issue May 14, 2020 · 0 comments

Comments

@goodoldneon
Copy link

goodoldneon commented May 14, 2020

Environment

future:   0.18.2
python:   3.8.2
OS:       MacOS 10.15.4

Issue

When I run future with multiple processes, the "RefactoringTool: Refactored" stdout is missing.

For example, I created the following file:

# foo.py
print 1

When running future with multiple processes, I get the following output:

$ futurize -j4 foo.py
RefactoringTool: Skipping optional fixer: idioms
RefactoringTool: Skipping optional fixer: ws_comma
--- foo.py	(original)
+++ foo.py	(refactored)
@@ -1 +1,2 @@
-print 1
+from __future__ import print_function
+print(1)
RefactoringTool: No files need to be modified.

When running future in one process, I get the following output:

$ futurize foo.py
RefactoringTool: Skipping optional fixer: idioms
RefactoringTool: Skipping optional fixer: ws_comma
RefactoringTool: Refactored foo.py
--- foo.py	(original)
+++ foo.py	(refactored)
@@ -1 +1,2 @@
-print 1
+from __future__ import print_function
+print(1)
RefactoringTool: Files that need to be modified:
RefactoringTool: foo.py

It seems like futurize -j4 is able to correctly analyze the file, but also doesn't recognize that the file exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant