當我嘗試從Rails3中的TextMate運行測試時,我得到一個錯誤,我追溯到boot.rb。當我嘗試通過textmate運行boot.rb時,出現此錯誤:Textmate Rails3沒有這樣的文件加載 - 打包器
LoadError: no such file to load — bundler
method gem_original_require in custom_require.rb at line 31
method require in custom_require.rb at line 31
at top level in boot.rb at line 4
這甚至在一個全新的rails項目中。我能夠從終端呼叫
ruby <path_to>/boot.rb
我可以確認我的TM_RUBY變量是一樣的,當我打電話which ruby
在命令行中運行相同的boot.rb文件。你有什麼線索爲什麼我可能會得到這個錯誤?
(註釋補充說,我們已經建立了,是的,所述捆綁寶石安裝。) – pjmorse 2010-10-21 20:03:08
可能是GEM_PATH環境變量沒有被設置..? – mikeycgto 2010-10-22 18:37:25
聽起來像是在測試中配置錯誤,沒有足夠的回溯,我認爲我不能進一步提供幫助。另外,請嘗試更新Textmate中的包,因爲它們可能有問題。順便說一句,我的也不行! : -/ – Gav 2010-11-03 14:01:12