-
Notifications
You must be signed in to change notification settings - Fork 185
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
[BUG] Regression in generated code: 'There is no containing label named "x"' #1547
Comments
The duplicated labels are not really duplicated because there are not inside the same function. They belong to two different (yet nested) functions. |
Right, looking at the non-minified version I can see similar labeling, so I think my hypothesis is not correct. Will try to find some repro or more information, if there is anything I can test, please lmk. On 8 Dec 2023, at 23:53, hhugo ***@***.***> wrote:
The duplicated labels are not really duplicated because there are not inside the same function. They belong to two different (yet nested) functions.
|
What version of esbuild do you use ? |
I tried with both esbuild 0.14.54 and 0.19.8 and saw the same error. I am noticing now that somewhere in the process with vite (which is the tool driving esbuild), the top level |
Could you point to issues you end up opening if/once you figure out who's responsible for the deletion ? |
It seems the problem is in rollup (another module bundler, i am not sure why vite uses two module bundlers 😞 ) Repro:
|
Describe the bug
As part of the Melange playground, we create a version of ocamlformat that we can run on the browser.
When updating to the most recent version of jsoo, we noticed an error when creating this JS version of ocamlformat: https://github.com/melange-re/melange-re.github.io/actions/runs/7139925249/job/19444213740#step:15:44
The error comes from esbuild, I paste below some details.
Part of the error (click to open)
Debugging notes
profile=release
but it does not occur withprofile=dev
.b
labels, see the extracted section of the generated code below:Section of generated minified JS that causes the failure (click to open)
Expected behavior
Js_of_ocaml should generate code that is usable by other JavaScript tooling.
Versions
See section "Debugging notes" above about commits.
The text was updated successfully, but these errors were encountered: