{"action":"opened","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/24388","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/24388/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/24388/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/24388/events","html_url":"https://github.com/nodejs/node/issues/24388","id":381418113,"node_id":"MDU6SXNzdWUzODE0MTgxMTM=","number":24388,"title":"node inspect crashes when tab-completing with a require","user":{"login":"langdon-holly","id":6182727,"node_id":"MDQ6VXNlcjYxODI3Mjc=","avatar_url":"https://avatars2.githubusercontent.com/u/6182727?v=4","gravatar_id":"","url":"https://api.github.com/users/langdon-holly","html_url":"https://github.com/langdon-holly","followers_url":"https://api.github.com/users/langdon-holly/followers","following_url":"https://api.github.com/users/langdon-holly/following{/other_user}","gists_url":"https://api.github.com/users/langdon-holly/gists{/gist_id}","starred_url":"https://api.github.com/users/langdon-holly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/langdon-holly/subscriptions","organizations_url":"https://api.github.com/users/langdon-holly/orgs","repos_url":"https://api.github.com/users/langdon-holly/repos","events_url":"https://api.github.com/users/langdon-holly/events{/privacy}","received_events_url":"https://api.github.com/users/langdon-holly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-16T02:16:59Z","updated_at":"2018-11-16T02:16:59Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nThank you for reporting a possible bug in Node.js.\r\n\r\nPlease fill in as much of the template below as you can.\r\n\r\nVersion: output of `node -v`\r\nPlatform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)\r\nSubsystem: if known, please specify the affected core module name\r\n\r\nIf possible, please provide code that demonstrates the problem, keeping it as\r\nsimple and free of external dependencies as you can.\r\n-->\r\n\r\n* **Version**: v11.1.0\r\n* **Platform**: Linux setp 4.19.1-arch1-1-ARCH #1 SMP PREEMPT Sun Nov 4 16:49:26 UTC 2018 x86_64 GNU/Linux\r\n* **Subsystem**:\r\n\r\n<!-- Please provide more details below this comment. -->\r\nSteps to reproduce:\r\n\r\n0. Create an empty file named \"test.js\"\r\n1. Run `node inspect test.js`\r\n2. Enter the debug repl\r\n3. Type `require(\"`\r\n4. Press tab\r\n\r\nResult: Node prints the following message to standard error, then exits with status 1.\r\n```\r\nThere was an internal error in node-inspect. Please report this bug.\r\nCannot read property 'extensions' of undefined\r\nTypeError: Cannot read property 'extensions' of undefined\r\n    at REPLServer.complete (repl.js:1031:51)\r\n    at REPLServer.completer (repl.js:492:14)\r\n    at REPLServer.Interface._tabComplete (readline.js:476:8)\r\n    at REPLServer.Interface._ttyWrite (readline.js:975:16)\r\n    at REPLServer.self._ttyWrite (repl.js:719:7)\r\n    at ReadStream.onkeypress (readline.js:178:10)\r\n    at ReadStream.emit (events.js:182:13)\r\n    at ReadStream.EventEmitter.emit (domain.js:441:20)\r\n    at emitKeys (internal/readline.js:424:14)\r\n    at emitKeys.next (<anonymous>)\r\n```\r\n\r\nObserved rules for reproduction:\r\n\r\n* test.js can be any JavaScript file.\r\n* A single quote may be substituted for the double quote in step 3.\r\n* `require(\"` may be preceded by any JavaScript code.\r\n* Space characters may be typed between `require` and `(\"`.\r\n* The paren must be immediately followed by the quote (no whitespace).\r\n* Any additional characters may be typed before pressing tab.\r\n* The cursor must be somewhere after the quote when pressing tab."}}
{"actor":{"display_login":"langdon-holly"}}