rubberduck-vba / Rubberduck

Every programmer needs a rubberduck. COM add-in for the VBA & VB6 IDE (VBE).
https://rubberduckvba.com
GNU General Public License v3.0
1.91k stars 300 forks source link

Lines up public variables #3423

Closed Vitosh closed 6 years ago

Vitosh commented 7 years ago

Unfortunately, I do not remember what I was clicking around the tool, but initially I had some public variables in a module like this: Public Const STARTING_FROM_COLUMN = 6 'In table master, the first column to start writing is column F Public Const COLUMNS_NOT_TOUCHED = 5 'In the table master, the first 5 columns are not touched

After some time the public variables were on one line. It could have been, because some of the comments were with German specific letters like üöäss.

Sorry, that I cannot replicate it now. I was using the indenter, the error checker and pretty much anything around the tool. The error checker was telling me that I was declaring the STARTING_FROM_COLUMN as a Variant (which is true, it should not be a variant).

Cheers! 🌵 💯 👍

retailcoder commented 7 years ago

Thanks for reporting, ...but without a repro that one's going to be hard to fix. :wink:

Vitosh commented 7 years ago

I know. But I do not remember how exactly it happened.

retailcoder commented 7 years ago

Could it be related to #3422?

There is no Rubberduck code that intentionally takes two constants on two lines and puts them in a single statement.

Vitosh commented 7 years ago

@retailcoder - I dunno, probably. However, I think it was because the comments after the constants were in German. I can only guess. 🦆

Vogel612 commented 6 years ago

Closing as stale no-repro