[240] Bad Live Template


BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello, given this template:

using System;
using System.Xml;
using O2.Core;

namespace $NAMESPACE$
{
public class $NAME$ : O2.Commands.Command<$NAME$.Parameters>
{
public enum Parameters
{
}

public
$NAME$(IModel model) : base(model)
{
}

protected override void
Execute(XmlWriter writer)
{
throw new NotImplementedException();
}
}
}

If 'Shorten qualified references' is checked the following (bad)
instantiation is created:

using System;
using System.Xml;
using O2.Commands;
using O2.Core;

namespace O2.Commands.Tasks
{
public class CreateCommand : Command<a.Parameters>
{
public enum Parameters
{
}

public
a(IModel model) : base(model)
{
}

protected override void
Execute(XmlWriter writer)
{
throw new NotImplementedException();
}
}
}

If I don't check and latter do an optimize usings, no problems are found.

Regards,
Pablo

PS: Sorry for not posting this to the tracker, but this is much more
easy for me to do.
-


BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)

iD8DBQFEWkMqvooSiBfQCSoRAud5AJ0Xk2LFjpYoYpHziKld0AioEYmQCgk4YZ
1Rrwll2gXBxI3LJZq/VuUoo=
=Bhy1
-


END PGP SIGNATURE-----

1 comment
Comment actions Permalink

Hello Pablo,

Please submit this a a bug to our issue tracker.

Oleg Stepanov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

---BEGIN PGP SIGNED MESSAGE---
Hash: SHA1

Hello, given this template:

using System;
using System.Xml;
using O2.Core;
namespace $NAMESPACE$
{
public class $NAME$ : O2.Commands.Command<$NAME$.Parameters>
{
public enum Parameters
{
}
public
$NAME$(IModel model) : base(model)
{
}
protected override void
Execute(XmlWriter writer)
{
throw new NotImplementedException();
}
}
}
If 'Shorten qualified references' is checked the following (bad)
instantiation is created:

using System;
using System.Xml;
using O2.Commands;
using O2.Core;
namespace O2.Commands.Tasks
{
public class CreateCommand : Command<a.Parameters>
{
public enum Parameters
{
}
public
a(IModel model) : base(model)
{
}
protected override void
Execute(XmlWriter writer)
{
throw new NotImplementedException();
}
}
}
If I don't check and latter do an optimize usings, no problems are
found.

Regards,
Pablo
PS: Sorry for not posting this to the tracker, but this is much more
easy for me to do.

---BEGIN PGP SIGNATURE---

>> Version: GnuPG v1.4.3 (MingW32)
>>
>> iD8DBQFEWkMqvooSiBfQCSoRAud5AJ0Xk2LFjpYoYpHziKld0AioEYmQCgk4YZ
>> 1Rrwll2gXBxI3LJZq/VuUoo=
>> =Bhy1

---END PGP SIGNATURE---



0

Please sign in to leave a comment.