Fix parsing of includes for PlatformIO Library Dependency Finder // Resolve #189

This commit is contained in:
Ivan Kravets
2015-05-05 12:36:09 +01:00
parent 5a162b6341
commit 440a2b9bc8
3 changed files with 16 additions and 7 deletions

View File

@ -1,6 +1,20 @@
Release History
===============
1.5.0 (2015-05-??)
------------------
* Created `PlatformIO gitter.im <https://gitter.im/platformio/platformio>`_
room
(`issue #174 <https://github.com/platformio/platformio/issues/174>`_)
* Added GDB as alternative uploader to `ststm32 <http://docs.platformio.org/en/latest/platforms/ststm32.html>`__ platform
(`issue #175 <https://github.com/platformio/platformio/issues/174>`_)
* Added `examples <https://github.com/platformio/platformio/tree/develop/examples>`__
with preconfigured IDE projects
(`issue #154 <https://github.com/platformio/platformio/issues/154>`_)
* Fixed parsing of includes for PlatformIO Library Dependency Finder
(`issue #189 <https://github.com/platformio/platformio/issues/189>`_)
1.4.0 (2015-04-11)
------------------

View File

@ -1,7 +1,7 @@
# Copyright (C) Ivan Kravets <me@ikravets.com>
# See LICENSE for details.
VERSION = (1, 4, 0)
VERSION = (1, 5, "0.dev0")
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio"

View File

@ -220,15 +220,10 @@ def BuildDependentLibraries(env, src_dir): # pylint: disable=R0914
return state
def _parse_includes(state, node):
if node.path in state['paths']:
return state
else:
state['paths'].add(node.path)
skip_includes = ("arduino.h", "energia.h")
matches = INCLUDES_RE.findall(node.get_text_contents())
for (inc_type, inc_name) in matches:
base_dir = dirname(node.path)
base_dir = dirname(node.get_abspath())
if inc_name.lower() in skip_includes:
continue
if join(base_dir, inc_name) in state['paths']: