script-lab icon indicating copy to clipboard operation
script-lab copied to clipboard

Code pane crash when switching between snippets

Open AlexJerabek opened this issue 6 years ago • 1 comments

Bug Report

  • Host: Excel
  • OS: Windows
  • Browser: Win32
  • Environment: Beta

Steps to Reproduce:

This happened when rapidly switching between snippets.

Failure Logs:

Error Message:

Script Lab

An unexpected error has occurred. Unable to get property 'getPositionAt' of undefined or null reference

TypeError: Unable to get property 'getPositionAt' of undefined or null reference at e.prototype._offsetToPosition (https://script-lab-react-beta.azurewebsites.net/external/monaco-editor-0-16-2/vs/language/typescript/tsMode.js:7:4498) at e.prototype._textSpanToRange (https://script-lab-react-beta.azurewebsites.net/external/monaco-editor-0-16-2/vs/language/typescript/tsMode.js:7:4592) at Anonymous function (https://script-lab-react-beta.azurewebsites.net/external/monaco-editor-0-16-2/vs/language/typescript/tsMode.js:7:10636) at o (https://script-lab-react-beta.azurewebsites.net/static/js/2.5b5f17ec.chunk.js:1:3080955) at Anonymous function (https://script-lab-react-beta.azurewebsites.net/static/js/2.5b5f17ec.chunk.js:1:3081102) at c (https://script-lab-react-beta.azurewebsites.net/static/js/2.5b5f17ec.chunk.js:1:2401917)

AlexJerabek avatar Apr 22 '19 19:04 AlexJerabek

I've seen this bug occasionally too. Unfortunately, it is very hard to repro. We need to understand what exactly causes it and come up with a minimal repro to understand if it's even our bug vs. Monaco bug.

Zlatkovsky avatar Apr 24 '19 20:04 Zlatkovsky