shuky19 / sublime_debugger

Interactive debugger for sublime
Apache License 2.0
429 stars 24 forks source link

Won't Start... Now with stack trace - list index out of range #42

Open JoshuaSP opened 9 years ago

JoshuaSP commented 9 years ago

I'm a newbie programmer so I didn't know (until just now) that ST itself had a console. Here's what comes up when I try to run debug:

Traceback (most recent call last): File "/Applications/Sublime Text 3.app/Contents/MacOS/sublimeplugin.py", line 524, in run return self.run(**args) File "/Users/joshuapenman/Library/Application Support/Sublime Text 3/Packages/Ruby Debugger/debug_command.py", line 76, in run self.start_command(self.window.active_view().file_name()) File "/Users/joshuapenman/Library/Application Support/Sublime Text 3/Packages/Ruby Debugger/debug_command.py", line 87, in start_command is_legal, file_path, arguments = PathHelper.get_file(file_name, self.window) File "/Users/joshuapenman/Library/Application Support/Sublime Text 3/Packages/Ruby Debugger/debugger/helpers/path_helper.py", line 38, in get_file elif path.isfile(path.join(window.folders()[0], file_name)): IndexError: list index out of range

Thank you so much for building what seems to be an amazing tool!

JoshuaSP commented 9 years ago

Okay, update:

If I enter the FULL PATH of file in the debug prompt, it works!

So this seems to be entirely a problem with how Sublime is passing paths to Debug. I've never written python but I might see if I can poke at it and give it a shot.