Skip to content
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

wasm: Revert incorrect fixes for emsdk+webpack build #1191

Merged
merged 3 commits into from
Apr 3, 2023
Merged

Conversation

V-FEXrt
Copy link
Collaborator

@V-FEXrt V-FEXrt commented Apr 1, 2023

Previously I set ENVIRONMENT=web as a "fix" for the wasm+emsdk builds. This resulted in a passing build but broke the desktop version of the extension at runtime. (Unsurprisingly it fixed the web version)

This change reverts that and pins back to an older version of emsdk. I think the revert is needed as newer versions of emsdk more readily use ES6 style exports which then in turn breaks webpack. (webpack/webpack#16878). We can possible avoid this by setting EXPORT_ES6=0 and that did seem to work but after spending all day deep in the weeds I just want to return to a known working state so desktop users can continue to be productive.

This comes at a cost to the web version of the LSP, for some reason its failing in a new/different way that it has before even though we should be returning to old functionality. In the short term this tradeoff seems reasonable as most users use the desktop app and syntax highlighting, the most important feature for code review, still works with the web extension.

There is some interesting discussion at emscripten-core/emscripten#19066 as well. Hopefully we can get this resolved fairly quickly.

After landing this we should fast track a release since folks have been without a working desktop LSP for a bit.

@V-FEXrt V-FEXrt changed the title Emsdk revert wasm: Revert incorrect fixes for emsdk+webpack build Apr 1, 2023
@V-FEXrt V-FEXrt marked this pull request as ready for review April 1, 2023 00:45
Copy link
Contributor

@ErikParawell-SiFive ErikParawell-SiFive left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested the desktop version is working. The web one is currently broken, but is a low priority item in my mind.

Copy link
Contributor

@JakeSiFive JakeSiFive left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I'm happy to return to a known working state. I'm not sure that anyone is using the web extension right now.

@V-FEXrt V-FEXrt merged commit c9dfbfe into master Apr 3, 2023
@V-FEXrt V-FEXrt deleted the emsdk-revert branch April 3, 2023 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants