Skip to content

程序结果没有输出到 quickfix? #37

@liuchengxu

Description

@liuchengxu

我好像并没有什么 vim 配置上的调整,之前还是没问题的,但是 AsyncRun 突然不能将结果输出到 quickfix 中。

terminal 中运行,应当 print 一些信息:

user number: 943
item number: 1650
density:  0.05141489122401106
rating records: 79999
rating scale:  [1, 2, 3, 4, 5]
global average rating:  3.52833160415
MAE: 0.8502
RMSE: 1.0630

实际 vim 中 AsyncRun 运行:

|| [python 'average_filling.py']
|| [Finished in 10 seconds]

不知道是否有些排查的方法?

Activity

skywind3000

skywind3000 commented on Feb 21, 2017

@skywind3000
Owner

你看看你的全局 errorformat 值是否被插件改变了(比如某插件更新后),errorformat里一些选项会把非匹配的文字给trim掉,看这个:#30

liuchengxu

liuchengxu commented on Feb 21, 2017

@liuchengxu
Author

应该也是 vim-polyglot 的问题.

set it back

您能稍微展开下吗?我看了一下,vim-polygolt 对很多文件类型的 errorformat 都有设置,那么我需要针对不同文件类型进行设置吗?或者说可以统一进行设置?

同时使用 vim-polyglot 与 asyncrun 的用户应该都会遇到这个问题...

liuchengxu

liuchengxu commented on Feb 22, 2017

@liuchengxu
Author

解决方案:

autocmd BufEnter * set errorformat&

参见重置选项:

                                :set-default :set-& :set-&vi :set-&vim
:se[t] {option}&        Reset option to its default value.  May depend on the
                        current value of 'compatible'. {not in Vi}
:se[t] {option}&vi      Reset option to its Vi default value. {not in Vi}
:se[t] {option}&vim     Reset option to its Vim default value. {not in Vi}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @skywind3000@liuchengxu

        Issue actions

          程序结果没有输出到 quickfix? · Issue #37 · skywind3000/asyncrun.vim