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

Typing newline then space in InputEditor Component Crashes Chrome #1445

Closed
bmingles opened this issue Aug 10, 2023 · 1 comment · Fixed by #1448
Closed

Typing newline then space in InputEditor Component Crashes Chrome #1445

bmingles opened this issue Aug 10, 2023 · 1 comment · Fixed by #1448
Assignees
Labels
bug Something isn't working
Milestone

Comments

@bmingles
Copy link
Contributor

Description

The component in use in the CustomColumn editor + the ACL editor crashes Chrome when typing a new line followed by typing a leading space on that line.

This was discovered in Enterprise (see DH-15438), but we suspect the fix will need to be made to Community.

Steps to reproduce
In an instance (currently in CustomColumns + Table ACL filter editro), type:

ab

then

a
b

then

a
 b

Expected results
The editor should add a leading space to the 2nd line

  1. New page to load
    -->

Actual results
Chrome crashes with an "Aw Snap" message

Versions

Version 1.20230512.060beta ()
Web Client (ef239cea)
Java Eclipse Adoptium 17.0.7

@bmingles bmingles added bug Something isn't working triage Issue requires triage labels Aug 10, 2023
@bmingles bmingles self-assigned this Aug 11, 2023
@bmingles
Copy link
Contributor Author

This appears to be a bug in Monaco itself. Upgrading to latest (0.41.0) fixes the issue.

That said, there is another task that intentionally downgraded Monaco in DH, so will need to determine if upgrading introduces other problems, or if all has been resolved since the downgrade almost a year ago.
#785

I also found some older bugs in the Monaco repo that have since been closed, but they sound similar to the issue in the current version we are using (0.41.0)
microsoft/vscode#95686
microsoft/monaco-editor#2014

@vbabich vbabich added this to the August 2023 milestone Aug 16, 2023
@vbabich vbabich removed the triage Issue requires triage label Aug 16, 2023
bmingles added a commit that referenced this issue Aug 16, 2023
Fixes #1445, fixes #1191 Fixing Monaco bug by upgrading to latest
^0.41.0

Supports DH-15438

BREAKING CHANGE: Monaco will need to be upgraded to ^0.41.0 in
Enterprise to ensure compatibility

**Tests Performed**

- Console Input
    - `Cmd+F` does nothing
    - Intellisense can be closed via `Esc`
- Log tab
    - `Esc` does not close find input
    - `Esc` does clear selection when focus is in the log content
- Code Editor
- Verified that newline with leading space no longer crashes the browser
tab
      ```
      a
       a
      ```
- Wrote some Python code. Intellisense, syntax highlighting, and general
typing experience seemed as expected
   - Execute full code + selected code successfully
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants