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

[feature] output forwarding from bazel processes #198

Merged
merged 3 commits into from Mar 23, 2022

Conversation

lukaszwawrzyk
Copy link
Contributor

@lukaszwawrzyk lukaszwawrzyk commented Mar 18, 2022

Now, each bazel process run with BazelRunner (when waitAndGetResult() is called) will send log message to bsp-client:
Running: [command] and forward stdout and stderr. The output is also collected to string and lines list for later use.
PR also includes some refactoring to vavr, refactoring of bazel flags etc.

I also replaced includedTargets and excludedTargets pair with single class TargetSpecs. In the future I imagine it as the main way to specify what should be built/run. It can also contain directories to derive targets from. Bazel runner could resolve what to run and run it.

@lukaszwawrzyk lukaszwawrzyk force-pushed the output-forward branch 2 times, most recently from f1d3a20 to 099cef5 Compare March 18, 2022 15:52
Copy link
Member

@abrams27 abrams27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, but the test fails - I couldn't spot the reason

@abrams27
Copy link
Member

ohh and I thing that it would be nice to color (or make it bold if it is possible) invoking: ... line as well

@lukaszwawrzyk
Copy link
Contributor Author

looks good, but the test fails - I couldn't spot the reason

I think I have a race condition. Working on a fix.

@lukaszwawrzyk
Copy link
Contributor Author

ohh and I thing that it would be nice to color (or make it bold if it is possible) invoking: ... line as well

The problem is that the sync console displays color but the build console doesn't (and you see some unprintable characters). So I just carefully enabled colors only on calls when it is useful and displays in sync console. If I colored the Invoking it would not always display correctly :/

Copy link
Member

@abrams27 abrams27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please update changelog + logging to file

@abrams27 abrams27 changed the title Output forwarding from bazel processes [feature] output forwarding from bazel processes Mar 21, 2022
@abrams27 abrams27 merged commit af436b6 into JetBrains:master Mar 23, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants