Skip to content
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.

Incorrect "frameworks" value is specified in library.json which prevent to compile in platformio #6

Open
sergeymaysak opened this issue Jul 23, 2019 · 2 comments

Comments

@sergeymaysak
Copy link

version of library 1.0.2 which was supposed to fix this issue is still contains "frameworks": "ESP8266" which does not allow to use it with platformio.
If to change value to "arduino" to be "frameworks": "arduino", it fixes the issue and I'm able to compile again.
Please note - here is file .library.json is present as well which contain correct value pair but is it ignored by platformio plugin in vsCode.

Also there is convention to have name of library and master header to have the same name - including case (i.e log2Esp is not equal to Log2Esp), so it would be good to have update which would provide such convention conformance, in other case there are issues with finding this header by IDE.

Cheers and thanks for this great library :)

@sergeymaysak sergeymaysak changed the title Incorrect "frameworks" value is specified in library.json which present to compile in platformio Incorrect "frameworks" value is specified in library.json which prevent to compile in platformio Jul 23, 2019
@limitium
Copy link

limitium commented May 5, 2020

Still actual and confusing, however code in git is fine, platformio cached old version

@michaelschnyder
Copy link

I can confirm that this issue still exists, even though this git repository's library.json is correct. Actually there is a workaround by adding the library as a URL pointing to the GitHub repository

lib_deps = 
   log4Esp=https://github.com/hunsalz/log4Esp/archive/master.zip

See: https://docs.platformio.org/en/latest/librarymanager/quickstart.html#project-dependencies

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants