flipperdevices / flipperzero-ufbt

Compact tool for building and debugging applications for Flipper Zero.
https://pypi.org/project/ufbt/
GNU General Public License v3.0
598 stars 40 forks source link

compile_commands.json wont get created by ufbt vscode_dist #26

Closed arag0re closed 1 year ago

arag0re commented 1 year ago
Summary:

The compile_commands.json file is not being generated as expected when using ufbt vscode_dist.

Actual Behavior:

The compile_commands.json file is not created despite running the ufbt vscode_dist command. This can result in a lack of proper code navigation and IntelliSense functionality in Visual Studio Code.

Additional Information:

UFBT Version:  0.2.4.3
OS: MacOS 14
UFBT Status: 
12:56:10.148 [I] uFBT version    0.2.4.3
12:56:10.149 [I] State dir       /Users/antonstadie/.ufbt
12:56:10.149 [I] Download dir    /Users/antonstadie/.ufbt/download
12:56:10.149 [I] SDK dir         /Users/antonstadie/.ufbt/current
12:56:10.149 [I] Toolchain dir   /Users/antonstadie/.ufbt/toolchain
12:56:10.149 [I] Target          f7
12:56:10.149 [I] Mode            channel
12:56:10.149 [I] Version         0.94.1
12:56:10.149 [I] Details         {'hw_target': 'f7', 'mode': 'channel', 'channel': 'release',      'json_index': 'https://update.flipperzero.one/firmware/directory.json', 'version': '0.94.1'}

Screenshots:

image
hedger commented 1 year ago

That file is generated when the app is built for the first time.

hedger commented 1 year ago

You can do both app build & vscode setup with ufbt faps vscode_dist.

arag0re commented 1 year ago

That file is generated when the app is built for the first time.

Thx for the clarification. Im also trying to use clion as IDE. My m8 already got it working somehow, will try to implement the creation for the .idea -folder in a ufbt fork. Will open pull req when tested and working 🫡

hedger commented 1 year ago

FYI - this ufbt package is basically just an SDK downloader & wrapper. Main implementation is within firmware's repo and is bundled in the SDK you download: https://github.com/flipperdevices/flipperzero-firmware/tree/dev/scripts/ufbt

hedger commented 1 year ago

As for supporting other IDEs as a part of official distribution - we've already made some generic improvements that specifically clion can benefit from. However, maintaining full IDE configuration for a variety of 3rd-party solutions is a task we cannot take on at the moment.