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

Chinese input method don't work on Linux #355

Open
X-Wei opened this issue Feb 16, 2020 · 10 comments
Open

Chinese input method don't work on Linux #355

X-Wei opened this issue Feb 16, 2020 · 10 comments
Labels
bug Something isn't working GLFW Linux Specifically concerns Linux

Comments

@X-Wei
Copy link

X-Wei commented Feb 16, 2020

Description

I'm on Debian Linux, and use fcitx for typing Chinese (sudo apt install fcitx-googlepinyin).

But with go-flutter-desktop the Chinese I typed were just omitted, I also see nothing in the terminal output while doing hover run.
go-flutter-desktop-chinese-input

Hover doctor

Seems there's no hover doctor command?
I ran hover upgrade to get the latest version and this problem still exists.

# Operation system: Linux (Debian)
$ hover upgrade
hover: 'go-flutter' is on version: v0.35.1
@X-Wei X-Wei changed the title Chinese input method don't work on Linu Chinese input method don't work on Linux Feb 16, 2020
@provokateurin
Copy link
Member

hover upgrade only updates the embedder and not hover itself. Run go get -u github.com/go-flutter-desktop/hover to upgrade hover and then run hover doctor in your project.

@provokateurin
Copy link
Member

But without much knowledge I'd guess it's a GLFW compatability issue

@X-Wei
Copy link
Author

X-Wei commented Feb 16, 2020

Thanks @jld3103 ! I re-get the hover repo, and here's the output:

$ hover doctor
hover: Running on linux
hover: Docker installed: true
hover: Sharing flutter version
Flutter 1.14.6 • channel beta • https://github.com/flutter/flutter.git
Framework • revision fabeb2a16f (3 weeks ago) • 2020-01-28 07:56:51 -0800
Engine • revision c4229bfbba
Tools • Dart 2.8.0 (build 2.8.0-dev.5.0 fc3af737c7)
hover: Flutter engine commit: https://github.com/flutter/engine/commit/c4229bfbba
hover: Finding out the C compiler version
gcc (Debian 9.2.1-8) 9.2.1 20190909
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

hover: Sharing the content of go.mod
module flutter_catalog/go

go 1.13

require (
        github.com/go-flutter-desktop/go-flutter v0.35.1
        github.com/go-flutter-desktop/plugins/image_picker v0.1.5
        github.com/go-flutter-desktop/plugins/path_provider v0.3.3
        github.com/go-flutter-desktop/plugins/shared_preferences v0.4.3
        github.com/go-flutter-desktop/plugins/url_launcher v0.1.2
        github.com/go-gl/glfw v0.0.0-20191125211704-12ad95a8df72 // indirect
        github.com/pkg/errors v0.9.1
)
hover: Warning: No hover.yaml file found: open go/hover.yaml: no such file or directory
hover: Sharing the content of go/cmd
go/cmd/main.go  go/cmd/options.go

@X-Wei
Copy link
Author

X-Wei commented Feb 16, 2020

Not sure if it's relevant, I saw these errors when focusing on the text input field:

go-flutter: no method handler registered for method 'TextInput.setEditableSizeAndTransform' on channel 'flutter/textinput'
go-flutter: no method handler registered for method 'TextInput.setStyle' on channel 'flutter/textinput'

@pchampio pchampio added the enhancement New feature or request label Feb 17, 2020
@pchampio
Copy link
Member

pchampio commented Apr 5, 2020

I think we are dependent upon this upstream issue: glfw/glfw#41
glfw/glfw#658

@X-Wei
Copy link
Author

X-Wei commented Apr 10, 2020

@pchampio thanks ! So the glfw issues are in 2015 and 2018, the fixes are still not in ? When shall we expect to have the fixes in hover ?

@pchampio
Copy link
Member

kovidgoyal has implemented IME in his glfw fork, his fork isn't event with glfw/master, I don't intent to use it.
go-flutter is also using a go wrapper on top of glfw (https://github.com/go-gl/glfw), this wrapper makes applying pach to C library much harder.

If I knew was IME was and the fact that glfw did not have support for it, I would of chosen another rendering toolkit. Sadly for now we are stuck with GLFW, meaning we get the issues that comes with it..

When shall we expect to have the fixes in hover ?

I have no idea, this question has to be ask at the GLFW maintainers.

@zw963
Copy link

zw963 commented Jan 10, 2022

I meet same exactly the same issue as this, input chinese is invisible, all chinese charactor are invisible.

any update on this?

@pchampio
Copy link
Member

This issue is blocked by: glfw/glfw#658

@zw963
Copy link

zw963 commented Jan 10, 2022

is there exist any fix for some special platform? e.g. Linux? thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GLFW Linux Specifically concerns Linux
Development

No branches or pull requests

4 participants