-
Notifications
You must be signed in to change notification settings - Fork 15
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
Node.js 22 issue: mbus-serial.c(90,23): warning C4090: 'function': different 'const' qualifiers #124
Comments
Hn... but a warning should not a failure reason. only "errors" are. |
So, yes my test shows the same but honestly ... I have n f***ing clue what MSVC wants to tell me because under linux and macos it compiles successfully ... |
I am not sure either but I found nodejs/nan#968 which contains stuff like the following also
Maybe nodejs/node#52794 is helping also? Not sure if it is used at all? |
Ohhh this finding sound interesting ... will try |
Ok 2.24 with the fix is on the way. But this is a great example that Node.js 22 is not yet LTS and so normally I do not really care about it because from last years experiences such stuff like here happens too often in the first time of. a new Node.jhs version and spending hours like today to just find (with your support, thank you for that) out that it will be fixed in the next Node.js version is a pain ;-) |
@Apollon77 Thanks for resolving the problem. I didn't want to cause lots of headache and waste of time. |
Hi @Apollon77 The commit has been pushed Anyhow, it is not available on NPM yet... |
Then tell your users that a new Node.sjs 22 is not automatically LTS, it becomes LTS then usually in October of the release year ;-) For the update ... uups ... then seems some windows fun errored and I missed that. restarted it ... lets see |
Release done |
I just wanted to let you know that I think there is still somewhere an issue with mbus and Node.js 22 on Windows. Unfortunately I will not be able to look into it before the end of June. |
Hm .. puuhh .. that seems like the test crashes completely because it do not even log at which test step it fails...strange. No idea. tests I have in mbus lib are all working. |
To be honest I don't know either.. it seems to crash on the C level ... but not sure..
The tests that are failing are in https://github.com/eclipse-thingweb/node-wot/blob/master/packages/binding-mbus/test/mbus-connection-test.ts and are rather basic. You should be able to test it by checking out node-wot or maybe better the PR 1274:
|
Describe the bug
In node-wot we tried to add Node.js 22 as CI dependency and the run fails with
To Reproduce
see eclipse-thingweb/node-wot#1274
https://github.com/eclipse-thingweb/node-wot/actions/runs/8878604576/job/24558179052?pr=1274#step:5:24
Expected behavior
npm ci
ornpm install
should work.Screenshots & Logfiles
https://github.com/eclipse-thingweb/node-wot/actions/runs/8878604576/job/24558179052?pr=1274#step:5:24
Versions:
Tested node-mbus 2.2.2.
The file
/libmbus/mbus/mbus-serial.c
mentioned in the error log seems to be referenced here:node-mbus/binding.gyp
Line 42 in 17a3b50
The text was updated successfully, but these errors were encountered: