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

Error-prone is enabled in idea for uniformity with CLI compilation #2405

Merged
merged 3 commits into from
Sep 22, 2022

Conversation

carterkozak
Copy link
Contributor

error-prone requires several javac options to access compiler innards, which have the side-effect of enabling immutables to function correctly. Given this spooky interaction and our migration toward jdk17 source, it's best to provide uniform behavior.

==COMMIT_MSG==
Error-prone is enabled in idea for uniformity with CLI compilation
==COMMIT_MSG==

error-prone requires several javac options to access compiler
innards, which have the side-effect of enabling immutables to
function correctly. Given this spooky interaction and our migration
toward jdk17 source, it's best to provide uniform behavior.
@changelog-app
Copy link

changelog-app bot commented Sep 22, 2022

Generate changelog in changelog/@unreleased

Type

  • Feature
  • Improvement
  • Fix
  • Break
  • Deprecation
  • Manual task
  • Migration

Description

Error-prone is enabled in idea for uniformity with CLI compilation

Check the box to generate changelog(s)

  • Generate changelog entry

@pkoenig10
Copy link
Member

Should we just remove this logic? The whole point of adding it in the first place is to disable it in IntelliJ. If we're not doing that then it seems a bit unnecessary to keep this.

Unless we think there are people that want to opt-in?

@carterkozak
Copy link
Contributor Author

@pkoenig10 I'm making a minimal change for now, the property itself predates our intellij logic, so I'm leaving that alone for the time being. Figure it's best to avoid behavior changes in edge cases outside of intellij as that's easier than verifying nobody has used the boolean value in unexpected ways.

Medium term, I'd like to see how folks react to errorprone failures in the IDE before making larger changes, we may want to filter out certain checks from idea based on feedback (which would unfortunately bust caches)

@bulldozer-bot bulldozer-bot bot merged commit 8edeb03 into develop Sep 22, 2022
@bulldozer-bot bulldozer-bot bot deleted the ckozak/errorprone_in_idea branch September 22, 2022 13:34
@fawind
Copy link
Contributor

fawind commented Sep 22, 2022

Should we just remove this logic? The whole point of adding it in the first place is to disable it in IntelliJ. If we're not doing that then it seems a bit unnecessary to keep this.
Unless we think there are people that want to opt-in?

We have some usage here and there:

Might not be necessary anymore but probably lower lift to just leave it around.

@svc-autorelease
Copy link
Collaborator

Released 4.176.0

bulldozer-bot bot pushed a commit to palantir/witchcraft-api that referenced this pull request Sep 27, 2022
###### _excavator_ is a bot for automating changes across repositories.

Changes produced by the roomba/latest-baseline-oss check.

# Release Notes
## 4.174.0
| Type | Description | Link |
| ---- | ----------- | ---- |
| Improvement | Allow projects which don't use jdk-15 to resolve latest nullaway | palantir/gradle-baseline#2400 |


## 4.175.0
| Type | Description | Link |
| ---- | ----------- | ---- |
| Fix | Fix GitHub issues navigation Idea config | palantir/gradle-baseline#2403 |


## 4.176.0
| Type | Description | Link |
| ---- | ----------- | ---- |
| Improvement | Error-prone is enabled in idea for uniformity with CLI compilation | palantir/gradle-baseline#2405 |


## 4.177.0
| Type | Description | Link |
| ---- | ----------- | ---- |
| Fix | baseline-immutables adds required exports to the java compiler for compatibility with jdk-17+ | palantir/gradle-baseline#2406 |


## 4.178.0
| Type | Description | Link |
| ---- | ----------- | ---- |
| Fix | Refaster compilation uses exports matching error-prone compilation | palantir/gradle-baseline#2407 |



To enable or disable this check, please contact the maintainers of Excavator.
This was referenced Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants