Skip to content

使用自定义路径报错 #24

Description

@tenya

在插件的设置中:Astyle Format: Astylerc,使用自定义路径报错:
"Some error while formatting: 无效的命令行选项: option=/home/hbf/tools/astylerc 输入 'astyle -h' 以获得有关命令行的帮助 Artistic Style 已经终止运行"

检查插件的源码:.vscode/extensions/dizoft.format-astyle-1.1.6/src
vi extension.js
34 // Format function
35 formatFunc = () => {
36 let command = astyle + ' ';
37
38 if (astylerc) {
39 command += ' --option=' + astylerc;
发现--option 填错了,应该为--options,改了之后,正常了

请开发人员review

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions