go-flutter
go-flutter copied to clipboard
Chinese input method don't work on Linux
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
.
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
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.
But without much knowledge I'd guess it's a GLFW compatability issue
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
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'
I think we are dependent upon this upstream issue: glfw/glfw#41 https://github.com/glfw/glfw/pull/658
@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 ?
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.
I meet same exactly the same issue as this, input chinese is invisible, all chinese charactor are invisible.
any update on this?
This issue is blocked by: https://github.com/glfw/glfw/pull/658
is there exist any fix for some special platform? e.g. Linux? thank you