-
Notifications
You must be signed in to change notification settings - Fork 459
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
Compilation broken on win-vs2017 (only tested on Node.js14) #1237
Comments
It's not obvious that anything was committed to node-addon-api around that time. It does not look like 14.x changed either (last release was 4 nov). |
Looks like the real issue, the error is further above in the log
|
@richardlau just wondering if any of the windows auto update you mentioned were around the time we started to see failures in the job. My guess is not but better to ask. |
@StefanStojanovic thanks for info above. Looking at the blame for line 5351, it does not seem to have been modified recently. Jun 13, 2020 And the last change to napi-inl.h and napi.h was Oct14, 2022 so it does not seem liek the code itself was modified around the time the failure started. |
It does looks the machine was updated/rebooted on the 11 Nov (to determine, look at the build history for the machine(s) and any failing windows-update-reboot jobs (failing jobs generally mean the machines were rebooted)):
which led to Python errors (e.g. https://ci.nodejs.org/job/node-test-node-addon-api-new/nodes=win-vs2017/6636/console) until I rolled back and pinned Python on those machines a week ago and then the build was failing with the error in #1237 (comment). |
@mhdawson Looking into it now. From what I understand build https://ci.nodejs.org/job/node-test-node-addon-api-new/nodes=win-vs2017/6640/console is the earliest appearance of the error related to My PR #1201 (comment) looked like it was merged on Nov-15th with no apparent build issues on the PR pipeline. Just curious but do we not include |
I think the issue may be because of the way I am instantiating Digging a bit more into the pipeline error messages, I saw this particular error that was interesting:
I did some research into C2770 but only have a vague idea of what it is. Perhaps one of, or various |
I was able to reproduce this issue locally using visual studio 2019 + node v12. I believe the issue might be MSVC having trouble deducting the type of |
I think that we can close the issue because it has been solved with the following PRs: |
Looks like the CI has been broken since Nov 11th:
https://ci.nodejs.org/job/node-test-node-addon-api-new/nodes=win-vs2017/6656/console
Failure is:
The text was updated successfully, but these errors were encountered: