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

Cannot convert from char[]' to unowned uint8[]?' #97

Closed
akrenz opened this issue Jun 17, 2020 · 2 comments
Closed

Cannot convert from char[]' to unowned uint8[]?' #97

akrenz opened this issue Jun 17, 2020 · 2 comments

Comments

@akrenz
Copy link

akrenz commented Jun 17, 2020

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
Copy link
Owner

Please repeat the build using the "ubuntu-bionic-patched-vte" option.
This is a compatibility issue between versions of lib Gtk.VTE

@akrenz
Copy link
Author

akrenz commented Jun 17, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants