mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Fix fetching of IDE data from build process
This commit is contained in:
@ -50,10 +50,10 @@ class ProjectGenerator(object):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
output = result['out']
|
output = result['out']
|
||||||
start_index = output.index('---\n{"includes":')
|
|
||||||
stop_index = output.index('}\n===')
|
|
||||||
try:
|
try:
|
||||||
return json.loads(output[start_index+4:stop_index+1])
|
start_index = output.index('\n{"includes":')
|
||||||
|
stop_index = output.rindex('}\n')
|
||||||
|
return json.loads(output[start_index + 1:stop_index + 1])
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user