{"action":"closed","issue":{"url":"https://api.github.com/repos/jantje/arduino-eclipse-plugin/issues/296","labels_url":"https://api.github.com/repos/jantje/arduino-eclipse-plugin/issues/296/labels{/name}","comments_url":"https://api.github.com/repos/jantje/arduino-eclipse-plugin/issues/296/comments","events_url":"https://api.github.com/repos/jantje/arduino-eclipse-plugin/issues/296/events","html_url":"https://github.com/jantje/arduino-eclipse-plugin/issues/296","id":99845031,"number":296,"title":"Generated .ino.cpp breaks ESP8266 includes","user":{"login":"nkolban","id":3421732,"avatar_url":"https://avatars.githubusercontent.com/u/3421732?v=3","gravatar_id":"","url":"https://api.github.com/users/nkolban","html_url":"https://github.com/nkolban","followers_url":"https://api.github.com/users/nkolban/followers","following_url":"https://api.github.com/users/nkolban/following{/other_user}","gists_url":"https://api.github.com/users/nkolban/gists{/gist_id}","starred_url":"https://api.github.com/users/nkolban/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkolban/subscriptions","organizations_url":"https://api.github.com/users/nkolban/orgs","repos_url":"https://api.github.com/users/nkolban/repos","events_url":"https://api.github.com/users/nkolban/events{/privacy}","received_events_url":"https://api.github.com/users/nkolban/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-08T23:46:24Z","updated_at":"2015-08-09T15:27:47Z","closed_at":"2015-08-09T15:27:47Z","body":"I am hunting a problem.  I am finding that if I create a sketch for the ESP8266 Arduino environment then the following is actually compiled:\r\n\r\n    //This is a automatic generated file\r\n    //Please do not modify this file\r\n    //If you touch this file your change will be overwritten during the next build\r\n    //This file has been generated on 2015-08-08 18:33:35\r\n    \r\n    #include \"Arduino.h\"\r\n    #include <Arduino.h>\r\n    #include \"Arduino.h\"\r\n    #include \"user_interface.h\"\r\n    void setup() ;\r\n    void loop() ;\r\n    \r\n    \r\n    #include \"main.ino\"\r\n\r\nThe detailed issue is the line which includes the header called \"user_interface.h\".  In ESP programming, this has to be included in C++ as\r\n\r\n    extern \"C\"\r\n\r\nI am not sure which component is responsible for this injection nor how to change it.  Can we look into this to see whether it is the Eclipse Arduino project including it incorrectly or if it is the Arduino ESP generating badly?"}}