Skip to content

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

Open

Description

@iNeverSleeeeep

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

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

<results>
  ...

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

Activity

  1. changed the title [-]tsclua在实用--xml参数时实用stderr作为输出的设计很差[/-] [+]tsclua在实用--xml参数时使用stderr作为输出的设计很差[/+] on Sep 1, 2020
  2. iNeverSleeeeep commented on Sep 1, 2020

    @iNeverSleeeeep
    Author

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

  3. ben620 commented on Feb 2, 2021

    @ben620
    Collaborator

    在使用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

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