reasonml-idea-plugin icon indicating copy to clipboard operation
reasonml-idea-plugin copied to clipboard

bsconfig generators are ignored

Open Coobaha opened this issue 7 years ago • 4 comments

plugin version: 0.56

Description

https://bucklescript.github.io/docs/en/build-advanced.html#customize-rules-generators-support

It is possible to define custom generators.

I have spotted two issues:

  1. Plugin bucklescript tab ignores this custom files (no rebuilds)
  2. It is possible to trigger rebuild by editing other file (.re or ml) so this will trigger rebuild for edited custom file but this requires full path to binary otherwise it won't be found.

This works fine if I call bsb manually.

Coobaha avatar Jun 22 '18 08:06 Coobaha

Oh, I don't know about generators, what are they used for ?

giraud avatar Jun 22 '18 09:06 giraud

@giraud my use case is to generate parser and lexer with menhir and ocamllex (.mly and .mll files)

Coobaha avatar Jun 22 '18 09:06 Coobaha

@Coobaha I added a watcher on mll mly in v0.69. Can you tell me if it change something ?

giraud avatar Dec 15 '18 09:12 giraud

@giraud Thx, they now have some syntax highlighting :)

Editing this files now triggers rebuild but changes to other file types from generators are still ignored.

Coobaha avatar Dec 16 '18 12:12 Coobaha