Jump to content
Sign in to follow this  
Dieuz

Tidy error!

Recommended Posts

Dieuz

I have a very big array in my script and when I try to launch tidy (Ctrl+T), I get this error message:

!> File contains records longer than 2047 .. stopping process.

I know that the problem came from my array because if I delete it, I can run Tidy correctly.

My array is [29][2] so it's alot of words on the same line. Is that possible to correct this tidy error while making my array on multiple lines?

My array goes like this:

Global $avBmpAssoc[29][2] = [[0, 0],[ "A", "1001"], ["B", "1002"], ["C","1003"], ["D", "1004"] ; .....
Edited by Dieuz

Share this post


Link to post
Share on other sites
xcal

Ya, did some more testing (I'm bored, ok?). If there's a character in the 2047th column, Tidy works fine. If there's a character in the 2048th column, Tidy works without throwing an error, BUT, it adds a space and the letter 'ÿ' at the end (like this ' ÿ')?! If there's anything in the 2049th column, Tidy chokes and throws the original error.

Share this post


Link to post
Share on other sites
Jos

I have a very big array in my script and when I try to launch tidy (Ctrl+T), I get this error message:

!> File contains records longer than 2047 .. stopping process.

I know that the problem came from my array because if I delete it, I can run Tidy correctly.

My array is [29][2] so it's alot of words on the same line. Is that possible to correct this tidy error while making my array on multiple lines?

My array goes like this:

Global $avBmpAssoc[29][2] = [[0, 0],[ "A", "1001"], ["B", "1002"], ["C","1003"], ["D", "1004"] ; .....
This is the max line length of a single record that Tidy will handle at this moment.

For some reason I never expected anybody to create a longer line than that because it will become unreadable..

Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Dieuz

So what exactly can I do? And your right it's almost unreadabale but it's the only way I could do my array!

Edited by Dieuz

Share this post


Link to post
Share on other sites
Jos

So what exactly can I do? And your right it's almost unreadabale but it's the only way I could do my array!

Split the line up like this ?

Global $avBmpAssoc[29][2] = [[0, 0], [ "A", "1001"], ["B", "1002"], _
        ["C", "1003"], ["D", "1004"]]

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Dieuz

Split the line up like this ?

Global $avBmpAssoc[29][2] = [[0, 0], [ "A", "1001"], ["B", "1002"], _
        ["C", "1003"], ["D", "1004"]]
Thanks alot ! It work fine :shocked:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.