Skip to content
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

Error when pasting entire line #29881

Closed
chrmarti opened this issue Jun 29, 2017 · 2 comments
Closed

Error when pasting entire line #29881

chrmarti opened this issue Jun 29, 2017 · 2 comments
Assignees
Labels
editor-autoindent Editor auto indentation issues

Comments

@chrmarti
Copy link
Contributor

  • VSCode Version: code-oss-dev 1.14.0 (Commit unknown, Date unknown)
  • OS Version: Darwin x64 15.6.0

Steps to Reproduce:

  1. Copy entire line (including newline)
  2. Paste
  3. Error in console:

Cannot read property 'length' of null: TypeError: Cannot read property 'length' of null
at Object.getSpaceCnt (file:///Users/chrmarti/Development/repos/vscode/out/vs/editor/contrib/indentation/common/indentUtils.js:10:32)
at AutoIndentOnPaste.trigger (file:///Users/chrmarti/Development/repos/vscode/out/vs/editor/contrib/indentation/common/indentation.js:463:58)
at file:///Users/chrmarti/Development/repos/vscode/out/vs/editor/contrib/indentation/common/indentation.js:385:23
at CallbackList.invoke (file:///Users/chrmarti/Development/repos/vscode/out/vs/base/common/callbackList.js:58:43)
at Emitter.fire (file:///Users/chrmarti/Development/repos/vscode/out/vs/base/common/event.js:91:40)
at CodeEditor.CommonCodeEditor.trigger (file:///Users/chrmarti/Development/repos/vscode/out/vs/editor/common/commonCodeEditor.js:482:38)
at EditorHandlerCommand.runCommand (file:///Users/chrmarti/Development/repos/vscode/out/vs/editor/common/controller/coreCommands.js:1468:24)
at handler (file:///Users/chrmarti/Development/repos/vscode/out/vs/editor/common/editorCommonExtensions.js:48:67)
at InstantiationService.invokeFunction (file:///Users/chrmarti/Development/repos/vscode/out/vs/platform/instantiation/common/instantiationService.js:48:34)
at CommandService._tryExecuteCommand (file:///Users/chrmarti/Development/repos/vscode/out/vs/platform/commands/common/commandService.js:60:72)

@chrmarti chrmarti added the editor-autoindent Editor auto indentation issues label Jun 29, 2017
@chrmarti
Copy link
Contributor Author

I see this with the latest in master.

@rebornix
Copy link
Member

@chrmarti thanks!

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
editor-autoindent Editor auto indentation issues
Projects
None yet
Development

No branches or pull requests

2 participants