Git Product home page Git Product logo

Comments (9)

waruqi avatar waruqi commented on June 6, 2024

老问题,目前还不支持 见 #47

from xmake-vscode.

Vinx911 avatar Vinx911 commented on June 6, 2024

对照命令xmake project -k compile_commands
将xmake-vscode/assets/update_intellisense.lua中config.load()改为task.run("config")
可以正常生成

刚接触xmake和lua,不太清楚这样修改是否合适。

-- imports
import("core.base.task")
import("core.project.config")
import("clang.compile_commands", {rootdir = path.join(os.programdir(), "plugins", "project")})

-- main entry
function main()

    -- generate compile_commands.json
    -- @note we can only load configuration because we watched onFileChanged(xmake.conf)
    task.run("config")
    compile_commands.make(".vscode")
end
``

from xmake-vscode.

waruqi avatar waruqi commented on June 6, 2024

也许会有问题,我记得之前是这么搞的,但是监控了xmake.conf变动 然后重新生成 commands 又去改了 config 又被监控到改动 ,会死循环

from xmake-vscode.

waruqi avatar waruqi commented on June 6, 2024

你可以看下插件代码监控代码 应该监控了 xmake.lua和 xmake.conf的变动

from xmake-vscode.

Vinx911 avatar Vinx911 commented on June 6, 2024

好的,谢谢

from xmake-vscode.

waruqi avatar waruqi commented on June 6, 2024

我加了一个 onUpdateIntellisense 的命令,你也可以手动执行去强制更新 compdb

from xmake-vscode.

HelloWorld886 avatar HelloWorld886 commented on June 6, 2024

我加了一个 onUpdateIntellisense 的命令,你也可以手动执行去强制更新 compdb

nice,我试了下已经能生成QT头文件路径了,求发布下

from xmake-vscode.

waruqi avatar waruqi commented on June 6, 2024

已经发布了

from xmake-vscode.

waruqi avatar waruqi commented on June 6, 2024

我修了

from xmake-vscode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.