diff --git a/HISTORY.rst b/HISTORY.rst index 57d0867c..cc8198db 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -14,6 +14,7 @@ PlatformIO 3.0 * Configure a custom firmware/program name in build directory (`example `__) * Renamed ``envs_dir`` option to ``build_dir`` in `Project Configuration File "platformio.ini" `__ +* Improved support of PIO Unified Debugger for Eclipse Oxygen * Fixed project generator for CLion IDE * Fixed PIO Unified Debugger for mbed framework diff --git a/platformio/builder/tools/piolib.py b/platformio/builder/tools/piolib.py index ecf47a25..a4bcd6ff 100644 --- a/platformio/builder/tools/piolib.py +++ b/platformio/builder/tools/piolib.py @@ -646,7 +646,9 @@ class ProjectAsLibBuilder(LibBuilderBase): def get_include_dirs(self): include_dirs = LibBuilderBase.get_include_dirs(self) - include_dirs.append(self.env.subst("$PROJECTINCLUDE_DIR")) + project_include_dir = self.env.subst("$PROJECTINCLUDE_DIR") + if isdir(project_include_dir): + include_dirs.append(project_include_dir) return include_dirs def get_search_files(self): diff --git a/platformio/ide/tpls/eclipse/.cproject.tpl b/platformio/ide/tpls/eclipse/.cproject.tpl index 3060a7bb..29b76ebc 100644 --- a/platformio/ide/tpls/eclipse/.cproject.tpl +++ b/platformio/ide/tpls/eclipse/.cproject.tpl @@ -5,13 +5,13 @@ + - @@ -99,6 +99,104 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/platformio/ide/tpls/eclipse/.settings/PlatformIO Debugger.launch.tpl b/platformio/ide/tpls/eclipse/.settings/PlatformIO Debugger.launch.tpl index e27a3061..501ce04b 100644 --- a/platformio/ide/tpls/eclipse/.settings/PlatformIO Debugger.launch.tpl +++ b/platformio/ide/tpls/eclipse/.settings/PlatformIO Debugger.launch.tpl @@ -2,7 +2,7 @@ - + @@ -12,17 +12,17 @@ - + - + - + diff --git a/platformio/ide/tpls/eclipse/.settings/language.settings.xml.tpl b/platformio/ide/tpls/eclipse/.settings/language.settings.xml.tpl index 53c9c72f..19740737 100644 --- a/platformio/ide/tpls/eclipse/.settings/language.settings.xml.tpl +++ b/platformio/ide/tpls/eclipse/.settings/language.settings.xml.tpl @@ -15,4 +15,19 @@ + + + + + + % if "windows" in systype: + + % else: + + % end + + + + + diff --git a/platformio/ide/tpls/eclipse/.settings/org.eclipse.cdt.core.prefs.tpl b/platformio/ide/tpls/eclipse/.settings/org.eclipse.cdt.core.prefs.tpl index 8cac7fbd..e87cf90b 100644 --- a/platformio/ide/tpls/eclipse/.settings/org.eclipse.cdt.core.prefs.tpl +++ b/platformio/ide/tpls/eclipse/.settings/org.eclipse.cdt.core.prefs.tpl @@ -3,4 +3,9 @@ environment/project/0.910961921/PATH/delimiter={{env_pathsep.replace(":", "\\:") environment/project/0.910961921/PATH/operation=replace environment/project/0.910961921/PATH/value={{env_path.replace(":", "\\:")}} environment/project/0.910961921/append=true -environment/project/0.910961921/appendContributed=true \ No newline at end of file +environment/project/0.910961921/appendContributed=true +environment/project/0.910961921.1363900502/PATH/delimiter={{env_pathsep.replace(":", "\\:")}} +environment/project/0.910961921.1363900502/PATH/operation=replace +environment/project/0.910961921.1363900502/PATH/value={{env_path.replace(":", "\\:")}} +environment/project/0.910961921.1363900502/append=true +environment/project/0.910961921.1363900502/appendContributed=true \ No newline at end of file diff --git a/platformio/util.py b/platformio/util.py index 183f2110..6b41949d 100644 --- a/platformio/util.py +++ b/platformio/util.py @@ -322,7 +322,7 @@ def get_projectbuild_dir(force=False): with open(dontmod_path, "w") as fp: fp.write(""" [InternetShortcut] -URL=http://docs.platformio.org/page/projectconf.html#build-dir +URL=http://docs.platformio.org/page/projectconf/section_platformio.html#build-dir """) except Exception as e: # pylint: disable=broad-except if not force: