Sublimetext3 安装后升华仪3不工作
我正在尝试使用SublimeNet3验证SublimeText 3(可移植)中的xml文件 我已经安装了Sublimiter3以及SublimiterXML包。它们都显示在已安装的软件包中 我已经安装了xmllint并将其添加到我的路径中。当我在控制台中键入xmllint时,会显示“输入文件名”,所以我知道安装了xmllint 当我检查SublimiteLiner首选项时,模式是背景,这意味着它应该始终检查每个更改 但什么都没有发生。对于我能想到的任何xml错误,编辑器中根本没有反馈。有什么方法可以实现它吗 编辑: 以下是我的设置。用户设置为空Sublimetext3 安装后升华仪3不工作,sublimetext3,xmllint,sublimelinter,Sublimetext3,Xmllint,Sublimelinter,我正在尝试使用SublimeNet3验证SublimeText 3(可移植)中的xml文件 我已经安装了Sublimiter3以及SublimiterXML包。它们都显示在已安装的软件包中 我已经安装了xmllint并将其添加到我的路径中。当我在控制台中键入xmllint时,会显示“输入文件名”,所以我知道安装了xmllint 当我检查SublimiteLiner首选项时,模式是背景,这意味着它应该始终检查每个更改 但什么都没有发生。对于我能想到的任何xml错误,编辑器中根本没有反馈。有什么方法
{
"default": {
"debug": false,
"delay": 0.25,
"error_color": "D02000",
"gutter_theme": "Packages/SublimeLinter/gutter-themes/Default/Default.gutter-theme",
"gutter_theme_excludes": [],
"lint_mode": "background",
"mark_style": "outline",
"no_column_highlights_line": false,
"passive_warnings": false,
"paths": {
"linux": [],
"osx": [],
"windows": []
},
"python_paths": {
"linux": [],
"osx": [],
"windows": []
},
"rc_search_limit": 3,
"shell_timeout": 10,
"show_errors_on_save": false,
"show_marks_in_minimap": true,
"syntax_map": {
"python django": "python",
"html 5": "html",
"html (django)": "html",
"html (rails)": "html",
"javascript (babel)": "javascript",
"php": "html"
},
"warning_color": "DDB700",
"wrap_find": true
}
}这本书内容非常广泛,但值得您花时间通读。您可以在its上找到Sublimiter xmllint
的自述文件,其中有指向主要Sublimiter文档中有关设置和配置的相关部分的链接
SublimiteLiner的插件生态系统功能强大、可配置且可扩展,但不幸的是,它并不总是“开箱即用”,因此通常需要一些设置和配置。然而,提供的定制程度将弥补学习如何使一切正常工作所花费的时间。如果不知道您的具体设置,我无法提供更具体的内容,但文档非常好。我在Sublimiter和Sublimiter contrib clang方面也有类似的问题。SublimiterPHP正在工作,但SublimiterContrib-clang没有工作。不确定这是否对xmlint有帮助,但也许值得一试 帮助我弄清楚这一点的是检查控制台输出(视图>显示控制台),这帮助我弄清楚哪里出了问题。几次搜索之后,我似乎需要重新安装xcode的命令行工具
我能够运行
xcode-select--install
,它现在对我有效。如果您或其他人仍然需要它,请尝试这个。您需要添加一些用户设置
Preferences->Package settings->subgramelineter->settings–default
)default
更改为user
linters
设置(如果不存在)。应该是这样的:
"linters": {
"xmllint": {
"@disable": false,
"args": [
"--xinclude",
"--postvalid",
"--noout",
],
"excludes": []
}
},
我刚刚遇到了同样的问题,下面显示了(在Linux和windows上)您所需要的升华linter的最小用户设置集。再次将debug设置为true,查看控制台输出是一个很大的帮助
// SublimeLinter Settings - User
{
// Set to true to print extra information in the console.
"debug": true,
// Linter specific settings.
// More info: http://www.sublimelinter.com/en/stable/linter_settings.html
// Linter specific settings except for 'styles' can also be changed
// in sublime-project settings.
// What settings are available is documented in the readme of the
// specific linter plugin.
// Example:
"linters": {
// The name of the linter you installed
"xmllint": {
// Disables the linter. The default here is 'not set'
"disable": false,
// Additional arguments for the command line. Either a string
// or an array. If set to a string, we 'shlex.split' it*.
// E.g. '--ignore D112' or ['--config', './.config/foo.ini']
//
// * Note: Use proper quoting around paths esp. on Windows!
"args": ["--valid"],
// Lint mode determines when the linter is run. The linter setting
// will take precedence over the global setting.
"lint_mode": "background",
// // Determines for which views this linter will run.
// use default selectors .. which should work
// if we have blank selector then we lint all files, which we don't want
// "selector": "",
// The current working dir the lint job will run in.
// we need this file path to get the relative dir that the .dtd file is stored in
"working_dir": "$file_path",
}
},
}
您是否正确配置了SublimeLiner和插件?我已经完成了我列出的操作。SublimiteLiner网站上没有配置说明。只需安装和使用。这两本书我都读过。如果有更多的步骤要配置,我找不到它们…我已经完成了标记在那里的步骤。可能有很多关于SublimeLiner的文档,但是关于让它运行的文档是相当不够的。SublimeLineter是按照安装说明安装的,xmllint是按照安装说明安装的,并添加到我的路径中。我在文档中阅读的所有其他内容都与安装和运行无关。