-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Fixes: https://github.com/nodejs/node/issues/29975 #29976
Conversation
Welcome @aug2uag and thanks for the pull request! A more descriptive commit message would be welcome. Maybe something like this? src: remove unnecessary header file
src/node_stat_watcher.cc imports `env.h` but it is not necessary to do so.
Fixes: https://github.com/nodejs/node/issues/29975 (Bonus points for adding an explanation as to why it's not necessary to import it!) |
This file uses cc @addaleax @bnoordhuis @danbev any opinions on this? |
Thank you @Trott ! I'm sorry I didn't realize the consequences of no comment. I'm very new to contributing and your comment is very helpful to me. |
Instead of removing env.h it should probably be changed to include env-inl.h, that's the predominant pattern in our code base. src/module_wrap.cc and src/node_report_module.cc could also be updated. |
Getting a clean CI on this will probably require landing #29979 first. |
is that an IE render issue? doctool/test-doctool-html.js may have some issues with the HTML or mismatch issue with MD. test-doctool-html.js:100 doesn't close
|
Apologies, I wasn't intending to push the changes to lib/_stream_writable.js and I don't know how to revert my changes. |
@aug2uag The problem likely is that you are opening this pull request against your own master branch. Create a different branch and open a PR against that branch so you can keep your PR changes separate from each other. |
the breaking html was necessary in doctest, sorry about that this PR should be Ok minus the first commit message i was unable to re-amend |
@Trott is the CI on this broken from the commit message or something else? |
Just the commit message. If you can rebase and fix it, great. But if not, whoever lands this can also fix it. |
@Trott update ready |
src/node_stat_watcher.h
Outdated
@@ -26,7 +26,7 @@ | |||
|
|||
#include "node.h" | |||
#include "handle_wrap.h" | |||
#include "env.h" | |||
#include "env-inl.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I should have explained it more clearly last time. Compilation units (*.cc files) use env-inl.h but header files should normally use plain env.h because they only need the declarations, not inline definitions. My apologies!
edit: that also means src/node_stat_watcher.cc should keep including env-inl.h.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bnoordhuis node_stat_watcher.h
and node_stat_watcher.cc
both import env.h
should this be (1) left as is or (2) only remove env.h
from implementation file or (3) change implementation import to env-inl.h
while keeping env.h
in the header file or other? just a little confusing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Option (3) :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you and for your patience, very sorry about all the above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks! Do you want to update src/module_wrap.cc and src/node_report_module.cc too?
Anna, sorry I just did the same with the other 29988 (i missed your comment here) .. there were the conflicts that I thought needed to be committed-- i didn't mean to cause you trouble. |
@addaleax i tried rebasing but getting that changes are up to date, dunno what to do |
@aug2uag Are you rebasing against nodejs/node’s Also, somebody else can do the rebase for you if you prefer. |
@addaleax that was it thank you, i followed the prompts and ended up pushing again-- i hope the CI and team aren't too upset here |
@aug2uag Nobody’s upset, don’t worry about that :) It looks like some other unrelated changes from another PR have slipped in there, though? |
@addaleax thanks, also for your great presentations. it's extraordinary to be interacting with you all on this project. i'm here in case there's anything i can do on my part |
the failure |
while trying to land this, I get
|
@gireeshpunathil it may be artifacts from my misuse of git, the change may be merged from a clean start if it helps |
@aug2uag - no worries at all; I don't think that is the case, but I even don't know how to solve it. Let us wait till some one comes to resolve it! |
PR-URL: #29976 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Landed in 5473ceb :)
You pointed to the URL for the issue, not the PR 🙂 |
The entire commit message is
|
change src/node_stat_watcher.cc to import `env-inl.h` instead of `env.h`. PR-URL: #29976 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
It's a holiday weekend in the U.S. (and the middle of the night in the Americas), and the weekend everywhere else (well, except in two time zones where it's before 2AM on Monday morning), and things are slow so I force-pushed this as the commit message:
|
@Trott thanks for noticing and fixing this! |
change src/node_stat_watcher.cc to import `env-inl.h` instead of `env.h`. PR-URL: #29976 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
change src/node_stat_watcher.cc to import `env-inl.h` instead of `env.h`. PR-URL: #29976 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
change src/node_stat_watcher.cc to import `env-inl.h` instead of `env.h`. PR-URL: #29976 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes