Newbie issues. I just followed all instructions and got "Stack Level Too Deep" in get_implicit_project_path
lljaxn opened this issue · 8 comments
Hi all, Sorry for the interruption, I just downloaded Ruby, Gems 1.3.5, and Sprouts and when I tried to create a new project I got the following error. Any help is much appreciated.
Larry
c:\Ruby\projects>sprout -n as3 1stProject
Creating new project '1stProject' with as3
C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.223/lib/sprout.rb:478:inget_implicit _project_path': stack level too deep (SystemStackError) from C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.223/lib/sprout.rb:486:in
get_implicit_project_path'
from C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.223/lib/sprout.rb:454:in
project_path' from C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.223/lib/sprout/generator/ base_mixins.rb:75:in
initialize'
from C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.223/lib/sprout/generator/
named_base.rb:35:ininitialize' from C:/Ruby/lib/ruby/gems/1.8/gems/rubigen-1.5.2/lib/rubigen/lookup.rb: 165:in
new'
from C:/Ruby/lib/ruby/gems/1.8/gems/rubigen-1.5.2/lib/rubigen/lookup.rb:
165:ininstance' from C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.223/lib/sprout.rb:144:in
generate'
from C:/Ruby/lib/ruby/gems/1.8/gems/sprout-0.7.223/bin/sprout:125
from C:/Ruby/bin/sprout:19:in `load'
from C:/Ruby/bin/sprout:19
Fixed it.......I new my DOS was not that rusty
Oh, HINT you have a STACK Issue.....increase the size.
OK OK OK .... I cant be that mean cause I know others will come here. I remembered back in the day when we had to actually write real programs with interrupt handlers and stuff. There was the STACK and the HEAP. These were areas of memory reserved above the actual code and used to store variables and transient data. You could control the amount of memory DOS allocated in the config.sys file. so I had to do a little searching and found out how to do it in Vista.
I found it here. http://www.informit.com/articles/article.aspx?p=1151314&seqNum=6&rll=1
Short-cut...
click....(hate windows) Start
click accessories and find NotePad.
RIGHT click Notepad and click open as administrator
Open the file c:\windows\system32\config.nt
Add a line at the bottom....remember REM is a remark so 99% of this file is comments
ADD the line STACKS=12,256
You might want to up the FILES= too....this tells DOS how many file handles to reserve so that you can open files. 256 was a good number in the old days.
My file bottom looks like this
REM is zero, EMM will be disabled and the EMM line will be ignored.
REM
STACKS=12,256
dos=high, umb
device=%SystemRoot%\system32\himem.sys
files=40
I'd like to look more closely at this bug, because I think you've uncovered a Sprout bug that appears only on a specific variant of Windows. The fix should definitely not include manipulating your system at that level.
Unfortunately, I don't have an installation of Vista available at the moment. I do have XP and am planning on picking up Windows 7 next week. I have been told by other folks on our list that Vista was working for them - but can't personally reproduce your issue. I'd like to see if we can work through this next week if you have a little time.
I have Win7 and will install it this weekend on a old server. I plan on setting the server up with multiple boots so I can have X, 7, Linux and MAC (might be redundant with Linux)
I will keep the laptop on Vista so I can help workout some of these bugs if you would like.
That sounds great - I'll try to check in on Monday or Tuesday, is there an email address that's better than others?
I've got similar error on WIndows 7 x64:
c:/Program Files/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.235-x86-mswin32/lib/sprout.rb:481:in get_implicit_project_path': stack level too deep (SystemStackError) from c:/Program Files/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.235-x86-mswin32/lib/sprout.rb:485:in
get_implicit_project_path'
from c:/Program Files/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.235-x86-mswin32/lib/sprout.rb:453:in project_path' from c:/Program Files/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.235-x86-mswin32/lib/sprout/generator/base_mixins.rb:75:in
initialize'
from c:/Program Files/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.235-x86-mswin32/lib/sprout/generator/named_base.rb:35:in initialize' from c:/Program Files/ruby/lib/ruby/gems/1.8/gems/rubigen-1.5.4/lib/rubigen/lookup.rb:165:in
new'
from c:/Program Files/ruby/lib/ruby/gems/1.8/gems/rubigen-1.5.4/lib/rubigen/lookup.rb:165:in instance' from c:/Program Files/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.235-x86-mswin32/lib/sprout.rb:149:in
generate'
from c:/Program Files/ruby/lib/ruby/gems/1.8/gems/sprout-0.7.235-x86-mswin32/bin/sprout:125
from c:/Program Files/ruby/bin/sprout:19:in `load'
from c:/Program Files/ruby/bin/sprout:19
There was no config.nt file in my system32 folder, and creation of it did not help.
Sorry about this - I had a regression in a release earlier this week. Please update to the latest gem version 0.7.236 to get the fix.
gem update sprout