narou icon indicating copy to clipboard operation
narou copied to clipboard

narou web実行時にtilt/erubis (LoadError)が出力され完了しない

Open kokotaro opened this issue 1 year ago • 2 comments

https://jbbs.shitaraba.net/bbs/read.cgi/computer/44668/1716423212/167 参照

以下の環境にてエラー発生して起動しない。再現確認時にJAVAをjdk-8u431へ変更しても状況に変化ありません。 掲示板には tiltのバージョン 2.5.0が要因というコメントあり、実際に2.3.0、2.4.0では未発生の状況です。

narou:3.9.1 ruby:3.3.6 JAVA:openjdk version "21.0.5" 2024-10-15 LTS AozoraEpub3:1.1.0b46

internal:C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb:136:in require': cannot load such file -- tilt/erubis (LoadError) from <internal:C:/Ruby33-x64/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in require' from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/web/appserver.rb:15:in <top (required)>' from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/web/all.rb:7:in require_relative' from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/web/all.rb:7:in <top (required)>' from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/command/web.rb:118:in require_relative' from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/command/web.rb:118:in boot' from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/command/web.rb:87:in execute' from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/commandbase.rb:125:in execute!' from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/commandbase.rb:134:in execute!' from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/commandline.rb:29:in run' from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/commandline.rb:43:in run!' from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/narou.rb:50:in block in <top (required)>' from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/lib/backtracer.rb:16:in capture' from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/narou.rb:49:in <top (required)>' from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/bin/narou:13:in require_relative' from C:/Ruby33-x64/lib/ruby/gems/3.3.0/gems/narou-3.9.1/bin/narou:13:in <top (required)>' from C:/Ruby33-x64/bin/narou:32:in load' from C:/Ruby33-x64/bin/narou:32:in `

'

kokotaro avatar Dec 22 '24 07:12 kokotaro

ruby 3.4.1でもtilt2.5.0の影響で起動しません 2.4.0に下げたら起動しました

narou 3.9.1 openjdk version "21.0.5" 2024-10-15 LTS ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [x64-mingw-ucrt] AozoraEpub3-1.1.1b30Q

hauu avatar Dec 30 '24 17:12 hauu

対処法としては

  • tiltのバージョンを2.5未満に制限する
  • erubisの後継のerubiに移行する
  • 標準付属のerbにする

ググった感じerubisとerubiは互換っぽいので、それがいい気がする。

rogenobl avatar Jan 03 '25 11:01 rogenobl