Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exceptions in find_project_root [OS X Mavericks] #240

Open
jonbrenner opened this issue Oct 20, 2014 · 3 comments
Open

Exceptions in find_project_root [OS X Mavericks] #240

jonbrenner opened this issue Oct 20, 2014 · 3 comments

Comments

@jonbrenner
Copy link

startup, version: 3065 osx x64 channel: stable
executable: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text
working dir: /
packages path: /Users/jon/Library/Application Support/Sublime Text 3/Packages
state path: /Users/jon/Library/Application Support/Sublime Text 3/Local
hardware concurrency: 8
zip path: /Applications/Sublime Text.app/Contents/MacOS/Packages
zip path: /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages
found 7 files for base name Default.sublime-keymap
found 2 files for base name Default.sublime-mousemap
found 5 files for base name Main.sublime-menu
loading bindings
loading pointer bindings
found 1 files for base name Default.sublime-theme
theme loaded
app ready
wrote startup cache, added files: 47 orphaned files: 0 total files: 188 cache hits: 141
pre session restore time: 3.70795
using gpu buffer for window
using gamma: 2 (err: 6.9282)
first paint time: 3.7642
startup time: 3.78484
launching: /Applications/Sublime Text.app/Contents/MacOS/plugin_host
loaded 906 snippets
reloading plugin Default.block
reloading plugin Default.comment
reloading plugin Default.copy_path
reloading plugin Default.delete_word
reloading plugin Default.detect_indentation
reloading plugin Default.duplicate_line
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_file_settings
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.swap_line
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.trim_trailing_white_space
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin ElasticTabstops.edit
reloading plugin ElasticTabstops.elastic_tabstops
reloading plugin Markdown Preview.helper
reloading plugin Markdown Preview.markdown_settings
reloading plugin Markdown Preview.markdown_wrapper
reloading plugin Markdown Preview.MarkdownPreview
reloading plugin Package Control.Package Control
reloading plugin RSpec.OpenRSpecFile
reloading plugin RSpec.RSpecCreateModule
reloading plugin RSpec.RSpecDetectFileType
reloading plugin RSpec.shared
reloading plugin RubyTest.run_ruby_test
reloading plugin Sublimerge Pro.Sublimerge
plugins loaded
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 440, in is_enabled_
ret = self.is_enabled()
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 335, in is_enabled
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 307, in file_type
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 141, in load_config
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 163, in bundler_support
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 230, in find_project_root
AttributeError: 'AnonymousFile' object has no attribute 'partition_folder'
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 440, in is_enabled_
ret = self.is_enabled()
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 335, in is_enabled
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 307, in file_type
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 141, in load_config
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 163, in bundler_support
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 230, in find_project_root
AttributeError: 'AnonymousFile' object has no attribute 'partition_folder'
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 440, in is_enabled_
ret = self.is_enabled()
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 345, in is_enabled
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 307, in file_type
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 141, in load_config
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 163, in bundler_support
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 230, in find_project_root
AttributeError: 'AnonymousFile' object has no attribute 'partition_folder'
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 440, in is_enabled_
ret = self.is_enabled()
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 345, in is_enabled
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 307, in file_type
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 141, in load_config
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 163, in bundler_support
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 230, in find_project_root
AttributeError: 'AnonymousFile' object has no attribute 'partition_folder'
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 440, in is_enabled_
ret = self.is_enabled()
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 369, in is_enabled
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 307, in file_type
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 141, in load_config
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 163, in bundler_support
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 230, in find_project_root
AttributeError: 'AnonymousFile' object has no attribute 'partition_folder'
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 440, in is_enabled_
ret = self.is_enabled()
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 369, in is_enabled
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 307, in file_type
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 141, in load_config
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 163, in bundler_support
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 230, in find_project_root
AttributeError: 'AnonymousFile' object has no attribute 'partition_folder'
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 438, in is_enabled_
ret = self.is_enabled(**args)
TypeError: is_enabled() got an unexpected keyword argument 'split_view'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 442, in is_enabled_
ret = self.is_enabled()
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 380, in is_enabled
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 307, in file_type
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 141, in load_config
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 163, in bundler_support
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 230, in find_project_root
AttributeError: 'AnonymousFile' object has no attribute 'partition_folder'
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 438, in is_enabled_
ret = self.is_enabled(**args)
TypeError: is_enabled() got an unexpected keyword argument 'split_view'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 442, in is_enabled_
ret = self.is_enabled()
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 380, in is_enabled
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 307, in file_type
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 141, in load_config
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 163, in bundler_support
File "run_ruby_test in /Users/jon/Library/Application Support/Sublime Text 3/Installed Packages/RubyTest.sublime-package", line 230, in find_project_root
AttributeError: 'AnonymousFile' object has no attribute 'partition_folder'
Package Control: Skipping automatic upgrade, last run at 2014-10-20 17:28:53, next run at 2014-10-20 18:28:53 or after

@andrewobrien
Copy link

+1 on ST3 - Yosemite

@agius
Copy link

agius commented Nov 18, 2014

UPDATE turns out this is only if "check_for_bundler" is enabled - temp solution, just set "run_rspec_command": "bundle exec rspec {relative_path}"

Also getting this, Yosemite + Sublime Text 3. Running via subl command - either on a directory or project, doesn't seem to help. Tried both installing with Package Control and straight git clone.

These are the different error types I found from the console. Happy to post a full log if that would help.

can't + a None and String (nil catch needed?)

Writing file /Users/atevans/Library/Application Support/Sublime Text 3/Packages/User/RubyTest.sublime-settings with encoding UTF-8 (atomic)
reloading Packages/User/RubyTest.sublime-settings
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 440, in is_enabled_
    ret = self.is_enabled()
  File "/Users/atevans/Library/Application Support/Sublime Text 3/Packages/RubyTest/run_ruby_test.py", line 342, in is_enabled
    def is_enabled(self): return 'run_test' in self.file_type().features()
  File "/Users/atevans/Library/Application Support/Sublime Text 3/Packages/RubyTest/run_ruby_test.py", line 314, in file_type
    self.load_config()
  File "/Users/atevans/Library/Application Support/Sublime Text 3/Packages/RubyTest/run_ruby_test.py", line 145, in load_config
    if bundler: self.bundler_support()
  File "/Users/atevans/Library/Application Support/Sublime Text 3/Packages/RubyTest/run_ruby_test.py", line 172, in bundler_support
    gemfile_path = project_root + '/Gemfile'
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

is_enabled got unexpected argument 'split_view'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 442, in is_enabled_
    ret = self.is_enabled()
  File "/Users/atevans/Library/Application Support/Sublime Text 3/Packages/RubyTest/run_ruby_test.py", line 376, in is_enabled
    def is_enabled(self): return 'verify_syntax' in self.file_type().features()
  File "/Users/atevans/Library/Application Support/Sublime Text 3/Packages/RubyTest/run_ruby_test.py", line 314, in file_type
    self.load_config()
  File "/Users/atevans/Library/Application Support/Sublime Text 3/Packages/RubyTest/run_ruby_test.py", line 145, in load_config
    if bundler: self.bundler_support()
  File "/Users/atevans/Library/Application Support/Sublime Text 3/Packages/RubyTest/run_ruby_test.py", line 172, in bundler_support
    gemfile_path = project_root + '/Gemfile'
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 438, in is_enabled_
    ret = self.is_enabled(**args)
TypeError: is_enabled() got an unexpected keyword argument 'split_view'

'AnonymousFile' object has no attribute 'partition_folder'

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 440, in is_enabled_
    ret = self.is_enabled()
  File "/Users/atevans/Library/Application Support/Sublime Text 3/Packages/RubyTest/run_ruby_test.py", line 342, in is_enabled
    def is_enabled(self): return 'run_test' in self.file_type().features()
  File "/Users/atevans/Library/Application Support/Sublime Text 3/Packages/RubyTest/run_ruby_test.py", line 314, in file_type
    self.load_config()
  File "/Users/atevans/Library/Application Support/Sublime Text 3/Packages/RubyTest/run_ruby_test.py", line 145, in load_config
    if bundler: self.bundler_support()
  File "/Users/atevans/Library/Application Support/Sublime Text 3/Packages/RubyTest/run_ruby_test.py", line 167, in bundler_support
    project_root = self.file_type(None, False).find_project_root()
  File "/Users/atevans/Library/Application Support/Sublime Text 3/Packages/RubyTest/run_ruby_test.py", line 237, in find_project_root
    to_find = os.sep + self.partition_folder + os.sep
AttributeError: 'AnonymousFile' object has no attribute 'partition_folder'

My config:

startup, version: 3065 osx x64 channel: stable
executable: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text
working dir: /
packages path: /Users/atevans/Library/Application Support/Sublime Text 3/Packages
state path: /Users/atevans/Library/Application Support/Sublime Text 3/Local
hardware concurrency: 8
zip path: /Applications/Sublime Text.app/Contents/MacOS/Packages
zip path: /Users/atevans/Library/Application Support/Sublime Text 3/Installed Packages

@benjaminwood
Copy link

I'm also having this problem on ST3 & Yosemite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants