Skip to content

Commit

Permalink
Fix idea plugin
Browse files Browse the repository at this point in the history
Summary:
Today I checked GitHub and noticed that the gradle builds are still broken.
This was due to recent changes that I had made, where I renamend the default style.
Looks like I missed updating in this one place here.

Error that is shown from running `ktfmt/smoke_tests.sh`
```
> Task :compileJava FAILED
/Users/nbondanca/fbsource/xplat/ktfmt/ktfmt_idea_plugin/src/main/java/com/facebook/ktfmt/intellij/KtfmtSettings.java:81: error: cannot find symbol
    public UiFormatterStyle uiFormatterStyle = UiFormatterStyle.DEFAULT;
                                                               ^
  symbol:   variable DEFAULT
  location: class UiFormatterStyle
Note: /Users/nbondanca/fbsource/xplat/ktfmt/ktfmt_idea_plugin/src/main/java/com/facebook/ktfmt/intellij/InitialConfigurationStartupActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error

FAILURE: Build failed with an exception.
```

Reviewed By: strulovich

Differential Revision: D58463661

fbshipit-source-id: 5b97f475d58b5f7ec3c09facc79aa2770e2b8a8e
  • Loading branch information
Nivaldo Bondança authored and facebook-github-bot committed Jun 12, 2024
1 parent bd5a0de commit e90d4fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ enum EnabledState {
static class State {

private EnabledState enabled = EnabledState.UNKNOWN;
public UiFormatterStyle uiFormatterStyle = UiFormatterStyle.DEFAULT;
public UiFormatterStyle uiFormatterStyle = UiFormatterStyle.META;

// enabled used to be a boolean so we use bean property methods for backwards
// compatibility
Expand Down

0 comments on commit e90d4fc

Please sign in to comment.