Closed alirana01 closed 1 month ago
The recent updates enhance the com.espressif.idf.core
module by integrating Windows-specific file parsing and reparse tag functionalities. Dependencies on com.sun.jna
and com.sun.jna.platform
libraries have been added. New methods and classes have been introduced to handle reparse tags, file existence, and directory checks on Windows, improving the module's cross-platform capabilities.
File Path | Change Summary |
---|---|
bundles/com.espressif.idf.core/META-INF/MANIFEST.MF |
Added com.sun.jna and com.sun.jna.platform to required bundles. |
bundles/com.espressif.idf.core/src/com/espressif/idf/core/util/FileParseTag.java |
Introduced functionality for parsing Windows file attributes and reparse tags. |
bundles/com.espressif.idf.core/src/com/espressif/idf/core/util/IDFUtil.java |
Added method isReparseTag(File file) to check for reparse tags on Windows. |
bundles/com.espressif.idf.core/src/com/espressif/idf/core/util/WinNativeFileTagOperations.java |
Added methods for working with Windows reparse tags, checking file existence, and directories. |
bundles/com.espressif.idf.core/src/com/espressif/idf/core/SystemExecutableFinder.java |
Updated isExecutable method to handle file existence checks based on the platform. |
bundles/com.espressif.idf.ui/src/com/espressif/idf/ui/install/IDFDownloadPage.java |
Updated BrowseButtonSelectionAdapter to support Python file selection on all platforms. |
🐰 In the realm of code, where bytes do dance, New methods arise, enhancing our stance. Windows files now reveal their tags, With JNA's help, no more lags. Dependencies grow, functionality blooms, In the world of bits, no more gloom. 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@alirana01 hi !
Tested under: OS - Windows 10 ESP-IDF: v5.2.1
Is it possible to combine both filters into 1 filter without any manual manipulations ?
Because still, to display python3.exe I have to switch filter manually. The same works for PATH. I have to open "Browse" first -> then switch filter to python3.exe -> then close "Browse" -> and just then my path to python3 will be recognize by validator.
@alirana01 hi !
Tested under: OS - Windows 10 ESP-IDF: v5.2.1
Is it possible to combine both filters into 1 filter without any manual manipulations ? ![image](https://private-user-
I have pushed the changes but beware that now all python*.exe will be shown as the FileDialog can only use simple wildcards and does not support full regex
@alirana01 hi !
Tested under: OS - Windows 10 ESP-IDF: v5.2.1 Python: 3.11 / 3.12 / python3
Filter works good now, able to see both python.exe / python3.exe without any manual filter switching 👍 On Windows 10 everything works like it was ✔️
LGTM 👍
Description
Python selection dialog was not showing python3 due to missing filter
Fixes # (IEP-1226)
Type of change
Please delete options that are not relevant.
How has this been tested?
Use esp-idf manager view to add esp-idf and see if in the dialog the python3 filter is visible now
Test Configuration:
Checklist
Summary by CodeRabbit
New Features
Improvements
isExecutable
method to better handle file existence checks based on the platform.BrowseButtonSelectionAdapter
class for better cross-platform compatibility.