Floobits/floobits-sublime

Does not prompt for directory when joining a new workspace

euwbah opened this issue · 3 comments

I get this error in the console when I turn on debug mode.
AttributeError: 'str' object has no attribute 'get'

Because I already have an old version of python installed (because of flootty), I'm not sure if this .get method of str is only available for the newer versions of python...

What OS version, Python version, and Sublime Text version are you using? What is the traceback above the error?

**I have the same problem.

OSX 10.11.5
python 2.7.11e 3.5.1**

Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 457, in is_enabled_
ret = self.is_enabled()
File "/Users/fabio/Library/Application Support/Sublime Text 3/Packages/Floobits/window_commands.py", line 387, in is_enabled
return not utils.can_auth()
File "/Users/fabio/Library/Application Support/Sublime Text 3/Packages/Floobits/floo/common/utils.py", line 140, in can_auth
return bool((auth.get('username') or auth.get('api_key')) and auth.get('secret'))
AttributeError: 'str' object has no attribute 'get'
Emmet: No need to update PyV8
Package Control: No updated packages
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 455, in is_enabled_
ret = self.is_enabled(**args)
TypeError: is_enabled() got an unexpected keyword argument 'force'

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 459, in is_enabled_
ret = self.is_enabled()
File "/Users/fabio/Library/Application Support/Sublime Text 3/Packages/Floobits/window_commands.py", line 387, in is_enabled
return not utils.can_auth()
File "/Users/fabio/Library/Application Support/Sublime Text 3/Packages/Floobits/floo/common/utils.py", line 140, in can_auth
return bool((auth.get('username') or auth.get('api_key')) and auth.get('secret'))
AttributeError: 'str' object has no attribute 'get'
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 455, in is_enabled_
ret = self.is_enabled(**args)
TypeError: is_enabled() got an unexpected keyword argument 'force'

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 459, in is_enabled_
ret = self.is_enabled()
File "/Users/fabio/Library/Application Support/Sublime Text 3/Packages/Floobits/window_commands.py", line 387, in is_enabled
return not utils.can_auth()
File "/Users/fabio/Library/Application Support/Sublime Text 3/Packages/Floobits/floo/common/utils.py", line 140, in can_auth
return bool((auth.get('username') or auth.get('api_key')) and auth.get('secret'))
AttributeError: 'str' object has no attribute 'get'

I'm betting that both of you put global settings in the auth section of your floorc.jsons. Something along the lines of...

{
    "auth": {
      "floobits.com": {
        "api_key": "...",
        "secret": "...",
        "username": "..."
      },
      "debug": "true"
    }
}

(Debug is in the auth section instead of the root. Also, it's set to a string instead of a boolean value.)

I've tagged a new release (v3.5.7) that fixes this problem and logs if there are some suspicious attributes under 'auth': {... in floorc.json.