Open minchu0x37 opened 1 month ago
That error happens when the plugin's preprocess callback isn't called by Prettier. Specifically, this function was never called: https://github.com/electrovir/prettier-plugin-multiline-arrays/blob/b1fb14403fb94cd1a25e8e0ac6e72e982bcdcb79/src/printer/original-printer.ts#L5-L7
I have no idea why that issue would happen that this specific situation 🤔
I am also very confused. It runs successfully locally, but it fails when running in GitHub Actions. 🤔
I am using prettier_action in GitHub Actions and the prettier-plugin-multiline-arrays plugin, but I encountered an error when running it. The error is shown below.![1721295068734](https://github.com/user-attachments/assets/48dc98c9-20ff-4e73-875e-ab644f588b75)
My config as blow: `jobs: prettier: runs-on: ubuntu-latest
The .prettierrc file is :
{ "plugins": ["prettier-plugin-multiline-arrays"], "multilineArraysWrapThreshold": 3, "semi": true, "trailingComma": "all", "singleQuote": true, "printWidth": 120 }`Why did this error occur?