cijoe icon indicating copy to clipboard operation
cijoe copied to clipboard

Stack level too deep

Open ethnt opened this issue 13 years ago • 10 comments

When I run CIJoe with Sinatra 1.2.7, I'm getting this:

:public is no longer used to avoid overloading Module#public, use :public_folder instead
    from /home/ethan/.rvm/gems/ruby-1.9.2-p290@fhsclock/gems/cijoe-0.9.2/lib/cijoe/server.rb:12:in `<class:Server>'
/home/ethan/.rvm/gems/ruby-1.9.2-p290@fhsclock/bin/cijoe:19: stack level too deep (SystemStackError)

The first error is easily fixable, but I'm not sure what the deal is with the SystemStackError.

ethnt avatar Oct 20 '11 02:10 ethnt

I got the same thing this morning on my first run. I'm happy to help debug, but this is my first time using CIJoe.

:public is no longer used to avoid overloading Module#public, use :public_folder instead from /Users/jamesthullbery/.rvm/gems/ruby-1.9.2-p180@cijoe/gems/cijoe-0.9.2/lib/cijoe/server.rb:12:in `class:Server' /Users/jamesthullbery/.rvm/gems/ruby-1.9.2-p180@cijoe/bin/cijoe:19: stack level too deep (SystemStackError)

germs12 avatar Oct 21 '11 14:10 germs12

Probably due to this bug.

mptre avatar Oct 21 '11 15:10 mptre

Looks like it. ETA on merge into master?

ethnt avatar Oct 21 '11 19:10 ethnt

Sorry. Can't tell since I'm not the owner.

mptre avatar Oct 23 '11 14:10 mptre

I got the same problem. Installing sinatra 1.2.0 seems to have resolved this for me. Maybe the gemspec can be updated to specify the sinatra version.

ExtractMethod avatar Oct 24 '11 16:10 ExtractMethod

Ok, thanks for the info.

mptre avatar Oct 30 '11 19:10 mptre

sinatra 1.2 didn't work for me. 1.2.7 seems to be fine.

oren avatar Dec 23 '11 20:12 oren

Got same problem with sinatra 1.3.1

~/rails/jw_walls$ cijoe .

:public is no longer used to avoid overloading Module#public, use :public_folder instead from /home/jurgen/.rvm/gems/ruby-1.9.3-p0@rails3/gems/cijoe-0.9.2/lib/cijoe/server.rb:12:in `class:Server' /home/jurgen/.rvm/gems/ruby-1.9.3-p0@rails3/bin/cijoe:19: stack level too deep (SystemStackError)

gem list sinatra *** LOCAL GEMS *** sinatra (1.3.1)

jurgens avatar Jan 28 '12 08:01 jurgens

Looks like this happens when Sinatra has problems binding with port 4567. I ran into the same issue on a machine that had a firewall blocking this port.

n8mlr avatar Jan 28 '12 22:01 n8mlr

There should not be any binding problems with my setup. Works fine with Sinatra 1.2.7

jurgens avatar Jan 30 '12 17:01 jurgens