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

How to prevent the v3.0.0 editor automatically adding #include statements? (IEP-1321) #1046

Open
zjanosy opened this issue Sep 12, 2024 · 0 comments

Comments

@zjanosy
Copy link

zjanosy commented Sep 12, 2024

It is annoying that the editor automatically adds some #include statements to the sources when I call a function. In many cases the file will be included by another header file, and the order of includes is important because of dependencies. When there is an extra include, the compiler gives some cryptic errors, and it is hard to figure out the problem.

To Reproduce
Steps to reproduce the behavior:
Add a function call to a function in a component library.

Expected behavior
No include file would be added automatically.

Espressif-IDE Product Information:
CDT Build environment variables
PATH: C:\Espressif\tools\xtensa-esp-elf-gdb\14.2_20240403\xtensa-esp-elf-gdb\bin;C:\Espressif\tools\riscv32-esp-elf-gdb\14.2_20240403\riscv32-esp-elf-gdb\bin;C:\Espressif\tools\xtensa-esp-elf\esp-13.2.0_20240305\xtensa-esp-elf\bin;C:\Espressif\tools\esp-clang\16.0.1-fe4f10a809\esp-clang\bin;C:\Espressif\tools\riscv32-esp-elf\esp-13.2.0_20240305\riscv32-esp-elf\bin;C:\Espressif\tools\esp32ulp-elf\2.38_20240113\esp32ulp-elf\bin;C:\Espressif\tools\cmake\3.24.0\bin;C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20240318\openocd-esp32\bin;C:\Espressif\tools\ninja\1.11.1;C:\Espressif\tools\idf-exe\1.0.3;C:\Espressif\tools\ccache\4.8\ccache-4.8-windows-x86_64;C:\Espressif\tools\dfu-util\0.11\dfu-util-0.11-win64;C:\Espressif\tools\qemu-xtensa\esp_develop_8.2.0_20240122\qemu\bin;C:\Espressif\tools\qemu-riscv32\esp_develop_8.2.0_20240122\qemu\bin;C:\Espressif\python_env\idf5.3_py3.11_env\Scripts;C:\Espressif\frameworks\esp-idf-v5.3\tools;C:/Espressif/tools/espressif-ide/3.0.0//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.11.v20240426-1830/jre/bin/server;C:/Espressif/tools/espressif-ide/3.0.0//plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.11.v20240426-1830/jre/bin;C:\Python312\Scripts;C:\Python312;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Program Files\Calibre2;C:\Program Files\dotnet;c:\Program Files (x86)\GFABASIC32\Bin;C:\Program Files (x86)\MATLAB\MATLAB Compiler Runtime\v716\runtime\win32;C:\Program Files\MATLAB\R2021b\bin;C:\Program Files\PuTTY;C:\qp\qtools\MinGW32\bin;C:\qp\qtools\bin;C:\Program Files\nodejs;C:\ProgramData\chocolatey\bin;C:\Program Files\Nordic Semiconductor\nrf-command-line-tools\bin;C:\Program Files (x86)\Arm GNU Toolchain arm-none-eabi\13.2 Rel1\bin;C:\Users\janos\AppData\Local\Microsoft\WindowsApps;C:\Users\janos\AppData\Roaming\npm;C:\Users\janos.dotnet\tools;C:\Program Files\SciTools\bin\pc-win64;C:\Users\janos\AppData\Local\Programs\Microsoft VS Code\bin;C:\Espressif\tools\espressif-ide\3.0.0
USERDOMAIN_ROAMINGPROFILE: ZOLIPC
PROCESSOR_LEVEL: 6
SESSIONNAME: Console
ALLUSERSPROFILE: C:\ProgramData
PROCESSOR_ARCHITECTURE: AMD64
ESP_IDF_VERSION: 5.3
PSModulePath: C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files\Intel\Wired Networking
SystemDrive: C:
OPENOCD_SCRIPTS: C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20240318\openocd-esp32\share\openocd\scripts
IDF_COMPONENT_STORAGE_URL: file:///C:/Espressif/registry;default
USERNAME: janos
ProgramFiles(x86): C:\Program Files (x86)
FPS_BROWSER_USER_PROFILE_STRING: Default
PATHEXT: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
DriverData: C:\Windows\System32\Drivers\DriverData
ProgramData: C:\ProgramData
IDF_COMPONENT_MANAGER: 1
ProgramW6432: C:\Program Files
ALEXANDRIA_PORT_APP: 3000
HOMEPATH: \Users\janos
PROCESSOR_IDENTIFIER: Intel64 Family 6 Model 183 Stepping 1, GenuineIntel
PYTHON_EXE_PATH: C:/Espressif/python_env/idf5.3_py3.11_env/Scripts/python.exe
ProgramFiles: C:\Program Files
PUBLIC: C:\Users\Public
windir: C:\Windows
=::: ::
ZES_ENABLE_SYSMAN: 1
IGCCSVC_DB: AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAN2pIXP2AekyNmWo1P0xygAQAAAACAAAAAAAQZgAAAAEAACAAAACXghtBuG9j7QXUe6STXtDM9Zudlb/Q7F2W/nW7t6SHQAAAAAAOgAAAAAIAACAAAADzY+dY+ixRLw3SxHv/w/Q2yuHzbw1CKu/39yHd8gMmgmAAAACdtwOsHJkBwHSLf2f5oZH63bn65zf0CKeZqp+yaZhbHDKtPRq7SaC37PHtdxZFU70mmkk/jYc/9MJ5chKjEvXz6/QVisussF188p80CI2NpsupI2dbUNGjEHX9KQi9ToFAAAAAZkRiic4mDjfd/tpF51x9OPxPCOg9tZV0BLz8MVe6uMCSV99+BqSgUJSaRpRClQmaw7iHqfK3Fvbnjdl795wBAw==
LOCALAPPDATA: C:\Users\janos\AppData\Local
ChocolateyLastPathUpdate: 133445217075301068
GIT_PATH: C:/Espressif/tools/idf-git/2.44.0/cmd/git.exe
ADF_PATH: C:\Espressif\frameworks\esp-adf
USERDOMAIN: ZOLIPC
LOGONSERVER: \ZOLIPC
FPS_BROWSER_APP_PROFILE_STRING: Internet Explorer
IDF_TOOLS_PATH: C:\Espressif
REPS: c:\RtxTools\RtxEaiPortServer\RtxEaiPortServer.exe
OneDrive: C:\Users\janos\OneDrive
APPDATA: C:\Users\janos\AppData\Roaming
ALEXANDRIA_PORT_VIEWER: 3002
ChocolateyInstall: C:\ProgramData\chocolatey
RLM_LICENSE: C:\AutoDevKitStudio-2.1\licenses
CommonProgramFiles: C:\Program Files\Common Files
KRDIR: C:/Users/janos/abevjava/eKuldes
OS: Windows_NT
COMPUTERNAME: ZOLIPC
IDF_PATH: C:/Espressif/frameworks/esp-idf-v5.3/
JD2_HOME: C:\Program Files\JDownloader 2.0
PROCESSOR_REVISION: b701
CommonProgramW6432: C:\Program Files\Common Files
ComSpec: C:\Windows\system32\cmd.exe
STM32CubeMX_PATH: C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeMX
IDF_MAINTAINER: 1
TEMP: C:\Users\janos\AppData\Local\Temp
SystemRoot: C:\Windows
ALEXANDRIA_PORT_LOOKUP: 3001
HOMEDRIVE: C:
USERPROFILE: C:\Users\janos
TMP: C:\Users\janos\AppData\Local\Temp
QTOOLS: C:\qp\qtools
CommonProgramFiles(x86): C:\Program Files (x86)\Common Files
NUMBER_OF_PROCESSORS: 24
IDF_PYTHON_ENV_PATH: C:\Espressif\python_env\idf5.3_py3.11_env

Operating System: windows 10
Java Runtime Version: 17.0.11+9
Eclipse Version: 4.30.0.v20231201-0110
Eclipse CDT Version: 11.5.0.202312062348
IDF Eclipse Plugin Version: 3.0.0.202406051940
ESP-IDF v5.3-beta2
Python set for IDF_PYTHON_ENV: Python 3.11.2

@github-actions github-actions bot changed the title How to prevent the v3.0.0 editor automatically adding #include statements? How to prevent the v3.0.0 editor automatically adding #include statements? (IEP-1321) Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant