Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
liuchengxu opened this issue Feb 20, 2017 · 3 comments
Closed

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

liuchengxu opened this issue Feb 20, 2017 · 3 comments

Comments

@liuchengxu
Copy link

liuchengxu commented Feb 20, 2017

我好像并没有什么 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]

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

@skywind3000
Copy link
Owner

skywind3000 commented Feb 21, 2017

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

@liuchengxu
Copy link
Author

liuchengxu commented Feb 21, 2017

应该也是 vim-polyglot 的问题.

set it back

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

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

@liuchengxu
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants