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

Fix IntelliJ plugin on IJP 242 #501

Closed
wants to merge 6 commits into from

Conversation

rock3r
Copy link
Contributor

@rock3r rock3r commented Aug 7, 2024

This PR fixes the issues in IJ 24.2, where the ktfmt crashes when being loaded and is essentially non-functional. It also removes a deprecated API usage in the same file.

Closes #494

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 7, 2024
@rock3r rock3r force-pushed the fix-intellij-plugin-on-242 branch from 49bd0e8 to d0e374f Compare August 7, 2024 18:42
@rock3r rock3r force-pushed the fix-intellij-plugin-on-242 branch 2 times, most recently from 37569f0 to a61feaf Compare August 8, 2024 10:53
@hick209
Copy link
Contributor

hick209 commented Aug 8, 2024

Would you mind rebasing it?

@rock3r rock3r force-pushed the fix-intellij-plugin-on-242 branch from a61feaf to 5a7bad8 Compare August 8, 2024 14:41
@rock3r
Copy link
Contributor Author

rock3r commented Aug 8, 2024

Done

@rock3r
Copy link
Contributor Author

rock3r commented Aug 8, 2024

Ah, on main! One sec

Notification groups should not be stored in fields.
It causes a crash when starting the IDE in IJ 242.
It's slower on CI since it's a one-off build
@rock3r rock3r force-pushed the fix-intellij-plugin-on-242 branch from 5a7bad8 to 03b319d Compare August 8, 2024 14:46
@rock3r
Copy link
Contributor Author

rock3r commented Aug 8, 2024

Done and green

@facebook-github-bot
Copy link
Contributor

@hick209 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@hick209 merged this pull request in 1ae24d9.

@rock3r rock3r deleted the fix-intellij-plugin-on-242 branch August 8, 2024 17:01
facebook-github-bot pushed a commit that referenced this pull request Aug 8, 2024
Summary:
> [!NOTE]
> This requires #501 to be merged first

This PR is the basis for future improvements of the plugin. In this PR, the plugin code is converted to Kotlin, the configurable is recreated with the Kotlin UI DSL, and the goal is to maintain the existing behaviours.

The only small change is that the style dropdown in the configurable is disabled when ktfmt is disabled.

Pull Request resolved: #502

Reviewed By: strulovich

Differential Revision: D60968984

Pulled By: hick209

fbshipit-source-id: 467ce14d21d06c783d8e9254e913f966dcbff8ca
@hick209 hick209 mentioned this pull request Aug 13, 2024
github-merge-queue bot referenced this pull request in slackhq/foundry Aug 28, 2024
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [com.facebook:ktfmt](https://togithub.com/facebookincubator/ktfmt) |
dependencies | minor | `0.51` -> `0.52` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>facebookincubator/ktfmt (com.facebook:ktfmt)</summary>

###
[`v0.52`](https://togithub.com/facebookincubator/ktfmt/blob/HEAD/CHANGELOG.md#052)

##### Fixed

- IntelliJ plugin crash
([https://github.com/facebook/ktfmt/pull/501](https://togithub.com/facebook/ktfmt/pull/501))
- Ordering of `@property` and `@param` in KDoc
([https://github.com/facebook/ktfmt/pull/498](https://togithub.com/facebook/ktfmt/pull/498))
- Annotation in return expressions
([https://github.com/facebook/ktfmt/issues/497](https://togithub.com/facebook/ktfmt/issues/497))

##### Changed

- KotlinLang style also managing trailing commas
([https://github.com/facebook/ktfmt/issues/216](https://togithub.com/facebook/ktfmt/issues/216),
[https://github.com/facebook/ktfmt/issues/442](https://togithub.com/facebook/ktfmt/issues/442))
- Converted IntelliJ plugin to Kotlin
([https://github.com/facebook/ktfmt/pull/502](https://togithub.com/facebook/ktfmt/pull/502))

##### Added

- More stability tests
([https://github.com/facebook/ktfmt/pull/488](https://togithub.com/facebook/ktfmt/pull/488))
- Custom profile in plugin settings, mirroring Gradle/Maven plugins
([https://github.com/facebook/ktfmt/pull/503](https://togithub.com/facebook/ktfmt/pull/503))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC40NS4wIiwidXBkYXRlZEluVmVyIjoiMzguNTIuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

---------

Co-authored-by: Zac Sweers <pandanomic@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

idea plugin is incompatible with idea 2024.2 beta
4 participants