Surround With in VS 2012 is very buggy

Post general DPack questions or problem reports here.

Moderator: Sergey

Surround With in VS 2012 is very buggy

Postby imparente » October 12th, 2012, 12:22 pm

I have installed DPack 3.5.1 (beta 4) in my Visual Studio 2012 Ultimate.
Feature Surround with doesn't seem to work correctly.
I have my custom mapping and I use c#. Only feature from DPack I use is "Surround with". Other features are turned off. During installation I choose not to make any changes to keyboard scheme ...

Bug #1:
When I select text and press Ctrl+K,R (surround with #region block) it just notifies
"The key combination of (Ctrl+K, R) is bound to command (Region) which is not currently available." and nothing happens.
This issue was in VS 2010 too, but I used to select Surround With > Region from Context menu for the first time and since then it was working. But now there is no Option Surround with > Region in my Context menu (just try..catch, try..finally, foreach|while, If, switch).
The same thing happens to other mapped key combinations. Until I use them from the context menu, mapped key combinations don't work.

Bug #2:
Context menu shows wrong key mapping. My key mapping is:
if ... Ctrl+K,I
ifelse ... Ctrl+K,L
foreach ... Ctrl+K,E
for ... Ctrl+K,F
region ... Ctrl+K,R
while ... Ctrl+K,W
switch ... Ctrl+K,S
etc.
But the context menu shows different shortcuts (see attached screenshot)

Bug #3:
when I select Surround with > If from the context menu
then it surrounds my selection with Visual Basic syntax instead of c# syntax
Attachments
dpack-surroundwith-bug-vs2012.png
Screenshot from my VS 2012
dpack-surroundwith-bug-vs2012.png (102.9 KiB) Viewed 10506 times
imparente
Starting Member
 
Posts: 1
Joined: September 24th, 2012, 3:24 am

Re: Surround With in VS 2012 is very buggy

Postby Sergey » October 14th, 2012, 11:39 pm

Hi,

Thanks for bringing it up. I've noticed some oddities similar to the ones you had reported while using VS 2010 as well. I do get a subset of all menu items for sure, item #2 on your report. I suspect it got broken while I was working on VS 2012 support.

Will look into that for the next beta. Thanks for your but report.
Sergey @ USysWare
User avatar
Sergey
Moderator
 
Posts: 590
Joined: May 27th, 2005, 3:56 pm
Location: Alexandria, VA

Re: Surround With in VS 2012 is very buggy

Postby Sergey » October 15th, 2012, 10:31 pm

Fixed for the next beta. It was totally borked in the latest version. Thanks again.
Sergey @ USysWare
User avatar
Sergey
Moderator
 
Posts: 590
Joined: May 27th, 2005, 3:56 pm
Location: Alexandria, VA

Re: Surround With in VS 2012 is very buggy

Postby samith » December 27th, 2013, 12:47 am

This issue was in VS 2010 too, but I used to select Surround With > Region from Context menu for the first time and since then it was working. But now there is no Option Surround with > Region in my Context menu (just try..catch, try..finally, foreach|while, If, switch).

_______________________
braindumps.com
https://www.iseb.co.uk/
http://ucsd.edu/
http://en.wikipedia.org/wiki/ISEB_(disambiguation)
Last edited by samith on August 11th, 2014, 1:33 pm, edited 3 times in total.
samith
Starting Member
 
Posts: 1
Joined: December 26th, 2013, 2:32 am

Re: Surround With in VS 2012 is very buggy

Postby Sergey » December 28th, 2013, 9:01 pm

Hi,

samith wrote:But now there is no Option Surround with > Region in my Context menu (just try..catch, try..finally, foreach|while, If, switch).


Which version of DPack are you seeing that with (Help|About)? Also, which Visual Studio version is that for?

Thanks for reporting the problem.
Sergey @ USysWare
User avatar
Sergey
Moderator
 
Posts: 590
Joined: May 27th, 2005, 3:56 pm
Location: Alexandria, VA


Return to DPack Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron