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

stack level too deep (SystemStackError) #14

Open
prestancedesign opened this issue Dec 8, 2013 · 6 comments
Open

stack level too deep (SystemStackError) #14

prestancedesign opened this issue Dec 8, 2013 · 6 comments

Comments

@prestancedesign
Copy link
Contributor

Hello Romain,

I have installed your gem shop on Windows seven and when I put commands like "shop install", "shop module", etc, I've this error :
stack level too deep (SystemStackError)

unlimit -a give me :
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
open files (-n) 256
pipe size (512 bytes, -p) 8
stack size (kbytes, -s) 2046
cpu time (seconds, -t) unlimited
max user processes (-u) 63
virtual memory (kbytes, -v) 2097152

I tried to change stack size value, but I can't. Do you have an idea ?
THX for your work.

Bonne soirée.

@romainberger
Copy link
Owner

Hi,

I've never tested it on Windows and don't even have a windows machine where I can try so it might be tough to debug...

Can you tell me which version of ruby you are running? Does this happen just with these tasks or none of them work?

@prestancedesign
Copy link
Contributor Author

Re,

I check the code and when I saw: CONFIG_FILE = "#{ENV['HOME']}/.shop", I had check my home folder and the file doesn't exit. I had to manually create and voilà !
Thanks for your reactivity.

Michael

@romainberger
Copy link
Owner

Cool! Thanks for telling me what was wrong.

I'll keep this open until I fix it.

@romainberger romainberger reopened this Dec 8, 2013
@prestancedesign
Copy link
Contributor Author

When installing gem shop, I guess a template file '".shop" is creating for Linux/Mac users in ~path, isn't ?
On windows the "#{ENV['HOME']}/.shop" return a good path but the file not exit.
So I created manually and copy a template shop content and after that "shop install", "shop module" works fine.

My config : Windows seven 64bits.
$ ruby -v
ruby 1.9.3p484 (2013-11-22) [i386-mingw32]
$ gem -v
2.1.11

For further details don hesitate to contact me.

@romainberger
Copy link
Owner

The file is generated whenever it's needed. The weird part is that the file is read correctly but can't be written, it might be a permission issue.

Anyway, I'm not sure I can fix this but I'll try to avoid errors if the file cant be created. Thanks for the help!

@cdarken
Copy link

cdarken commented Mar 1, 2014

I also got this the first time, but after I created an empty ~/.shop file, I get this:

$ shop install
Please answer the following: 
/usr/lib/ruby/1.9.1/psych.rb:297:in `initialize': no implicit conversion from nil to integer (TypeError)
        from /usr/lib/ruby/1.9.1/psych.rb:297:in `open'
        from /usr/lib/ruby/1.9.1/psych.rb:297:in `load_file'
        from /var/lib/gems/1.9.1/gems/shop-0.1.9/lib/shop/shopconfig.rb:43:in `get_config'
        from /var/lib/gems/1.9.1/gems/shop-0.1.9/lib/shop/shopconfig.rb:33:in `get'
        from /var/lib/gems/1.9.1/gems/shop-0.1.9/lib/shop/shopconfig.rb:13:in `initialize'
        from /var/lib/gems/1.9.1/gems/shop-0.1.9/lib/shop/command.rb:116:in `new'
        from /var/lib/gems/1.9.1/gems/shop-0.1.9/lib/shop/command.rb:116:in `install'
        from /var/lib/gems/1.9.1/gems/shop-0.1.9/lib/shop/command.rb:47:in `dispatch'
        from /var/lib/gems/1.9.1/gems/shop-0.1.9/lib/shop/command.rb:41:in `execute'
        from /var/lib/gems/1.9.1/gems/shop-0.1.9/bin/shop:8:in `<top (required)>'
        from /usr/local/bin/shop:23:in `load'
        from /usr/local/bin/shop:23:in `<main>'

I'm on Linux Mint 16.

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

3 participants