-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
document SUFFIX directive #614
Comments
@agarwal how do you get merlin working with eliom? Are you using solvuu-build to do this? |
@bluddy solvuu-build's Eliom support doesn't auto-generate a I don't know how we could make merlin check both the server and client side code. I guess merlin would have to allow 2 |
@agarwal would it be useful to have a command line argument/environment variable to specify an alternative to the |
A little. At least you could have 2 merlin files and pick which one you want to use easily. However, even better would be that both files are used simultaneously, so the that each file is always type checked twice. This is very eliom specific. It's a unique case where the same files are compiled twice. Thinking more about it now, there might be other complications. Not every file has to be compiled twice. Rather, some need to be compiled just once against either |
It's probably easiest to teach merlin how to deal with eliom's ppx markers. And rather than having multiple .merlin files, it's probably more useful to have multiple sections of the .merlin file separated by headings. The sections would specify, among other things, files exclusive to them. This feature might be useful for other projects as well, though I can't think of an example off the top of my head. |
That shouldn't require any special support from merlin. Adding eliom's client or server ppx packages as a
I like that. Sounds better than multiple merlin files. |
I talked with @Drup about eliom support. I am surprised you can have a good experience without any help. Or maybe you are using a good subset of eliom & merlin features? :) |
On the eliom side, I'm having merlin do server side compiling only. So it is limited but better than nothing. |
#491 added support for a new SUFFIX directive, but there is no mention of this in the project configuration wiki page.
If I understand the commit correctly, a line like
SUFFIX .eliom .eliomi
is needed. I tried this but it doesn't seem to have any effect. I also tried without the dots..eliom
files are getting checked fine even without this directive. However, in.eliomi
files, merlin gives me:which suggests merlin is incorrectly treating the file as an implementation file.
The text was updated successfully, but these errors were encountered: