Comments (11)
构建失败后, 仍会执行上次生成的可执行文件
没法复现,这边正常
all target 时, 会执行xmake run all 而非 xmake run --all, 致使运行失败
这个修了,更新下插件
from xmake-vscode.
构建失败后, 仍会执行上次生成的可执行文件
没法复现,这边正常
all target 时, 会执行xmake run all 而非 xmake run --all, 致使运行失败
这个修了,更新下插件
作者你好, 我尝试一个demo
- 第一次 xmake.onBuildRun 生成输出 hello world 的可执行文件
- 第二次 xmake.onBuildRun 构建失败, 执行旧可执行文件
from xmake-vscode.
buildRun 目前是两个独立的 process task ,build 出错暂时影响不到后面的 run ,并且不好改。。要么你直接 xmake.lua 里配,用 run
https://xmake.io/#/zh-cn/guide/build_policies?id=runautobuild
from xmake-vscode.
作者你好, 上面的问题已经完美解决了, 但我有一个问题, 无法解决您可以帮助我吗
有以下文件结构
- Test
- xmake.lua ( Target("Demo1") + Target("Demo2") + ... )
- Demo1.cpp
- Demo2.cpp
...
- Main.cpp
- xmake.lua ( target("Main") + include("Test") )
我想要实现一个 target("All_Demo"), 他会对 Test 内的每个cpp文件进行构建, 生成多个可执行文件, 并调用
from xmake-vscode.
buildRun 目前是两个独立的 process task ,build 出错暂时影响不到后面的 run ,并且不好改。。要么你直接 xmake.lua 里配,用 run
https://xmake.io/#/zh-cn/guide/build_policies?id=runautobuild
作者你好, 我已经开启了run.autobuild, 但是当我选择 target: Test_Demo 时, 他好像不会 run前自动构建
如图: 第一次我尝试输出 "first", 第二次我尝试输出 "second", 但是它仍输出 "first"
from xmake-vscode.
再试试,xmake update -s dev
from xmake-vscode.
再试试,xmake update -s dev
抱歉作者, 是我说错了, 在 all target 下才会出现的, 对不起
PS: 我是使用的是 xmake.onRun
from xmake-vscode.
再试试 xmake update -s dev,如果代码没改动,不会构建
from xmake-vscode.
再试试 xmake update -s dev,如果代码没改动,不会构建
当我将 target:Test_Demo 的 set_default(false) 改为 set_default(true) 之后, 这个问题成功解决了
PS: set_default(false) 下, 代码即使改动了, 仍然不会构建, 希望作者可以修复
from xmake-vscode.
这边可以,没法复现
ruki-2:Demo ruki$ xmake run -a
[ 37%]: cache compiling.debug Test/Demo.cpp
[ 87%]: linking.debug Test_Demo
[100%]: build ok, spent 1.143s
mainruki-2:Demo ruki$ touch Test/Demo.cpp
ruki-2:Demo ruki$ xmake run -a
[ 37%]: cache compiling.debug Test/Demo.cpp
[ 87%]: linking.debug Test_Demo
[100%]: build ok, spent 0.421s
from xmake-vscode.
这边可以,没法复现
ruki-2:Demo ruki$ xmake run -a [ 37%]: cache compiling.debug Test/Demo.cpp [ 87%]: linking.debug Test_Demo [100%]: build ok, spent 1.143s mainruki-2:Demo ruki$ touch Test/Demo.cpp ruki-2:Demo ruki$ xmake run -a [ 37%]: cache compiling.debug Test/Demo.cpp [ 87%]: linking.debug Test_Demo [100%]: build ok, spent 0.421s
我重新试了demo, 发现也无法复现( 我也不知道为什么 )
最后感谢作者的解答, 祝作者生活快乐
from xmake-vscode.
Related Issues (20)
- 当workspace里面有多个目录的时候,不能够自动检测目录,打开xmake文件也不能自动激活 HOT 2
- Make lsp backend configurable HOT 2
- 设置xmake build目录后调整不回去默认的 HOT 2
- vscode 调试配置launch.json无法添加visualizerFile属性 HOT 6
- C++设置xmake build目录重启虚拟机后编译可能检测不到代码变化 HOT 8
- cuda 项目生成的compile_commands貌似无法正常提示 HOT 6
- `project directory (/path/dir) is not empty!` error when using VSCode and auto generated `.vscode` directory. HOT 2
- 记住上次关闭时选中的target HOT 1
- 将生成"compile_commands.json"文件的默认地址从".vscode"文件夹移动到"build"文件夹 HOT 3
- 无法正常生成compile_commands,以及“Error:there is no registered task type 'cppbuild'” HOT 1
- option() to be visible in xmake vscode extension HOT 1
- "stopAtEntry" option from launch.json is not respected HOT 3
- VSCode 插件不生效 HOT 3
- Target里on_load打印消息,会导致run或debug无法运行 HOT 1
- 当使用set_targetdir设置输出目录后,在vscode中使用lanunch.json开启程序会报target program not found HOT 2
- toolchain drop list improvement HOT 1
- vscode插件 debug 启动不了 HOT 1
- 允许设置右下角快捷按钮的工作目录 HOT 1
- 每次启动vscode激活扩展时都需要点击build按钮重新构建项目,才可以开始debug
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xmake-vscode.