Coder Social home page Coder Social logo

Comments (3)

LarsMichelsen avatar LarsMichelsen commented on July 3, 2024

Strange. Trying to create a minimal repro lead me to this:

Super_Simple_RGB_WiFi_Lamp.ion

void setup() {
  a();
}

void loop() {
}

Config.ino

void a() {
}

Results in:

/home/lm/git/lm/brettl/Super-Simple-RGB-WiFi-Lamp/Super_Simple_RGB_WiFi_Lamp/Super_Simple_RGB_WiFi_Lamp.ino: In function 'void setup()':
Super_Simple_RGB_WiFi_Lamp:2:5: error: 'a' was not declared in this scope
   a();
     ^
exit status 1
'a' was not declared in this scope

It works once I add the forward declaration before the setup function:

void a();

Strange. Really seems the IDE fails to add those forward declarations.

from super-simple-rgb-wifi-lamp.

LarsMichelsen avatar LarsMichelsen commented on July 3, 2024

i have no idea if #13 is a good solution, for me it fixes the problem anyway

from super-simple-rgb-wifi-lamp.

thebigpotatoe avatar thebigpotatoe commented on July 3, 2024

Certainly interesting issues here.

I don't know if because you are using Linux but something may have changed and I haven't heard of this problem from anyone else yet. Although it does seem to be an IDE issue, the solution falls to who ever is writing the sketch. So this is a weird error to patch to say the least.

At this stage i'm not sure that I will just to keep the sketch looking simple to allow more beginner programmers to hopefully follow along. If you have managed to fix your issue in that pull, I will keep it open and potentially merge it in later if the problem persists.

Thanks for the feedback, much appreciated

from super-simple-rgb-wifi-lamp.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.