Resolution for error

As I verify the code in Arduino IDE, an error appears stating "Can't open sketch: main file missing from sketch: S:\My Drive\CANSAT\sketch_aug9a\sketch_aug9a\sketch_aug9a.ino".
How to check the main file and resolve it?

Can anybody help me in resolving the error?

More context here

The space in My Drive might play tricks on you. Any way you could change that to an underscore?

1 Like

The easiest way is to move the sketch to the local drive rather than My Drive

what did you try?

How many times do you need to be told NOT to post pictures?

I'm out

why?

I don't know why it doesn't sink into your skull.

Maybe something to do with its density.

please, please never ever again post pictures of text... Not only they are not readable nor usable directly for copy&paste but they use up lots of storage and internet bandwidth which contributes to polluting the planet.

➜ do your part and do yourself a favour and please read How to get the best out of this forum and modify your post accordingly (including code tags and necessary documentation for your ask).


if your main sketch file is named abcd.ino it should be in a directory called abcd

Take a look at the Arduino Sketch Specification, in particular what it says about the name of the primary sketch file.

Okay, I'll copy it here:

Every sketch must contain a .ino file with a file name matching the sketch root folder name.

You have mini_satellite_logger.ino in a folder called ...\sketch_aug10a.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.