rescript-labs / decco

Bucklescript PPX which generates JSON (de)serializers for user-defined types

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Namespace Codecs.re

mrmurphy opened this issue · comments

"Codecs" is a name that I like to use in my top-level projects, and I've run into problems with my module colliding with Decco's "Codecs" module. Would you consider namespacing, so that "Codecs" becomes "Decco_Codecs" and can be used like this: "Decco.Codecs"?

This could also be a good first issue for a contributor.

commented

Sure, seems like a reasonable change. It's kind of annoying that this is a problem, I'd like to see some movement on rescript-lang/rescript-compiler#3324 or rescript-lang/rescript-compiler#2688 but it seems like they're not prioritized :/

Hey folks. I figured I would take a shot at this. When i go to build the project the test directory blows up. Are there build instructions available? yarn watch and yarn watch-ppx didnt get it done for me. Thank you.

commented

@idkjs no build instructions exist currently, but you can look at .travis.yml to get a general idea. Looks like you're already on the right track though.

You may need to run yarn build-ppx before running yarn watch-ppx. Have you tried that? What error message are you getting? What do you mean by the test directory "blowing up"? What OS are you using?

@ryb73 running yarn build-ppx first did the trick. Thank you.