Trouble getting custom formatter working in Chrome


#1

I did the following steps:

  • added “bsc-flags”: ["-bs-g"] to your bsconfig.json
  • added [%%debugger.chrome] at the top my .re file
  • enabled custom formatter in Chrome dev tools
  • loaded .html file that loaded some .js files compiled from .re

I also have "module": "es6-global" set in my bsconfig.json.

Is there anything else I need to do to getting the custom formatter working?


#2

I forgot to turn off caching in Chrome. I did run into another issue though: "bsc-flags": ["-bs-g"] actually resulted in incorrectly compiled code.


#3

@kevinbarabash what’s the incorrectly compiled code? Btw, make sure you’re on bs-platform 3.1.5. It contains some fixes


#4

It looked like pattern matching was failing with the wrong variant be passed to the wrong handler. I’ll try 3.1.5 and see that fixes it.