Shop OBEX P1 Docs P2 Docs Learn Events
Tab expanded file too long compile error — Parallax Forums

Tab expanded file too long compile error

Chicago MikeChicago Mike Posts: 88
edited 2009-11-12 02:10 in General Discussion
Can someone explain what a 'Tab expanded file too long' compile warning means.

Snipit·lines below . It says that the Program Setup_Time is the offending line.... It is a warning, not error in SX/B. I'm using the latest version of Beans SX/B beta.

dec2bcd··FUNC·1,1
Program Setup_Time
' Run once to Setup the clock on power up and determine the battery condition.
Setup_Time:

Post Edited (Chicago Mike) : 10/31/2009 12:26:20 AM GMT

Comments

  • PJMontyPJMonty Posts: 983
    edited 2009-11-03 02:16
    Chicago Mike,

    The actual error is Tab expanded list file line too long - truncating.

    SASM converts tabs into spaces while making the list file. It has a fixed length buffer that it uses to work on each line that will appear in the list file. You have a situation where there are a lot of tabs and when they are converted to spaces, the result is too long to fit in the buffer. To prevent a crash, SASM truncates the line in the list file.

    Before you say that you don't have that many tabs in your source code line, remember that tabs are "invisible" if they appear at the end of a line.

    Thanks,
    PeterM
  • Chicago MikeChicago Mike Posts: 88
    edited 2009-11-04 23:40
    Fantastic. Thanks for the info. So it still seems to compile and install, however I have a standing issue I still haven't solved.

    I guess my question is, can I let this go? Or should I sort through and find this? What bad things can happen if I leave this?
  • PJMontyPJMonty Posts: 983
    edited 2009-11-12 02:10
    Chicago Mike,

    It's a warning, not an error, so it shouldn't cause problems. However, if you could post a zip file with the source file, I'd like to take a look and see the problem in action. Cutting and pasting the code might cause subtle changes that would prevent the error from occurring, so a ZIP file would be best.

    Thanks,
    PeterM
Sign In or Register to comment.