Skip to content

The content is different under different operating systems (can be reproduce in the monaco demo) #6

@chenyjade

Description

@chenyjade

Please save me some time and use the following template. In 90% of all issues I can't reproduce the problem because I don't know what exactly you are doing, in which environment, or which y-* version is responsible. Just use the following template even if you think the problem is obvious.

Checklist

Describe the bug
A clear and concise description of what the bug is.
The content is different under different operating systems. It seems that user under Win10 can see only a single new line when user under mac enter two new lines. Bug also appears after the syntax completion, see section below on how to reproduce. After some testing, the content under mac is the same as the content under Android and iOS, just different from the content under win10 and no matter which browser or computer we use.

To Reproduce
Steps to reproduce the behavior:

  1. Open https://demos.yjs.dev/monaco/monaco.html under both windows and mac system
  2. Under windows: Type "Text from Windows" then click "Ender" button (new line)
  3. Under Mac: Click "Enter" button (new line) then type "Text from Mac"
  4. The content is different
  5. Clear all the content
  6. Under windows, enter something like "bbb" then enter a new line
  7. Start from the new line, enter "aaa" and click tab to accept the syntax completion (aaa -> AudioParam)
  8. You can see the difference, on Mac it's "aAudioParam" but on Win10 it's "AudioParam"

Expected behavior
A clear and concise description of what you expected to happen.
The content on both end should look the same.

Screenshots
If applicable, add screenshots to help explain your problem.
Screen shot from Windows:
2801608183250_ pic
2831608184727_ pic

Screenshot from Mac:
2811608183295_ pic
2821608184430_ pic

Environment Information

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions