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

Project import fails with JetBrains Fleet #1071

Open
DanielThomas opened this issue Apr 8, 2024 · 0 comments
Open

Project import fails with JetBrains Fleet #1071

DanielThomas opened this issue Apr 8, 2024 · 0 comments

Comments

@DanielThomas
Copy link

What happened?

When enabling Smart Mode with JetBrains Fleet, projects with this plugin applied fail due to the expectation that the .idea directory will exist:

java.io.FileNotFoundException: /home/coder/Projects/bb/edge/edgezuul/.idea/palantir-java-format.xml (No such file or directory)	
at com.google.common.io.Files.newWriter(Files.java:110)	
at com.palantir.javaformat.gradle.PalantirJavaFormatIdeaPlugin.updateIdeaXmlFile(PalantirJavaFormatIdeaPlugin.java:132)	
at com.palantir.javaformat.gradle.PalantirJavaFormatIdeaPlugin.createOrUpdateIdeaXmlFile(PalantirJavaFormatIdeaPlugin.java:108)	
at com.palantir.javaformat.gradle.PalantirJavaFormatIdeaPlugin.lambda$configureIntelliJImport$8(PalantirJavaFormatIdeaPlugin.java:87)	
at org.gradle.internal.code.DefaultUserCodeApplicationContext$CurrentApplication$1.execute(DefaultUserCodeApplicationContext.java:122)

That's not the case with Fleet, but it is technically an IntelliJ import because that's what the smart mode backend is hosting.

What did you want to happen?

Avoid failing when the .idea directory does not exist. Workaround is to mkdir .idea.

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

No branches or pull requests

1 participant