-
Notifications
You must be signed in to change notification settings - Fork 465
Checking the backward compatibility of V10 #5493
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
Comments
Can you try without turning on V4? Just use the latest compiler. For 1: perhaps |
Can you explain what the
I already noticed this, there are no |
Sorry I just meant without turning on any specific V4 options. But it sounds like you've already done that.
Got a repro that can be extracted from the real code? |
Let me talk to the security supervisor first if I can add you as a collaborator to my company repo. I hope that I can give the company code base as corpus for V10 test. Is it helpful for you to repro? |
Actually that does not seem necessary. It should really be about copying a couple of lines of code and remove any sensitive information. |
Alright. I have 17 files with error 1. This is one of them. I've confirmed by manager that it is possible to invite you as collaborator to my company forked repo. Feel free to let me know if you need. |
If you remove the part that does `%relay. ...`, does the error go away?
|
Oh, you're correct. Error 1 is gone after removing the module bindings with |
I think it does. The question is what code the relay ppx generates. |
@zth any thoughts? |
In fact don't even know: is the error message coming from the relay ppx or from the compiler (on the generated code). |
I'd have to look a bit deeper to be able to say anything meaningful. Let me see if I can find time for it during the weekend, will get back to you. |
@zth My company decided to open the code base in public for V10. Maybe it could be a test bed https://github.com/green-labs/sinsunhi-frontend-mirror |
This seems to build fine with current compiler master. |
Actually not, took a little time to convince yarn to install a local version of the compiler. |
OK so for 2, now |
As for 3, I'm not sure that externals without decorators were ever supported. |
This leaves us with 1 to investigate. |
@mattdamon108 Is there a version of the repo that reproduces 1? As currently compilation stops because of the other errors so I did not get past building dependencies. |
@cristianoc Did you pass the compilation successfully with the current master V10 of compiler? What kind of error stop you building dependencies? |
If the error of building dependency is from |
Haven't had time to look yet unfortunately, but if it's just rescript-relay in general that fails, then trying to build https://github.com/zth/rescript-relay/tree/master/example with the new compiler should also fail, and might be a bit easier to get setup, if there were dependency issues in the other repo. |
Here:
|
It's the ppx that does not like some attributes. Which presumably are introduced by the parser. |
OK so the ppx uses some off-the-shelf utils that do this: |
I'm not sure, but I can't find the type constructor |
Ah.. Sorry I found it too 0cdb221 I mistakenly tried to find it inside the project which is V9. I realized again that the release had been made quite long ago. |
acknowledged current status in release notes |
The |
While I'm writing JSX PPX V4, I tried to verify that V4 will not break a large existing application. So, I ran it on some projects and encountered some errors which seem not related to V4, I guess.
Attributes not allowed here
I'm not sure what causes this error. I've looked for the error msg in the compiler, but no gain.
Multiple definition of the type
It was fine in V9, but I found this is not allowed anymore in V10. It could break the existing projects, I guess.
Not a valid global name
I think this kind of issue goes to each submodule, but it may cause breaking. Maybe it could be documented as some sort of migration plan for open source maintainers.
The text was updated successfully, but these errors were encountered: