Cannot convert from `char[]' to `unowned uint8[]?'
Closed this issue · 2 comments
akrenz commented
I get the following errors if I try to compile easyssh 1.6.6 on Solus. Here is the complete error log:
../src/Widgets/TerminalWidget.vala:219.33-219.46: error: Argument 1: Cannot convert from `char[]' to `unowned uint8[]?'
this.feed_child(cmd.to_utf8 ());
^^^^^^^^^^^^^^
../src/Widgets/SearchToolbar.vala:97.21-97.42: warning: `Vte.Terminal.search_set_gregex' has been deprecated since 0.46
../src/Widgets/TerminalBox.vala:103.33-103.46: error: Argument 1: Cannot convert from `char[]' to `unowned uint8[]?'
term.feed_child(cmd.to_utf8 ());
^^^^^^^^^^^^^^
../src/Widgets/TerminalBox.vala:210.33-210.48: error: Argument 1: Cannot convert from `char[]' to `unowned uint8[]?'
term.feed_child(n_cmd.to_utf8 ());
^^^^^^^^^^^^^^^^
../src/Widgets/TerminalBox.vala:201.33-201.46: error: Argument 1: Cannot convert from `char[]' to `unowned uint8[]?'
term.feed_child(cmd.to_utf8 ());
I fixed it by casting cmd.to_utf8() to uint8[].
muriloventuroso commented
Please repeat the build using the "ubuntu-bionic-patched-vte" option.
This is a compatibility issue between versions of lib Gtk.VTE
akrenz commented
Well, Solus is using latest libvte (0.60.3) and Vala (0.48.6) and building with "ubuntu-bionic-patched-vte" option also fails.
It reports the same errors as mentioned in this task and also multiple:
error: 1 extra arguments for `void Vte.Terminal.feed_child (uint8[]?)'
this.feed_child(cmd, cmd.length);
So enabling this options does not fix the issue.