edx编辑器和xmake适配遇到的一些问题 #4266
Replies: 9 comments
-
Title: Can the output information compiled by xmake turn off formatting and highlighting? In what scenario do you need this function?When doing the adaptation of edx and xmake, I used cmake before describe possible solutionsAdd a command to xmake to specify the output of the original compilation information Describe what you think is a candidateNo response other informationNo response |
Beta Was this translation helpful? Give feedback.
-
一个典型的codeblocks项目文件 |
Beta Was this translation helpful? Give feedback.
-
A typical codeblocks project file |
Beta Was this translation helpful? Give feedback.
-
这个高亮是编译器输出的,xmake 只是设置了 -fdiagnostics-color=always 开启了而已 按理,如果你运行 xmake 时候捕获了 stdout,xmake 会自动关闭这个的,不会输出高亮,不需要额外的关闭,内部有 isatty 判断 如果非要强行关,可以运行时候配置 输出警告,加 -w 肯定有效果,完整输出不处理,走 -v
不能保留
不支持 codeblocks 格式输出,但是可以执行 https://github.com/xmake-io/xmake-vscode/blob/master/assets/target_informations.lua xmake l target_informations.lua 可以在这基础上,输出自己关心的数据,也可以自己输出符合 codeblocks 格式的数据。。 更多跟 ide 的交互,错误获取等,可以参考 xmake-vscode 插件的实现,大部分功能,这里面都有类似实现。 |
Beta Was this translation helpful? Give feedback.
-
This highlight is output by the compiler, xmake just set -fdiagnostics-color=always to enable it It stands to reason that if you capture stdout when you run xmake, xmake will automatically close this, no output highlighting, no additional closing is required, there is isatty judgment inside If you have to forcibly close it, you can configure the Output warning, adding -w will definitely have an effect, the complete output will not be processed, use -v
can't keep
It does not support codeblocks format output, but you can execute https://github.com/xmake-io/xmake-vscode/blob/master/assets/target_informations.lua xmake l target_informations.lua On this basis, you can output the data you care about, or you can output data that conforms to the codeblocks format. . |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
除了最开头那个 error: 前缀,后面是编译器的输出。。这边所有错误,不仅仅是编译错误,只要运行出错,执行到了 raise("xxx") 都会显示 这个前缀是改不了的,但是高亮问题,上面说了 用
我这里可以,确保配置了 如果还是没有,可以看下
可以考虑内置,但目前暂时没时间支持,并且对这个格式 也不是很了解。 或者你可以先参考我上面说的 后面就能改用 |
Beta Was this translation helpful? Give feedback.
-
Except for the error: prefix at the very beginning, the following is the output of the compiler. . All errors here, not just compilation errors, as long as there is an error in operation, the execution reaches raise("xxx") Will display This prefix cannot be changed, but the highlighting problem, as mentioned above, can disable highlighting by running xmake with
I can do it here, make sure to configure If not, you can look at the complete compilation parameters in
It can be considered built-in, but currently there is no time to support it, and I don't know much about this format. Or you can refer to the You can use |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
你在什么场景下需要该功能?
edx(edx介绍 https://zhuanlan.zhihu.com/p/635336347 )和xmake的适配

1 有命令能关闭“编译输出的格式化”和“高亮”吗?
https://gitee.com/scu319hy/edx/issues/I76FIV#note_18886685_link
2 添加include路径时,自动去掉了尾部的"/",能保留吗
如图提到了可能会引发的问题
3 支持导出标准的数据格式
https://gitee.com/scu319hy/edx/issues/I76FIV#note_18892725_link
edx和clion的都采用了codeblocks的工程做为数据交换格式
描述可能的解决方案
1 给xmake加个命令指定输出原始的编译信息
描述你认为的候选方案
No response
其他信息
No response
Beta Was this translation helpful? Give feedback.
All reactions