-
Notifications
You must be signed in to change notification settings - Fork 63
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
Failed to install because of compile error #61
Comments
Hi welcome! Please use the nightly compiler to compile the code, Like this:
It is because there are some features only available in the nightly channel. You use Arch? awesome. |
Thank you for the quick reply. The rustup package in Arch did not work, throwing me errors similar to this:
You will notice that some of these problems are frustratingly my fault. However, getting rid of these small obsticals will make Tiny a contender for the next console IRC client. Irssi and Weechat both have many issues, and require a lot of work to configure properly, and even then they don't look so great. I have a hunch that a lot of geeks over at https://www.reddit.com/r/unixporn/ would flock to Tiny if it was easy to install, and the defaults were more sane. That being said, I know Tiny is still in heavy development, you are probably focusing on internals more, etc. etc. I will keep my eye on the project and broadcast when it's ready. |
Hey @reading123, Thanks for the feedback, it's really appreciated.
Not sure how to improve this. Maybe we can make packages for Debian-based distros and Arch etc?
Hmm, this should be a problem with yaml syntax. tiny really doesn't care about what characters your password has, but yaml strings may require escaping some characters. For example, if you want to use a
When we parse this we get the string
This is weird, I connect to chat.freenode.net and irc.mozilla.org, both over 6697, with tls enabled, and it just works. What errors were you getting? Just tried irc.freenode.net too, it worked fine.
Current key bindings are copied from various other tools and I think they should be familiar to users who spend time with command line tools and vim. For example, C-n and C-p works the same in fzf, C-a, C-k etc work in the shell the same way etc. alt-left and alt-right are for moving tabs left/right in the development version (not published on crates.io yet). They may be different from established clients, but I'm not sure if that's a bad thing. tiny grew out of frustration with other IRC clients so this is somewhat expected I think.
I agree that this should be done. Any prefix of a command should be accepted as long as it's not ambiguous (so Also, commands are implemented as needed (e.g. as users ask for them and/or contribute patches, this is how
What defaults do you mean exactly? Please let us know so we can fix it! One of the focus for tiny since the day one is the defaults, it's really meant to be sane. If it's not then we should fix it. Thanks again! Re-opening this issue to keep the discussion alive. |
Packaging would be the end-game, although I don't know how difficult that will be with rust source code. Since you seem pretty commited to making this the IRC client we need, I will make an AUR package for it. I am not a developer so I will make the PKGBUILD and then let you look at it before uploading. Do you run Arch Linux as well? It's your project so you get to decide when to make distro packages. If the Rust toolchain is not that far behind nightly, compiling Tiny will soon become easier, since some Rust distro packages cannot update to nightly without errors. I would wait and make sure the README has bulletproof (idiotproof) instructions for building from source. Errors notwithstanding, installing Tiny currently takes my computer at least 15 minutes, because I have to compile the Rust toolchain and then compile Tiny. Right now I have to cd to where I have Tiny's source code, then type "cargo run". I assume installing it globally is as simple as "cargo install" or something similar?
Are you planning to keep yaml as the config file format? If so, a note in the README would be good. Or perhaps I was using quotes incorrectly in the config. I think escaping individual characters in the password is not a good solution.
I am getting "Connecting... Connection error: Connection closed. Will try to reconnect in 30 seconds. This is in my yaml: servers: If I add the
A way to customize keybindings in the config would be a useful feature. I agree that most of the keybindings are expected. Alt-right and alt-left are exceptions for me, since Irssi and weechat both use those commands to switch to the next/previous tab, not move the current tab.
/j for join |
I deleted .tinyrc.yml as well as ~/tiny_logs/ to get a clean setup for debugging. I did cargo run, and edited .tinyrc.yml making only the following changes: # Servers to auto-connect To try and isolate the problem. As an aside, I don't know what to put for "hostname," but Tiny seemed to work fine with an arbitrary string hostname when connecting without SSL. ~/tiny_logs/debug.log only contains: Logs started on Wed, 20 Dec 2017 17:16:52 Let me know if there's anything else I can do to help resolve the issue. I would like to add another suggested command for when Tiny is packaged: users will expect "/help" to tell them something useful, even if it just a simplified version of the README or man page. Off to read some Rust documentation now. |
Awesome! Thanks a lot!
I run Xubuntu 16.04, but I can install Arch on a VM. I'm surprised that you had problem with rustup and building tiny from source.. I've installed it many times on different systems (different Linux + OSX) and I literally just did these three steps:
This worked every time.
tiny usully builds within a minute but toolchain takes a lot of time.. This reminds me .. maybe we can distribute executable binaries. Here's the output of
This is not a lot of stuff, and most of them are standard. It may work on most systems. Does distributing this binary make sense?
Yes, just run The error message seems to be generated by |
@reading123 could you please install the latest tiny with this command:
then repeat the process (connect to Freenode via TLS) and let us know what the new error message says? |
This worked for me too. The Arch Linux rustup package was unable to update to nightly, as well as the AUR package rustup-git, but the supported method of installing the rust toolchain worked fine. I was hesitant to run the https://sh.rustup.rs and had to take some time to read through it.
I don't know. The new error message it gives me is: |
I suspect the connection error is because we're not doing "would block" checks correctly. I opened an issue in |
I created three new issues about the stuff discussed in this thread. Thanks again @reading123 . |
Hello,
New to Rust so I don't really know how to debug this issue. When I run "cargo install tiny" from my updated Arch Linux installation, I get the following output after a bunch of successful compiling:
The text was updated successfully, but these errors were encountered: