Skip to content

Doesn't see functions from other .ino files  #1344

@zaid894

Description

@zaid894

Describe the problem

The Functions inside Ino files aren't find when called form the main sketch,

To reproduce

  1. open a new file tab
  2. write a function
    int sum (int a , int b ){
      return a+ b ;
    }
  3. try to call it from the main sketch with Serial.println(sum(2,3));

you will get "was not declared in this scope" error

Expected behavior

to compile

Arduino IDE version

2.0.0 RC 9.2

Operating system

Windows

Operating system version

11

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions