dprint / dprint-intellij

A dprint plugin for Intellij.
https://plugins.jetbrains.com/plugin/18192-dprint
MIT License
12 stars 2 forks source link

Priming can format cache #88

Open jasonjoneski opened 3 weeks ago

jasonjoneski commented 3 weeks ago

When I enable the d-print plugin, it get's stuck in a loop of background tasks in IntelliJ.

It will run Initialising editor service followed by a Priming can format cache for $file for each file in my project. I would expect this to run once, but it happens continuously in a loop. When I uncheck Enable dprint in the settings, this goes away.

Here is a screen capture of the output in my Background Tasks:

image

I have IntelliJ IDEA 2024.1.3 (Ultimate Edition) Build #IU-241.17890.1, built on June 3, 2024

Dprint plugin: 0.6.0

ryan-rushton commented 4 days ago

Thanks for the report. It should prime the formatting cache for each open file on startup due to some issues with how IntelliJ isn't great at allowing outside processes to run in the formatting pipeline.

The fact that it is getting stuck in a loop is definitely weird. It should try to restart once and abort if it fails. I will look into it.