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

tsclua在实用--xml参数时使用stderr作为输出的设计很差 #49

Open
iNeverSleeeeep opened this issue Sep 1, 2020 · 2 comments

Comments

@iNeverSleeeeep
Copy link

iNeverSleeeeep commented Sep 1, 2020

输出的xml中既包含了结果的输出,又包含了代码中异常的输出。
例如我在我们项目中实用tsclua.exe,得到的输出为:

<?xml version="1.0" encoding="UTF-8"?>
所在位置 行:1 字符:1 
+ ./tsclua.exe --xml xxxxxxxxxxxxx 2 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     + Category Info             :xxxxxxxxxxxxxxxxxxxxxx
     + FullyQualifiedErrorID  :  xxxxxxxxxxxxxxxxxxxxxxx

<results>
  ...

而且我根据这个错误也看不出来到底哪出错了。

@iNeverSleeeeep iNeverSleeeeep changed the title tsclua在实用--xml参数时实用stderr作为输出的设计很差 tsclua在实用--xml参数时使用stderr作为输出的设计很差 Sep 1, 2020
@iNeverSleeeeep
Copy link
Author

在使用python执行cmd的时候没有这个错误了,但是使用stderr作为结果输出依然是个奇怪的设计

@ben620
Copy link
Collaborator

ben620 commented Feb 2, 2021

在使用python执行cmd的时候没有这个错误了,但是使用stderr作为结果输出依然是个奇怪的设计

这个设计确实有失妥当,但主要目标是和C++工具保持一致。
推荐的使用方法是 tsclua.exe --xml src 2>result.xml

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