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

[desktop] On the Chinese input of TextFiled #1615

Closed
nukiyoam opened this issue Dec 17, 2021 · 1 comment
Closed

[desktop] On the Chinese input of TextFiled #1615

nukiyoam opened this issue Dec 17, 2021 · 1 comment
Assignees
Labels
bug Something isn't working desktop wait for build
Milestone

Comments

@nukiyoam
Copy link

nukiyoam commented Dec 17, 2021

When using TextField, after entering Chinese, sometimes the following errors will appear when deleting one or more texts.

ComposeVesion: 1.0.1-rc2
JDK: Oracle jdk11
OS: mac bigsur 12

java.lang.reflect.InvocationTargetException
	at java.desktop/sun.lwawt.macosx.LWCToolkit.checkException(LWCToolkit.java:741)
	at java.desktop/sun.lwawt.macosx.LWCToolkit.invokeAndWait(LWCToolkit.java:710)
	at java.desktop/sun.lwawt.macosx.CInputMethod.attributedSubstringFromRange(CInputMethod.java:590)
Caused by: java.lang.StringIndexOutOfBoundsException: begin 50, end 51, length 50
	at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3319)
	at java.base/java.lang.String.substring(String.java:1874)
	at java.base/java.lang.String.subSequence(String.java:1913)
Caused by: java.lang.StringIndexOutOfBoundsException: begin 50, end 51, length 50

There are other related problems.
#672 (comment)

@igordmn
Copy link
Collaborator

igordmn commented Feb 27, 2022

Should be fixed in 1.1.0

@igordmn igordmn closed this as completed Feb 27, 2022
MatkovIvan pushed a commit to MatkovIvan/compose-multiplatform that referenced this issue May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working desktop wait for build
Projects
None yet
Development

No branches or pull requests

4 participants