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

vscode的xmake插件创建C项目但是创建出来的文件是.cpp文件 #282

Open
KinhoLeung opened this issue Nov 27, 2024 · 4 comments
Labels

Comments

@KinhoLeung
Copy link

Xmake 版本

2.9.6

操作系统版本和架构

win11 23H2 X64

描述问题

vscode的xmake插件新建C项目但是创建出来的文件却是.cpp文件,并且这个.cpp文件使用了c++的库

期待的结果

期望创建出来的是.c文件

工程配置

add_rules("mode.debug", "mode.release")

target("test")
set_kind("binary")
add_files("src/*.cpp")

附加信息和错误日志

@KinhoLeung KinhoLeung added the bug label Nov 27, 2024
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: vscode creates a C project but the file created is a .cpp file

Xmake version

2.9.6

Operating system version and architecture

win11 23H2 X64

Describe the problem

vscode's xmake plug-in creates a new C project, but the file created is a .cpp file, and this .cpp file uses the c++ library

Expected results

What is expected to be created is a .c file

Project configuration

add_rules("mode.debug", "mode.release")

target("test")
set_kind("binary")
add_files("src/*.cpp")

Additional information and error logs

The xmake plug-in without

@waruqi waruqi transferred this issue from xmake-io/xmake Nov 28, 2024
@waruqi
Copy link
Member

waruqi commented Nov 28, 2024

这个你自己调下插件源码,按理执行 xmake create -l c test 创建的肯定是 c 的。。

@KinhoLeung
Copy link
Author

我使用的是Ctrl+Shift+P命令面板中的那个xmake:CreateProject命令创建的,出来的是确实是cpp。

@waruqi
Copy link
Member

waruqi commented Nov 28, 2024

再试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants