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

Click on a file name + line open the file but not goto to the line #105

Closed
Champal opened this issue Dec 1, 2015 · 3 comments
Closed

Click on a file name + line open the file but not goto to the line #105

Champal opened this issue Dec 1, 2015 · 3 comments

Comments

@Champal
Copy link

Champal commented Dec 1, 2015

Hi,

In the "Javascript Console" when I click on file.js:xxx, the good file.js is open but the "Goto Line" don't work.

SublimeText build 3083
SublimeWebInspector 1.7.4

SublimeText Console :

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 556, in run_
    return self.run(edit)
  File "views in C:\Users\x\AppData\Roaming\Sublime Text 3\Installed Packages\Web Inspector.sublime-package", line 264, in run
  File "C:\Users\x\AppData\Roaming\Sublime Text 3\Installed Packages\Web Inspector.sublime-package\views.py", line 149, in check_click
  File "swi in C:\Users\x\AppData\Roaming\Sublime Text 3\Installed Packages\Web Inspector.sublime-package", line 1437, in open_script_by_id_and_focus_line
  File "swi in C:\Users\x\AppData\Roaming\Sublime Text 3\Installed Packages\Web Inspector.sublime-package", line 1444, in open_script_and_focus_line_by_filename
  File "swi in C:\Users\x\AppData\Roaming\Sublime Text 3\Installed Packages\Web Inspector.sublime-package", line 1431, in do_when
  File "swi in C:\Users\x\AppData\Roaming\Sublime Text 3\Installed Packages\Web Inspector.sublime-package", line 1444, in <lambda>
  File "swi in C:\Users\x\AppData\Roaming\Sublime Text 3\Installed Packages\Web Inspector.sublime-package", line 1447, in open_script_and_focus_line_callback
TypeError: Can't convert 'int' object to str implicitly
danmoseley added a commit that referenced this issue Feb 29, 2016
Convert line_number to int, fixes #105
@danmoseley
Copy link
Collaborator

@Champal I created st3-1.7.5-prerelease. This is the only change. To try it:

To receive pre-release versions, instead of blessed versions, add Web Inspector to your install_prereleases section of your Package Control user settings, for example:
"install_prereleases":
[
"Web Inspector"
]

@danmoseley
Copy link
Collaborator

Let me know if it works well for you and I can upgrade to a real release later.

@Champal
Copy link
Author

Champal commented Mar 16, 2016

Hi, with v1.7.5-prerelease it almost work. It's going to n+1 line !

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

2 participants