Ignition Compile Error

I'm not exactly sure how this happened but I started getting this compile error.

image

How do you resolve this?

Thanks,

The error is telling you that it expects line #5 to be indented, and it isn't. Show your actual code for more precise advice.

1 Like

If you copy-pasted code, the script editor is very bad about consistently handling indents. Something is off about its indent system. Find a row with a red squiggle under it, probably around line 5, and shift+tab the code back to the left margin and then tab it back to where it was. And then maybe do that on the lines above and below it until it seems happy.

3 Likes

It could also be that you've mixed tabs and spaces. Python gives you a smack if you do that

2 Likes

Thanks. I couldn't find where the script was located but I found it (in Scheduled) and there was a commented line that was indented and no script to define the function. I deleted the script. Thanks.