sunaku / wmiirc

Ruby configuration for WMII window manager
ISC License
82 stars 26 forks source link

wmiirc crashes #27

Closed wxian25 closed 13 years ago

wxian25 commented 13 years ago

I'm just getting started with wmii, so I thought I use your config to make it a little nicer... but I can't seem to get anything to work. Every-time I launch wmii or run wmiirc it crashes with the following error:

ERROR -- : undefined method `[]' for nil:NilClass (NoMethodError)
/home/jon/.wmii-hg/lib/wmiirc/config.rb:53:in `display'
/home/jon/.wmii-hg/lib/wmiirc/config.rb:14:in `apply'
/home/jon/.wmii-hg/lib/wmiirc/loader.rb:111:in `load_user_config'
/home/jon/.wmii-hg/lib/wmiirc/loader.rb:15:in `run'
/home/jon/.wmii-hg/wmiirc:5:in `<main>'

I'm running: wmii-hg2788, ©2010 Kris Maglione, ruby 1.9.2, rumai 4.1.2 on ArchLinux. The only thing I'm doing is following the install instructions on the main page: "git clone..... etc.". And it crashes even if I don't modify the config.yaml file.

Sorry, but I don't know any ruby to even begin to guess the problem.

sunaku commented 13 years ago

On Thu 23 Jun 2011 09:46:03 AM PDT, wxian25 wrote:

I'm just getting started with wmii, so I thought I use your config to make it a little nicer... but I can't seem to get anything to work.

Welcome and don't give up just yet. I'll help you out.

Every-time I launch wmii or run wmiirc it crashes with the following error:

ERROR -- : undefined method []' for nil:NilClass (NoMethodError) /home/jon/.wmii-hg/lib/wmiirc/config.rb:53:indisplay'

What does your config.yaml file look like? It seems to lack a "display:column:mode" section, according to the above error.

I'm running: wmii-hg2788, ©2010 Kris Maglione, ruby 1.9.2, rumai 4.1.2 on ArchLinux. The only thing I'm doing is following the install instructions on the main page: "git clone..... etc.". And it crashes even if I don't modify the config.yaml file.

Which branch are you currently on? The master branch does not have a config.yaml, only my personal branch does. I assume you're a QWERTY keyboardist, so take a look at these config.yaml files of fellow users for an example:

https://github.com/ghedamat/wmiirc/blob/master/config.yaml

https://github.com/adityam/wmiirc/blob/personal/config.yaml

C makes it easy for you to shoot yourself in the foot. C++ makes that harder, but when you do, it blows away your whole leg. -- Bjarne Stroustrup

wxian25 commented 13 years ago

Yes, it turned out to be "display:column:mode" like you suggested above. It turns out I was running the master branch, and just running "make branch" gave me a empty, config file. Since I just started with wmii, I'm not familiar with the config syntax yet, and figured that any empty options (ie: column:mode) would default to wmii defaults.

I also had a chance to play around with the config.yami files you linked and I can see wmii has a good deal more of expandability than I had originally thought. I have tried other tiling wm in the past, but only wmii, i3, and awesome really seemed suitable for both tiling & floating apps, although I felt more "at home" with wmii than the others.

Thanks again for the help, and I'm sure in the next few days I'll be reading docs & tweaking my config file.

sunaku commented 13 years ago

Good point. I updated make branch to explicitly tell the user to edit config.yaml now (in commit 0ba250e8e27bdffa6cca0fbfcee2e3356fb81faa) instead of implicitly opening that file in the user's $EDITOR.