|
1 | | -FAQs |
2 | | -=============================== |
| 1 | +FAQ |
| 2 | +==== |
| 3 | + |
| 4 | +How do I know the installed version of Java in my system? |
| 5 | +---------------------------------------------------------- |
| 6 | +You can check using `java -version` command from the terminal. |
| 7 | + |
| 8 | +How to check the Java version used by Eclipse? |
| 9 | +---------------------------------------------- |
| 10 | +- `Help > About Eclipse > Installation Details > Configuration` |
| 11 | +- Look for `-vm` argument. |
| 12 | + |
| 13 | +How to increase the heap memory for Java while working Eclipse IDE? |
| 14 | +-------------------------------------------------------------------- |
| 15 | +- Locate the eclipse.ini or espressif-ide.ini |
| 16 | +- Increase the Xmx value under the `-vmargs` args section. For example, you can set to `-Xmx2048m`. |
| 17 | + |
| 18 | +What are the operating systems the plugin supports? |
| 19 | +---------------------------------------------------- |
| 20 | +- Windows |
| 21 | +- macOSX |
| 22 | +- Linux |
| 23 | + |
| 24 | +How do I provide Eclipse environment and plugins information? |
| 25 | +------------------------------------------------------------- |
| 26 | +`Help > About Eclipse > Installation Details > Configuration > Copy to Clipboard` |
| 27 | + |
| 28 | +How do I know the installed IDF Eclipse Plugins version? |
| 29 | +--------------------------------------------------------- |
| 30 | +- You can check using the menu `Eclipse > About Eclipse > Installation Details > Installed Software` |
| 31 | +- Search for `Espressif`. |
| 32 | + |
| 33 | +How do I uninstall IDF Eclipse Plugins from the Eclipse? |
| 34 | +--------------------------------------------------------- |
| 35 | +- `Eclipse > About Eclipse > Installation Details > Installed Software` |
| 36 | +- Search for `Espressif`. |
| 37 | +- Select the Espressif IDF Feature |
| 38 | +- `Uninstall..`. |
| 39 | + |
| 40 | +Unable to install IDF plugins in Eclipse? |
| 41 | +----------------------------------------- |
| 42 | +Please check the error log from the main menu, select `Window > Show View > Other`. Then select `General > Error Log`. |
| 43 | + |
| 44 | +Espressif Menu options and Espressif IDF Project menu are not visible in my Eclipse CDT |
| 45 | +--------------------------------------------------------------------------------------- |
| 46 | +- Make sure you have installed Java 8 and above and Eclipse in the C/C++ perspective. |
| 47 | +- Reset the perspective using `Window > Perspective > Reset Perspective..`. |
| 48 | + |
| 49 | +Do IDF Eclipse Plugins support CMake IDF project creation? |
| 50 | +---------------------------------------------------------- |
| 51 | +Yes, you can create IDF CMake project using `File > New > Espressif IDF Project`. |
| 52 | + |
| 53 | +Can I import my existing IDF project into Eclipse? |
| 54 | +--------------------------------------------------- |
| 55 | +Yes, you can import using Import Menu. `Import... > Espressif > Existing IDF Project`. |
| 56 | + |
| 57 | +Where can I find the IDF installed tools in my system? |
| 58 | +------------------------------------------------------ |
| 59 | +Default directory is `$HOME/.espressif` for Linux/MacOS users or `%USER_PROFILE%.espressif` for Windows users. |
| 60 | + |
| 61 | +Why am I getting timeout errors when Installing tools? |
| 62 | +------------------------------------------------------ |
| 63 | +If you are getting errors when downloading or installing tools this can be due to some issue with the mirrors. You can try to set the mirrors in Eclipse `Preferences > Espressif` you will see two settings for Git and Pip Py Wheels please set these to proper mirror according to your region. Currently, these two mirrors are available. |
| 64 | + |
| 65 | +### Mirror for GIT (IDF_GITHUB_ASSETS) |
| 66 | +- dl.espressif.com/github_assets (default) |
| 67 | +- dl.espressif.cn/github_assets |
| 68 | + |
| 69 | +### Mirror for python wheels (PIP_EXTRA_INDEX_URL) |
| 70 | +- https://dl.espressif.com/pypi (default) |
| 71 | +- https://dl.espressif.cn/pypi |
| 72 | + |
| 73 | +Deleted C/C++ build environment variables still appearing? |
| 74 | +---------------------------------------------------------- |
| 75 | +- You need to uncheck the preference recorder. This can be performed by following. Eclipse `Preferences > Oomph > Setup Tasks > Preference Recorder`. |
| 76 | +- Uncheck `Record into`. |
| 77 | + |
| 78 | +How can I rollback to old ESP-IDF Eclipse plugin? |
| 79 | +------------------------------------------------- |
| 80 | +- Open Eclipse IDE and Uninstall the esp-idf plugin. |
| 81 | +- Restart Eclipse IDE. |
| 82 | +- Download the previous version of the ESP Eclipse Plugin using this `link`_. |
| 83 | +- Go to `Help > Install New Software`. |
| 84 | +- Press the `Add` button, a window will open with the name of `Add Repository`. |
| 85 | +- Press the `Archive` button and select the file downloaded. |
| 86 | +- Proceed with the installation. |
| 87 | +- Restart Eclipse. |
| 88 | + |
| 89 | +Where can I find Compiler_commands.json file for the project? |
| 90 | +-------------------------------------------------------------- |
| 91 | +`/projectName/build/compile_commands.json` |
| 92 | + |
| 93 | +compile_commands.json containing the exact compiler calls for all translation units of the project in machine-readable form which is used by the Eclipse CDT indexing for parsing and resolving headers. |
| 94 | + |
| 95 | +How do I access CDT Parser error log? |
| 96 | +-------------------------------------- |
| 97 | +Please follow this menu. `Project > C/C++ Index > Create Parser Log`. |
| 98 | + |
| 99 | +How do I access the error log? |
| 100 | +------------------------------ |
| 101 | +To view the Eclipse error log: From the main menu, select `Window > Show View > Other`. Then select `General > Error Log`. |
| 102 | + |
| 103 | +How do I report a deadlock or Eclipse hang? |
| 104 | +------------------------------------------- |
| 105 | +You can find the detailed instructions here: https://wiki.eclipse.org/How_to_report_a_deadlock. |
| 106 | +- On the command line, use `jps -v` to find the PIDs of Java processes and `jstack <pid>` to show the stack trace of Java processes. |
| 107 | + |
| 108 | +Here 32308 and 8824 are PIDs of Java processes. 8824 is jps itself and is of no interest for us. 32308 is an Eclipse process judging from the presence of `org.eclipse.equinox.launcher` in its command line. The `jstack` command saves the stack trace of the Eclipse process in a file `/tmp/jstack.txt`, attach the file to the bug report. |
| 109 | + |
| 110 | +`sun.security.validator.ValidatorException: PKIX path building failed:` error |
| 111 | +------------------------------------------------------------------------------ |
| 112 | +This would have been caused by the Java version or Java certificates. Please make sure you've installed `Java 11 and later` to fix this error. |
| 113 | +Check below links: |
| 114 | +- https://esp32.com/viewtopic.php?f=13&t=12327&start=10#p50137 |
| 115 | +- https://stackoverflow.com/questions/6908948/java-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find |
| 116 | + |
| 117 | +Why Java 11 recommended for IDF Eclipse Plugin? |
| 118 | +----------------------------------------------- |
| 119 | +We recommend using Java 11 (that's the latest LTS version from Oracle) and above while working with IDF Eclipse Plugin considering Eclipse 2020-06 has a requirement for Java 11 to work with the CDT. Here are some important pointers from Eclipse. |
| 120 | + |
| 121 | +### Installing CDT 9.11 on Eclipse 2020-06 and later requires a workaround when using Java 8 |
| 122 | +Check this - https://wiki.eclipse.org/CDT/User/NewIn911#Release |
| 123 | + |
| 124 | +CDT 9.11 only requires Java 8 to run. However, a new feature in Eclipse 2020-06 and later means that the install wizard may prevent installation. The workaround is to disable "Verify provisioning operation is compatible with the currently running JRE" in Windows -> Preferences -> Install/Update. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=564407#c1. |
| 125 | + |
| 126 | +### CDT 10.0 required Java 11 or later |
| 127 | +Check this - https://wiki.eclipse.org/CDT/User/NewIn100 |
| 128 | + |
| 129 | +Starting with CDT 10.0, Java 11 or later is required to run CDT. This aligns with the requirements of Eclipse IDE which also requires Java 11 to run starting in 2020-09. |
| 130 | + |
| 131 | +How to delete Launch Targets from the Eclipse |
| 132 | +--------------------------------------------- |
| 133 | +There is no UI option to delete launch targets directly from Eclipse, however, this can be achieved by following the below instructions: |
| 134 | +- Go to the Eclipse workspace directory. For example: In my case `/Users/myName/myTesteclipseWorkspace`. |
| 135 | +- Navigate to `.metadata/.plugins/org.eclipse.core.runtime/.settings` folder in the workspace directory. |
| 136 | +- Look for `org.eclipse.launchbar.core.prefs` file and open it in the editor. |
| 137 | +- Search for the launch target name you want to delete and remove all those entries from the file. |
| 138 | +- Save the file. |
| 139 | +- Restart Eclipse. |
| 140 | + |
| 141 | +How do I access project build log? |
| 142 | +----------------------------------- |
| 143 | +- To enable logging, navigate to `Preferences > Project > C/C++ > Build > Logging`. |
| 144 | +- Check `Enable global build logging`. |
| 145 | +- Build the project. |
| 146 | +- Export `global-build.log`. This is the same build console log which appears in the CDT build console, but the build console usually has a limited buffer size, hence it won't display everything. |
| 147 | + |
| 148 | +How do I enable verbose debug output to my project build? |
| 149 | +---------------------------------------------------------- |
| 150 | +IDF Eclipse plugin uses CMake commands to build the project, so it's possible to pass CMake arguments from the build configuration wizard. To configure this: |
| 151 | +- Click on the editor configuration wizard. |
| 152 | +- Navigate to `Build Settings` tab. |
| 153 | +- Add `--debug-output` or other |
0 commit comments