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

Opening code in Sublime Text 2 did not work. #1

Closed
Arkkimaagi opened this issue Oct 24, 2014 · 4 comments
Closed

Opening code in Sublime Text 2 did not work. #1

Arkkimaagi opened this issue Oct 24, 2014 · 4 comments

Comments

@Arkkimaagi
Copy link

I could not get the Open in Sublime Text feature to work from the DevTools. I'm using Sublime Text 2 and it was running when I tried. Nothing just happened.

Is there some way I can debug this?

@turbobabr
Copy link
Owner

I did test it with Sublime Text 3 only with the thought in mind that no one use 2nd version. :) But there is a workaround:

  • You install this guy
  • And setup a custom protocol handler like this:
    group

Template string: subl://open?url={file}&line={line}&column={column}

Let me know if it works for you.

@Arkkimaagi
Copy link
Author

I was not able to get it working with subl-handler, but instead I got it running with https://github.com/dhoulb/subl and using this as the template:

subl://open?path=/Applications/Sublime%20Text%202.app&url={file}&line={line}&column={column}

So thank you!

PS. It might help others wondering if you'd use Sublime Text 3 instead of just Sublime Text as the version 3 is still in beta. :)

@turbobabr
Copy link
Owner

Mikko,

I have just updated DevTools Assistant to solve this issue. Now if both versions of Sublime are installed Assistant prefers Sublime Text 2. Could you please check if it works?

  • Quit Sketch DevTools Assistant App if it's running.
  • Remove It from Applications folder.
  • Download and install a new version the same way you did it before.
  • Relaunch Sketch.
  • Enable DevTools panel using command-option-k
  • Go to settings panel and change Jump To Code Editor field back to Sublime

Now it should work with Sublime 2 if it's installed.

@Arkkimaagi
Copy link
Author

Works like a dream with my Sublime Text 2. I'm closing this as it totally fixed the problem without anything extra needed from the user.

Thank you!

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