-
Notifications
You must be signed in to change notification settings - Fork 30k
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
repl: Extra /
on completion after require
#33238
Labels
Comments
BridgeAR
added
confirmed-bug
Issues with confirmed bugs.
repl
Issues and PRs related to the REPL subsystem.
labels
May 4, 2020
BridgeAR
added a commit
to BridgeAR/node
that referenced
this issue
May 7, 2020
This improves the autocompletion for require calls. It had multiple small issues so far. Most important: it won't suggest completions for require statements that are fully written out. Second, it'll detect require calls that have whitespace behind the opening bracket. Third, it makes sure node modules are detected as such instead of only suggesting them as folders. Last, it adds suggestions for input that starts with backticks. Fixes: nodejs#33238 Signed-off-by: Ruben Bridgewater <[email protected]>
codebytere
pushed a commit
that referenced
this issue
May 16, 2020
This improves the autocompletion for require calls. It had multiple small issues so far. Most important: it won't suggest completions for require statements that are fully written out. Second, it'll detect require calls that have whitespace behind the opening bracket. Third, it makes sure node modules are detected as such instead of only suggesting them as folders. Last, it adds suggestions for input that starts with backticks. Signed-off-by: Ruben Bridgewater <[email protected]> PR-URL: #33282 Fixes: #33238 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
ExE-Boss
added a commit
to ExE-Boss/node
that referenced
this issue
Feb 2, 2021
ExE-Boss
added a commit
to ExE-Boss/node
that referenced
this issue
Feb 2, 2021
1 task
ExE-Boss
added a commit
to ExE-Boss/node
that referenced
this issue
Feb 4, 2021
Refs: nodejs#33238 Refs: nodejs#33282 Co-authored-by: Antoine du Hamel <[email protected]>
ExE-Boss
added a commit
to ExE-Boss/node
that referenced
this issue
Feb 4, 2021
Refs: nodejs#33238 Refs: nodejs#33282 Co-authored-by: Antoine du Hamel <[email protected]>
Trott
pushed a commit
to ExE-Boss/node
that referenced
this issue
Feb 6, 2021
Refs: nodejs#33238 Refs: nodejs#33282 Co-authored-by: Antoine du Hamel <[email protected]> PR-URL: nodejs#37178 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Rich Trott <[email protected]>
danielleadams
pushed a commit
that referenced
this issue
Feb 16, 2021
Refs: #33238 Refs: #33282 Co-authored-by: Antoine du Hamel <[email protected]> PR-URL: #37178 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Rich Trott <[email protected]>
targos
pushed a commit
to targos/node
that referenced
this issue
Aug 8, 2021
Refs: nodejs#33238 Refs: nodejs#33282 Co-authored-by: Antoine du Hamel <[email protected]> PR-URL: nodejs#37178 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Rich Trott <[email protected]>
targos
pushed a commit
to targos/node
that referenced
this issue
Aug 8, 2021
Refs: nodejs#33238 Refs: nodejs#33282 Co-authored-by: Antoine du Hamel <[email protected]> PR-URL: nodejs#37178 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Rich Trott <[email protected]>
targos
pushed a commit
that referenced
this issue
Sep 1, 2021
Refs: #33238 Refs: #33282 Co-authored-by: Antoine du Hamel <[email protected]> PR-URL: #37178 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Juan José Arboleda <[email protected]> Reviewed-By: Rich Trott <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
What steps will reproduce the bug?
Install a package that has sub-directories (lets say
nano
for an example). Run repl withnode
and typerequire('nano
without the closing quote:Note the position of the cursor and the suggested
/
, this is valid. Typing')
to close therequire
call does not remove the suggested/
. At this point pressing keyboard left, end or tab causes an additional/
to be displayed.Typing
require('nano/')
then pressing tab causesnano/lib/
andnano/package
to be suggested.How often does it reproduce? Is there a required condition?
Every time.
What is the expected behavior?
Completion of the string passed to
require()
should end as soon as the closing'
is typed.What do you see instead?
Additional information
Sorry for using screen-captures it's difficult to show what I'm seeing otherwise.
The text was updated successfully, but these errors were encountered: