Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 1812 smart indents
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

peck797
Tomato Guru

United Kingdom
171 Posts

Posted - Feb 12 2010 :  11:17:59 AM  Show Profile  Reply with Quote
It's a little bit vague and I have not found a reliable way to reproduce it, yet, but I have just upgraded to build 1812 and the IDE seems to want to forget to use smart indents all of a sudden.

IOW, the caret will suddenly and without any apparent cause decide to move to the very start of the next line after I hit enter, rather than under the first non-whitespace character from the previous line as I would expect.

peck797
Tomato Guru

United Kingdom
171 Posts

Posted - Feb 12 2010 :  11:21:31 AM  Show Profile  Reply with Quote
I forgot to mention that restarting the IDE seems to make it revert to the normal behaviour 100% of the time and it will then continue to indent properly "for a while" before the bug shows up again.

This is VS2008 C#, if that's at all relevant
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19015 Posts

Posted - Feb 15 2010 :  09:12:00 AM  Show Profile  Reply with Quote
When this problem shows up can you try disabling VA using the menu item:

VAssistX -> Enable/Disable Visual Assist X

does this make any difference to the problem or not?

zen is the art of being at one with the two'ness
Go to Top of Page

SvenC
Tomato Guru

Germany
339 Posts

Posted - Feb 23 2010 :  05:06:05 AM  Show Profile  Reply with Quote
Same issue here with VS2008 SP1 and C#.
Did not occur with 1738 but started to happen sometimes after I upgraded to 1812.

When the IDE does not indent anymore disabling/enabling VAX does not make a difference, only restarting the IDE helps.
Go to Top of Page

Dany
Senior Member

Germany
41 Posts

Posted - Feb 24 2010 :  01:10:36 AM  Show Profile  Reply with Quote
Exactly the same here with C# in VS2005 SP1 on XP SP3.

I reverted to 1810 and it has been gone for good (I left it there).

Edit: I thought 1812 is still beta not a general release?

Dany

// using VAX in C# of VS2010 SP1 (en), Win 7 SP1 (de)

Edited by - Dany on Feb 24 2010 01:12:54 AM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19015 Posts

Posted - Feb 24 2010 :  09:28:52 AM  Show Profile  Reply with Quote
Very strange.

SvenC, next time this problem shows up can you please change the indenting of a few lines of code, make sure they are not indented at all for example, then select them and trigger the IDE command:

IDE Edit menu -> Advanced -> Format Selection

Which is CTRK-K, CTRL-F on my system.

Does this do anything? I am wondering if the IDE still realises how to format / indent code.

I am wondering if this could somehow be file or position in file specific. If so then a restart may not actually fix it, if you start writing code somewhere else.

zen is the art of being at one with the two'ness
Go to Top of Page

SvenC
Tomato Guru

Germany
339 Posts

Posted - Feb 24 2010 :  11:48:54 AM  Show Profile  Reply with Quote
Hi feline,

"Format Selection" does not update the indent, but completing the current expression, e.g. entering the ';' at the end of the line or entering a closing '}'. But the next <return> puts me back to the first column again.

In addition: when this non-indenting behaviour starts the intellisense comboboxes for members do not appear when typing '.'. The combobox does open when I force it with <ctrl>+<space>.

I have the feeling that things go wrong while the code is in an incorrect state while typing. So e.g. closing braces are or parantheses are missing. But completing the code so that it gets compilable again does not help.

Regards,
SvenC

Edited by - SvenC on Feb 24 2010 11:59:09 AM
Go to Top of Page

SvenC
Tomato Guru

Germany
339 Posts

Posted - Feb 24 2010 :  1:41:42 PM  Show Profile  Reply with Quote
Another hint: completing an expression with ';' or entering a closing '}' does only update the indent if the code in the current method is valid.

I just edited some code where a method call some lines below was incomplete. Something like "o.CallMe(". Typing ; in the current line while auto indenting went to "off mode" didn't help anymore. Completing the method call to o.CallMe("hello"); and then typing ; in the non indented line did give me the correct indent again. Again: only for that line or block of code. The next <return> brings me back to column 1. Only Close/Open Solution or restarting VS brings auto indent back.
Go to Top of Page

SvenC
Tomato Guru

Germany
339 Posts

Posted - Feb 26 2010 :  02:30:35 AM  Show Profile  Reply with Quote
Could not stand reloading the current project any more and went back to 1810.

If you have questions regarding behavior of 1812 I can reinstall it and use it for a day or so

Edited by - SvenC on Feb 26 2010 5:33:04 PM
Go to Top of Page

znakeeye
Tomato Guru

379 Posts

Posted - Mar 03 2010 :  03:20:53 AM  Show Profile  Reply with Quote
Exactly the same problem here, using 1812 with VS 2008 SP1 and C#.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19015 Posts

Posted - Mar 03 2010 :  6:57:41 PM  Show Profile  Reply with Quote
This does not make any sense. VA does not get involved in code formatting, it sounds like something is pushing the IDE into a bad state, but what?

Can you both please try VA 1814, which has just been posted, and see if this makes any difference:

http://www.wholetomato.com/downloads/default.asp

zen is the art of being at one with the two'ness
Go to Top of Page

SvenC
Tomato Guru

Germany
339 Posts

Posted - Mar 04 2010 :  02:37:45 AM  Show Profile  Reply with Quote
Just installed 1814 and see what happens today.
Go to Top of Page

SvenC
Tomato Guru

Germany
339 Posts

Posted - Mar 07 2010 :  12:22:52 PM  Show Profile  Reply with Quote
1814 fixed my indent problems. Thanks
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19015 Posts

Posted - Mar 08 2010 :  12:05:50 PM  Show Profile  Reply with Quote
I am glad this is fixed for you. I still have no idea what caused the problem, so let us hope it stays fixed

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000