Re: ERRORE INCOMPRENSIBILE

I log di webrick cosa dicono?

incolla un po’ di codice del tuo server webrick, può risultare più semplice
capire i motivi dell’errore

ciao

---------- Initial Header -----------

From : [email protected]
To : [email protected]
Cc :
Date : Wed, 6 Feb 2008 21:53:23 +0100
Subject : [ruby-it] ERRORE INCOMPRENSIBILE

./script/…/config/…/app/controllers/application.rb:17: syntax error,
unexpected kEND, expecting $end

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:203:in
`load_without_new_constant_marking’

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:203:in
`load_file’

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in
`new_constants_in’

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:202:in
`load_file’

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:94:in
`require_or_load’

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:60:in
`depend_on’

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:442:in
`require_dependency’

/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:110:in
`prepare_application’

/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:39:in
`dispatch’

/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:113:in
`handle_dispatch’

/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:79:in
`service’

/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service’

/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run’

/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread’

/usr/lib/ruby/1.8/webrick/server.rb:162:in `start’

/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread’

/usr/lib/ruby/1.8/webrick/server.rb:95:in `start’

/usr/lib/ruby/1.8/webrick/server.rb:92:in `each’

/usr/lib/ruby/1.8/webrick/server.rb:92:in `start’

/usr/lib/ruby/1.8/webrick/server.rb:23:in `start’

/usr/lib/ruby/1.8/webrick/server.rb:82:in `start’

/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:63:in
`dispatch’

/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/webrick.rb:59

/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require’

/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
`require’

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in
`new_constants_in’

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
`require’

/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39

/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require’

/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’

script/server:3
./script/…/config/…/app/controllers/application.rb:17: syntax error,
unexpected kEND, expecting $end

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:203:in
`load_without_new_constant_marking’

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:203:in
`load_file’

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in
`new_constants_in’

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:202:in
`load_file’

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:94:in
`require_or_load’

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:60:in
`depend_on’

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:442:in
`require_dependency’

/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:110:in
`prepare_application’

/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:39:in
`dispatch’

/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:113:in
`handle_dispatch’

/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:79:in
`service’

/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service’

/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run’

/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread’

/usr/lib/ruby/1.8/webrick/server.rb:162:in `start’

/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread’

/usr/lib/ruby/1.8/webrick/server.rb:95:in `start’

/usr/lib/ruby/1.8/webrick/server.rb:92:in `each’

/usr/lib/ruby/1.8/webrick/server.rb:92:in `start’

/usr/lib/ruby/1.8/webrick/server.rb:23:in `start’

/usr/lib/ruby/1.8/webrick/server.rb:82:in `start’

/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/webrick_server.rb:63:in
`dispatch’

/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/webrick.rb:59

/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require’

/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
`require’

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in
`new_constants_in’

/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in
`require’

/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39

/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require’

/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’

script/server:3

On Feb 7, 2008 9:50 PM, Andrea N. [email protected] wrote:

./script/…/config/…/app/controllers/application.rb:17: syntax error,
unexpected kEND, expecting $end

Hai un errore alla riga 17 del controller application, non hai chiuso un
def
o un if o un when

Ok?

Ciao,
Tommaso

Già , i “Something went wrong” sono quasi sempre errori di sintassi.
Questo i functional test l’avrebbero trovato :slight_smile: