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

Does not apply to all idea projects #1186

Closed
danieljelder opened this issue Jul 29, 2021 · 0 comments · Fixed by #1206
Closed

Does not apply to all idea projects #1186

danieljelder opened this issue Jul 29, 2021 · 0 comments · Fixed by #1206

Comments

@danieljelder
Copy link

When I read the following in the README:

Option #2
To change the code style config files for all IDEA projects

Run ktlint executable with the appropriate flag:

ktlint applyToIDEA

My understanding is that I should be able to run that command from anywhere, and it will apply to all my IDEA project. However, it complains that no .idea directory was found.

Expected Behavior

The formatting will apply globally, in whatever project I'm currently in.

Observed Behavior

$ ktlint applyToIDEA
.idea directory not found. Are you sure you are inside project root directory?

If I run it in a directory that has a .idea directory, it seems to only apply to that project.

Steps to Reproduce

Run the following in any directory other than an idea project:

ktlint applyToIDEA

Your Environment

  • Version of ktlint used: 0.41.0
  • Operating System and version: Ubuntu 20.04.2 LTS
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 a pull request may close this issue.

1 participant