Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
module: self referential modules in repl or -r#32261
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
dnlup commented Mar 14, 2020 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-r-r
guybedford left a comment
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.
Thanks for working on this @dnlup.
Uh oh!
There was an error while loading. Please reload this page.
-r-r-r-rdnlup commented Mar 30, 2020
@guybedford I added tests and removed the WIP. I hope I am not forgetting any test case. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
guybedford left a comment
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.
Thanks @dnlup - this seems good to me.
//cc @nodejs/modules-active-members
hybrist left a comment
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.
Thanks for making this happen! I feel like this is reaching the limits of inlining the logic though.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
dnlup commented Apr 6, 2020
I tried to address all your suggestions, could you take another look? |
hybrist left a comment
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.
Thanks for your patience with this & sorry for the late review feedback. :) LGTM!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ljharb left a comment
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!
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
dnlup commented Apr 16, 2020
I have rebased against |
nodejs-github-bot commented Apr 17, 2020
8ae28ff to 2935f72Comparednlup commented Jun 9, 2020
rebased the latest changes from |
nodejs-github-bot commented Jun 21, 2020
dnlup commented Jul 2, 2020
Should I keep this PR open? |
ljharb commented Jul 2, 2020
It seems like the only barrier to it landing is that CI is failing? |
MylesBorins commented Jul 2, 2020
I'm going on vacation for a week, but can help with bringing this over the finish line when I get back. |
dnlup commented Jul 3, 2020
Only the windows build seems to be failing, I don't understand why though, I can't find a specific error message beside the report that the test exited with code |
richardlau commented Jul 3, 2020
It's #34163. The GitHub actions UI is not good for searching through the logs. I find it easier to search the raw log: |
dnlup commented Jul 3, 2020
Thank you @richardlau |
dnlup commented Jul 17, 2020
After rebasing to resolve the conflicts I am getting |
3c0389b to 8618148CompareUh oh!
There was an error while loading. Please reload this page.
guybedford left a comment
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.
Just noted one more refactoring here, sorry to be difficult but would just be nice to try keep the arguments primitive for functions where we can.
Otherwise lets get this merged now.
Uh oh!
There was an error while loading. Please reload this page.
Load self referential modules from the repl and using the preload flag `-r`. In both cases the base path used for resolution is the current `process.cwd()`. Refs: * nodejs#31595
guybedford left a comment
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.
Let's get this landed finally...
nodejs-github-bot commented Jul 23, 2020
Load self referential modules from the repl and using the preload flag `-r`. In both cases the base path used for resolution is the current `process.cwd()`. Also fixes an internal cycle bug in the REPL exports resolution. PR-URL: #32261Fixes: #31595 Reviewed-By: Guy Bedford <[email protected]> Reviewed-By: Jan Krems <[email protected]>
guybedford commented Jul 23, 2020
dnlup commented Jul 23, 2020
Thank you all for the help with this PR. |
Load self referential modules from the repl and using the preload flag `-r`. In both cases the base path used for resolution is the current `process.cwd()`. Also fixes an internal cycle bug in the REPL exports resolution. PR-URL: #32261Fixes: #31595 Reviewed-By: Guy Bedford <[email protected]> Reviewed-By: Jan Krems <[email protected]>
Load self referential modules from the repl and using the preload flag `-r`. In both cases the base path used for resolution is the current `process.cwd()`. Also fixes an internal cycle bug in the REPL exports resolution. PR-URL: nodejs#32261Fixes: nodejs#31595 Reviewed-By: Guy Bedford <[email protected]> Reviewed-By: Jan Krems <[email protected]>
Load self referential modules from the repl and using the preload flag `-r`. In both cases the base path used for resolution is the current `process.cwd()`. Also fixes an internal cycle bug in the REPL exports resolution. PR-URL: #32261 Backport-PR-URL: #35385Fixes: #31595 Reviewed-By: Guy Bedford <[email protected]> Reviewed-By: Jan Krems <[email protected]>

Load self-referential modules from the repl and using the preload flag
-r.In both cases, the base path used for resolution is the current
process.cwd().Fix#31595
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes