edit-indirect icon indicating copy to clipboard operation
edit-indirect copied to clipboard

Improve Flycheck integration

Open am opened this issue 5 years ago • 1 comments

I'm trying to find a way out to solve a simple problem, and that is, enable Flycheck for vue-files (or any file using mmm-mode).

Since mmm-mode is not supported by Flycheck, and adding this feature doesn't look easy to me, I thought that a simple way to get this done was to use edit-indirect and once in the buffer Flycheck would work. Partially it does, but if the configuration for Flycheck points to binaries local to the project it breaks, since the buffer that edit-indirect uses is not saved into disk (AFAIK).

My proposal is to add an option that when set could save the buffer temporary in the same path of the original path, like:

project
  app.vue
  app.edit-indirect-temp.js

On abort or commit this file would be discarded. What are your thoughts about this?

Thank you

am avatar Sep 14 '18 23:09 am

I'm using flymake and linting in indirect buffers is working fine for me.

Both flycheck and flymake save buffers to temporary files (or pipe the buffer contents) and pass them to linters meaning you don't need to have them stored on a physical disk in a lot of cases. Some checkers may expect a file-name or identifier that may not work properly in indirect buffers.

mohkale avatar Aug 13 '21 16:08 mohkale