monaco-editor icon indicating copy to clipboard operation
monaco-editor copied to clipboard

Uncaught error when navigating to JavaScript comments

Open datummm opened this issue 9 years ago • 2 comments

monaco-editor version: 0.10.0 Browser: Firefox OS: Ubuntu Steps or JS usage snippet reproducing the issue:

  1. Go to https://microsoft.github.io/monaco-editor/playground.html#creating-the-editor-hello-world
  2. Open a console
  3. Click or navigate to any of the comments in the left JavaScript pane
  4. I get this error: Error: e is undefined

Here's a screen capture from Chrome: image

It looks like it happens with a default monaco editor when editing JavaScript and navigating to a comment. If this is intended behavior, is there a way to suppress logging these errors? Thanks!

datummm avatar Oct 07 '17 01:10 datummm

I observed the same exception when navigation to JavaScript comments using the keyboard. It only seems to occur in comments at the very beginning and end of the code, and as soon as there are non-whitespace characters involved (which should be the case most of the time).

Since I use an application-wide exception handler, this exception is not silent for the users of my application.

foxable avatar Oct 17 '17 13:10 foxable

Might have been fixed via https://github.com/Microsoft/TypeScript/issues/17683

alexdima avatar Nov 13 '17 17:11 alexdima