log4Esp icon indicating copy to clipboard operation
log4Esp copied to clipboard

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

Open sergeymaysak opened this issue 5 years ago • 2 comments

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 avatar Jul 23 '19 19:07 sergeymaysak

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

limitium avatar May 05 '20 19:05 limitium

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

michaelschnyder avatar May 10 '20 05:05 michaelschnyder