GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — IntelliJ formatter by IlyasYOY · Pull Request #2020 · diffplug/spotless

Conversation

@IlyasYOY

@IlyasYOY IlyasYOY commented Jan 23, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Opened a draft of the #200

Hope this looks fine!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

cassis163 reacted with thumbs up emoji tautologicc, surecloud-jleite, and veyndan reacted with hooray emoji
All reactions
  • 👍 1 reaction
  • 🎉 3 reactions
IlyasYOY added 7 commits January 11, 2024 18:04
@IlyasYOY
Basic IDEA usage locally.
6419de1
Thought of implementation plan, experimented with code dependencies using
tests.
@IlyasYOY
Parameterize IDEA usage.
b84d243
Added parameterized method to call idea formatter.
@IlyasYOY
Verify IDEA binary.
1d8d9b2
Used ForeignExe to check idea binary
@IlyasYOY
Merge branch 'main' of github.com:diffplug/spotless
9d09760
@IlyasYOY
Gradle IDEA integration.
affd905
IDEA running using gradle
@IlyasYOY
Maven IDEA integration.
effe2fc
IDEA running using maven
@IlyasYOY
Make IDEA tests special
8e30175
As described here:
diffplug#200 (comment)
@IlyasYOY IlyasYOY mentioned this pull request Jan 23, 2024
IDEA-180965: Add support for IntelliJ formatter #200
Closed
@IlyasYOY
docs: CHANGES.md
1554dd6
@IlyasYOY

IlyasYOY commented Jan 23, 2024

Copy link
Copy Markdown
Contributor Author

I'd also considered adding IDEA step into Kotlin extension.

Or we could make it in the next PR.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@IlyasYOY
Config file for IDEA step
763eaac
This part is lacking tests due to unpredictable nature of IDEA
formatting. They may change configs thus breaking build.
nedtwigg
nedtwigg reviewed Jan 23, 2024
View reviewed changes

@nedtwigg nedtwigg left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

This is a great start! It doesn't support up-to-date checking at all right now, and that would be fairly easy to add. I linked an example that does this correctly.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

IlyasYOY reacted with rocket emoji
All reactions
  • 🚀 1 reaction
Comment thread CHANGES.md Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread lib/src/main/java/com/diffplug/spotless/java/IdeaFormatterFunc.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

IlyasYOY added 5 commits January 24, 2024 09:56
@IlyasYOY
CI Fixes
fdb73b7
@IlyasYOY
Merge branch 'main' of github.com:diffplug/spotless
e58c9f8
@IlyasYOY
docs: fixed structure of CHANGES.md
c6c6cce
@IlyasYOY
Merge branch 'main' of github.com:diffplug/spotless
bf5918c
@IlyasYOY
Create State object
9123527
This object is now resides in IdeaStep
@IlyasYOY
IlyasYOY marked this pull request as ready for review January 27, 2024 11:45
@IlyasYOY
IlyasYOY requested a review from nedtwigg January 27, 2024 11:46
@IlyasYOY

IlyasYOY commented Jan 28, 2024

Copy link
Copy Markdown
Contributor Author

The results looks strange, build fails on CI but locally everything is fine 🤔

gradle plugin-gradle:spotlessJavaCheck
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@IlyasYOY
Merge branch 'main' of github.com:diffplug/spotless
7d6eed4
@simschla

simschla commented Feb 7, 2024

Copy link
Copy Markdown
Contributor

I'd also considered adding IDEA step into Kotlin extension.

Or we could make it in the next PR.

I'd even consider adding this formatter to the generic FormatExtension as IntelliJ IDEA can format countless languages and is not restricted to Java and/or Kotlin. (Unless @nedtwigg has objections)

IlyasYOY and tautologicc reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

nedtwigg added 2 commits February 12, 2024 16:03
@nedtwigg
Merge branch 'main' into main-IlyasYOY
e03e715
@nedtwigg
spotlessApply
a0bde46
@nedtwigg

nedtwigg commented Feb 13, 2024

Copy link
Copy Markdown
Member

I'm having a hard time testing this locally. I added idea to my path which was tricky, tried to follow these

https://www.jetbrains.com/help/idea/command-line-formatter.html#8feaa497

But I'm getting Only one instance of IDEA can be run at a time.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@IlyasYOY

IlyasYOY commented Feb 13, 2024

Copy link
Copy Markdown
Contributor Author

I'm having a hard time testing this locally. I added idea to my path which was tricky, tried to follow these

https://www.jetbrains.com/help/idea/command-line-formatter.html#8feaa497

But I'm getting Only one instance of IDEA can be run at a time.

@nedtwigg I guess that's because of you running test from inside of IDEA. I myself using neovim so I obviously didn't face this problem. I guess this might be a blocker for those who use IDEA (almost everybody). Sorry, that I didn't thought gf this problem in advance, I should have had to.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@simschla

simschla commented Feb 15, 2024

Copy link
Copy Markdown
Contributor

That seems to be a (very old!) bug in IntelliJ :(

The listed workaround link no longer exists, but can be found on the web archive

Maybe this helps?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@diffplug diffplug deleted a comment from one-harsh Oct 2, 2024
@diffplug diffplug deleted a comment from fokkoru Oct 2, 2024
@BorisTB

BorisTB commented Apr 24, 2025

Copy link
Copy Markdown

will this ever be merged or what's the status?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@simschla

simschla commented Apr 24, 2025

Copy link
Copy Markdown
Contributor

will this ever be merged or what's the status?

In its current state, it cannot be merged. I'm working on this on another branch, but can't make any promises if and when it will be ready.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@simschla simschla mentioned this pull request Jun 29, 2025
feat: add IntelliJ IDEA formatter #2535
Merged
@simschla
simschla merged commit a0bde46 into diffplug:main Jul 2, 2025
@fikovnik fikovnik mentioned this pull request Jul 2, 2025
Move to idea formatter PRL-PRG/r-compile-server#37
Open
@nedtwigg

nedtwigg commented Jul 7, 2025

Copy link
Copy Markdown
Member

Many thanks to @IlyasYOY and @simschla, this is now released 🥳

IlyasYOY reacted with rocket emoji
All reactions
  • 🚀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@nedtwigg nedtwigg Awaiting requested review from nedtwigg

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@IlyasYOY @simschla @nedtwigg @BorisTB
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.