-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
emcc --clear-cache: "Emscripten setup is not complete" #22550
Comments
Agreed, if its a easy change that would make sense. On the other hand I expect most of our users are not running bootstrap themselves since they are using a pre-packaged version of emscripten (bootstrap is really only something that emscripten dev / git users should need to run). |
Actually, thinking even further, given that we are able to detect when it is needed to run |
I'm not a fan of the compiler magically running stuff like this on any invocation. For example, I think its a mistake that we allow the automatic build of library at link time. I think the compiler commands should be a simple as possible, and running npm and git commands behind the scenes seems like a bad idea. I can elaborate more on the reasons why I think this.. but I'm actually heading out for the day right now. |
I also would prefer it to autorun. When I jump around branches, I run into bootstrap complaining. Maybe we could make the auto bootstrap a |
That sounds like a great reason to add a git checkout hook, but not something we should build into emcc itself. I don't think its reasonable to expect a complex tool like emscripten to just work on checkout without an kind of post-checkout/build step at all. If we go down this path why not also have emcc download binaryen and llvm on demand. There are several reasons I don't like this kind of idea:
Anyway, a git checkout hooks it probably something we could have. I personally don't mind running in manually once in while. @brendandahl, how do node projects generally deal with this problem? Are they running |
I totally agree with the too much magic argument. One of the pain points with the bootstrap.py error is that it complains about false positives, e.g. when I check out to another branch and then back. I wonder if we could demote it to a yellow warning maybe. So many times when I git checkout between branches my work gets stopped by needing to rerun bootstrap yet again, even though nothing relevant (npm, entry points, posixtestsuite) has really changed. I just keep being stopped to bootstrap. Maybe missing bootstrap could be demoted to a yellow warning? Sidenote, I wonder maybe if missing the posixtestsuite could be an error print when attempting to run |
Regarding the need to run bootstrap between when switch branches. The issue is that the checks are based on file timestamps vs file contents, so if you check between branches A and B and then a have different version of Regarding the I think a reasonable path forward is to recommend a simple checkout hook for folks that don't like their flow interrupted when they checkout a new version of package.json. |
This is not my experience. I get the |
I think its pretty normal for projects (e.g. node projects) to require a step such an So I don't think is reasonable to require that emscripten just work out of the box with zero build or configuration steps when switching branched. However, I think a post checkout git hook that runs these steps is a great way to make it feel like that. I'm going to look into that now. |
I wonder if it might make sense to skip the bootstrap check on some commands, e.g.
?
The text was updated successfully, but these errors were encountered: