"subl"命令无法正常工作 [英] "subl" command not working properly

查看:133
本文介绍了"subl"命令无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在终端中使用"subl"命令时遇到问题.它曾经可以正常工作,但是最近我运行它时,它确实打开了我想要的文件,但是我无法对其进行编辑,而且Sublime Text并没有显示在Mac的顶部栏中,就好像它根本没有在运行(有除停靠区中的图标外,也没有点).我有点像打开一个窗口而不是一个应用程序来打开它...但是当我从扩展坞中单击图标时,它就可以正常工作了!

I'm running into a problem when using the "subl" command in my terminal. It used to work fine but lately when I run it does open the files I want but I can't edit them and moreover Sublime Text doesn't show up in the topbar of my mac as if it wasn't running at all (there's no dot besides the icon in the dock aswell). I kind of opens it as if it was just a window and not an application...But when I click on the icon from the dock it works just fine !

我在Lion上运行着一部2008年的旧Macbook.

I've got an old macbook from 2008 running on Lion.

感谢您的帮助(我是新手),

Thanks for the help (I'm a newbie),

赞赏

推荐答案

尝试创建subl符号链接,它可能已被删除.

Try creating the subl symlink, it may have been deleted.

在终端机中:

ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

现在应该可以正常工作了.

It should now work.

编辑-您可能还要检查的另一件事.您是否安装了两个Sublime Text版本,即版本2和3?从您所说的内容来看,用subl不能正确打开它,但是在扩展坞中单击它时可以很好地打开,他们可能会打开不同的版本.在您的应用程序文件夹中查找.

Edit - one other thing you might check. Do you have two versions of Sublime Text installed, ie versions 2 and 3? From what you say about it not opening up properly with subl but opening fine when you click it in the dock, they may be opening different versions. Look in your applications folder.

这篇关于"subl"命令无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆