BUG: UserCode.cs refactor missing { after namespace

Bug reports.
krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

BUG: UserCode.cs refactor missing { after namespace

Post by krstcs » Thu Aug 01, 2013 12:30 pm

If you drag a module to another folder (move it) inside the project, the Namespace is changed to reflect the move, but the UserCode file is missing the opening curly bracket "{" after the namespace declaration.

So, before the move:

Code: Select all

namespace MyTest.Core {
...
}
And after the move:

Code: Select all

namespace MyTest.NewFolder
...
}
Which obviously won't compile. :D

ETA: It doesn't seem to happen every time. I'm trying to figure out what is triggering it. I'll add more when I figure it out.
Shortcuts usually aren't...

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: BUG: UserCode.cs refactor missing { after namespace

Post by krstcs » Thu Aug 01, 2013 12:40 pm

OK, it seems that it only happens when the curly bracket is on the same line as the namespace dec.

So, if the namespace looks like this it works fine:

Code: Select all

namespace MyTest.Core
{
...
}

But not if it is on the same line like this:

Code: Select all

namespace MyTest.Core {
...
}
Shortcuts usually aren't...

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: BUG: UserCode.cs refactor missing { after namespace

Post by Support Team » Mon Aug 05, 2013 2:09 pm

Hello,

Thank you for reporting this bug.
I will add it to our internal bug tracking system in order to provide a fix in a future release.

Regards,
Markus (T)
.
Image