SublimeText / RSpec

Sublime Text 2 / 3 plugin for RSpec BDD Framework
124 stars 57 forks source link

Error when installing #25

Closed fabioperrella closed 9 years ago

fabioperrella commented 11 years ago

I got this from sublime console when installing rspec plugin

Reloading plugin /home/saas/.config/sublime-text-2/Packages/RSpec/OpenRSpecFile.py Traceback (most recent call last): File "./sublime_plugin.py", line 62, in reload_plugin File "./OpenRSpecFile.py", line 4, in from RSpec import shared ImportError: No module named RSpec

FichteFoll commented 11 years ago

21 broke ST2 compatability in terms that the "RSpec" module is not defined (due to how ST3 module loading involving sys.path works).

Workaround:

try:
    from RSpec import shared
except ImportError:  # ST2 module loading works slightly different than in 3
    import shared
princemaple commented 9 years ago

Hi @fabioperrella and @FichteFoll , is this still a concern or has everybody moved to ST3 by now?

fabioperrella commented 9 years ago

@princemaple I moved to ST3!

princemaple commented 9 years ago

@fabioperrella good to know!