giraud / reasonml-idea-plugin

ReasonML Language Plugin for IDEA
https://giraud.github.io/reasonml-idea-plugin/
MIT License
338 stars 22 forks source link

bsconfig generators are ignored #68

Open Coobaha opened 6 years ago

Coobaha commented 6 years ago

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.

giraud commented 6 years ago

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

Coobaha commented 6 years ago

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

giraud commented 5 years ago

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

Coobaha commented 5 years ago

@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.