我试图指定一个变量来打开一个带有特定应用程序的文件,但是无论我如何尝试引用它,它都不起作用。
sublime1=/Applications/Sublime\ Text.app/
sublime2="/Applications/Sublime\ Text.app/"
sublime3="/Applications/Sublime Text.app/"
我一直在尝试不同的方法来设置变量,但是对于我尝试过的每个变体,它都失败了。
open ~/.zshrc -a $sublime1
open ~/.zshrc -a $sublime2
open ~/.zshrc -a
我为sublime text 2做了一个插件,现在sublime text 3发布了,我移植了这个插件来处理sublime text 3。但是,我把sublime text 2版本留在了package控件中作为主版本。
我可以更新我的软件包,使其在sublime text 2和sublime text 3上都有效吗?
当我尝试启动sublime时,我得到了以下错误;
Error trying to parse file: Unexpected charachter, expected a comma or closing
bracket in c:\Users\Victor\AppData\RoaminSublime Text 2\Packages\User\
Default (Windows).sublime-keymap:221.
Sublime没有启动,只是显示了这个错误。所以我不知道如何编辑额外的逗号或括号。
我下载了sublime的最新副本,但最终出现了同样的错误;sublime无法启动,这是我
我在Ubuntu 12.04 LTS上。调用sublime foo.txt通常会在Sublime Text 2中打开foo.txt。最近我安装了。除此之外,我还尝试从我的文件系统中完全删除Sublime Text 2。
这样做之后,当我在终端中使用sublime时,我的系统仍然会尝试打开Sublime Text 2。显然这并不好--因为我删除了Sublime Text 2。(至少部分删除)。我注意到Sublime Text 2图标仍然在我的应用程序列表中。如果我试图通过单击Uninstall来删除它,我会得到以下错误:
The files which should be removed are
我为sublime text 3开发插件。并希望获得当前打开的文件路径..。
absolute1 = self.window.view.file_name()
..。其中self是sublime_plugin.WindowCommand
但失败了:
AttributeError: 'Window' object has no attribute 'view'
插件的完整代码:
import sublime, sublime_plugin
import re, os, os.path
class OpenrelCommand(sublime_plugin.Win
在我的.bashrc脚本中有以下内容:
alias sublime='open -a Sublime\ Text\ 2'
当bash shell初始化时,它将引发以下错误:
-a: not found
Sublime Text 2' not found
但是,如果我在终端中运行以下代码,它将按预期执行并打开Sublime:
open -a Sublime\ Text\ 2
最后,当我将以下内容放在我的.bashrc脚本中时,它不会在初始化shell时抛出一个错误.
alias sublime='open\ -a\ Sublime\ Text\ 2'
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sub
我是Sublime Text 3的新手,我想在Sublime Text 3上运行和编译java代码。但是,我收到了这个奇怪的错误:
/bin/bash: javac: command not found [Finished in 0.0s with exit code 127]
我在/home/***/Downloads/sublime_text_3/Packages/Java.sublime-package/JavaC.sublime-build中的文件看起来像这样:
{
"shell_cmd": "javac \"$file\" &
我想通过终端打开sublime文本编辑器,我已经可以通过subl命令打开它,但问题是当我打开编辑器然后终端加载,如下所示
(sublime_text:7397): GLib-CRITICAL **: Source ID 28147 was not found when attempting to remove it
(sublime_text:7397): GLib-CRITICAL **: Source ID 28265 was not found when attempting to remove it
(sublime_text:7397): GLib-CRITICAL **: So
我需要一些帮助安装崇高的文本3在Nixos 17.03。我已经下载并解压缩了从崇高中提取的tar球,当我尝试执行/opt/ sublime /sublime时,就会发生这种情况:
/opt/sublime_text/sublime_text
sh: /opt/sublime_text/sublime_text: No such file or directory
该文件存在于具有运行权限的正确位置。
sh-4.4$ cd /opt/sublime_text/
sh-4.4$ ls -la
totalt 15944
drwxr-xr-x 4 jan users 4096 23 sep
我已经通过Vagrant设置了一个32位版本的Ubuntu。我的计划是现在在这个盒子上安装Sublime Text 2。我下载了Sublime Text 2的32位Linux版本,并将其放在根目录中。通过同步文件夹,我将其移动到/opt。尝试通过/opt/ sublime \ Text\ 2/sublime_text运行sublime text会得到结果"sublime_text: command not found“。我不知道我该做什么。
任何帮助都是非常感谢的。
运行MacOS HighSiera10.13.5
日安!今天,我尝试在我的.bash_profile中编写一个脚本,允许我用一个命令sublime调用崇高文本。
下面是我用我有限的bash知识和一些研究制作的脚本:
sublime_open() # Function which opens the first argument as a text file in Sublime.
{
open -a /Applications/Sublime\ Text.app < $1.txt;
}
export -f sublime_open;
sublime_test()
我已经在我的机器上安装了Sublime,在无法安装之后,我去安装mysqld,我得到了以下错误:
# yum install mysqld
Loaded plugins: langpacks, refresh-packagekit
Repository sublime2 is listed more than once in the configuration
Repository sublime2-dev is listed more than once in the configuration
Repository sublime2-nightly is listed more than