Skip to content

Latest commit

 

History

History
58 lines (41 loc) · 4.27 KB

CONTRIBUTING.md

File metadata and controls

58 lines (41 loc) · 4.27 KB

Contribution Guide (Developers)

Setting up an Eclipse Development Environment using IDF Target (Recommended approach)

  • Navigate to com.espressif.idf.target plugin
  • Click on com.espressif.idf.target.target file
  • Click on Set as Active Target Platform and wait for a couple of mins to download and configure your environment with the idf required plugins

Setting up an Eclipse Development Manually

Common errors during installation process

  • An API baseline has not been set for the current workspace.

image

Fix: Window -> Preferences -> Plug-in Development -> API Baselines -> Missing API Baseline -> Change to "Warning"

  • The type org.slf4j.Logger cannot be resolved. It is indirectly referenced from required type org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot

image

Fix: in "Project Explorer" -> com.espressif.idf.tests -> com.espressif.idf.ui.test -> META-INF -> doubleclick MANIFEST.MF -> Dependencies -> Add... -> Type "slf4j.api" -> Add&Save.

  • After importing project Eclipse might prompt a wizard to install Maven Plugin Connectors to resolve the idf-eclipse-plugins maven errors, make sure you install all of them. But, depending on the version(Eclipse / Extentions), an error may occur:

image

Fix: check the error and delete one of the extention (usually Tycho) - Help -> Install New Software -> Already Installed -> select "Tycho" -> Uninstall.

  • Run as -> SWTBot Test -> may lead to error:

image

Fix: Uninstall SWTBot -> Install latest snapshot(04.04.2023): http://download.eclipse.org/technology/swtbot/snapshots

How to contribute

  • Clone repo git clone https://github.com/espressif/idf-eclipse-plugin.git
  • Ensure you’ve installed Maven locally https://www.vogella.com/tutorials/ApacheMaven/article.html#maven_installation
  • Make changes locally on a specific local branch
  • Test with Maven Tycho using $ mvn clean verify -Djarsigner.skip=true
  • Submit a Pull Request(PR)
  • It is also recommended that you add or update a Functional Test if you are adding or updating a functionality in plugin. More details about adding SWTBot Funtional test can be found in the README.md in test folder in the repo.

Coding Standards and guidelines