source-academy/modules

[CSG]: Recent changes broke patch's colorizePolygons

Closed this issue · 9 comments

When attempting to run the snowglobe sample, the following error is shown in the REPL:

Line 11: ReferenceError: colorizePolygons is not defined

That name occurs in the JSCAD modelling library's patch file. It would appear that recent changes in master may have broken the CSG module.

Line 11 calls intersect() from the CSG module. A trivial example such as render(cube(silver)) still works without error.

@leeyi45 would you happen to know of anything related to the build system that may have changed recently such that this would be impacted?

I can confirm that the problem exists as of today, in sourceacademy.org. Here is the direct share link: https://share.sourceacademy.org/ab906

I bumped the version of esbuild, that is the only possible breaking change that comes to mind

Update: render(cube(silver)) also does not currently work at https://share.sourceacademy.org/ab906

@leeyi45 at which commit was the version on esbuild bumped?

Update: render(cube(silver)) also does not currently work at https://share.sourceacademy.org/ab906

I am currently able to run it:

image

I am currently able to run it:

Yep, could also run it locally, but not on the website

Yep, could also run it locally, but not on the website

I followed the share link and edited it there. So it was actually running on sourceacademy.org.

Testing on both deployments, neither org nor NUS can run the snowglobe snippet, but they can run the cube.

If the snowglobe works locally, perhaps that's a clue?