Resharper won't suggest NotImplementedException after throw new

When typing throw new and the Resharper dialog opens suggesting various exceptions to throw, NotImplementedException for some reason is not included in that list and requires me to manually type it out fully.

9 comments

Yes, I see the same. Pretty irritating since I'm sure v5 used to do this correctly.

Workaround:  Type throw new NotImp and then press Ctrl+Space (and wait a moment). It's better than nothing...

0

Hello Chris,

I wasn't able to reproduce this behavior. Do I understand correctly that
if you type in 'new NotImplmentedException()' manually, ReSharper doesn't
show 'NotImplementedException' in red?

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

When typing throw new and the Resharper dialog opens suggesting
various exceptions to throw, NotImplementedException for some reason
is not included in that list and requires me to manually type it out
fully.

---
Original message URL:
http://devnet.jetbrains.net/message/5311941#5311941



0

I had this problem as well and if I remember correctly I think deleting the
ReSharper cache fixed it.

"Duncan Kimpton"  wrote in message
news:28726531.398741311573527510.JavaMail.devnet@confluence.jetbrains.net...

Yes, I see the same. Pretty irritating since I'm sure v5 used to do this
correctly.

Workaround:  Type throw new NotImp and then press Ctrl+Space (and wait a
moment). It's better than nothing...

---
Original message URL: http://devnet.jetbrains.net/message/5312268#5312268

0

I have a similar problem in a couple of large-ish solutions, where ArgumentException and ArgumentNullException aren't in the smart completion list. I'm used to typing "thr<TAB>ANE<TAB>" and getting "throw new ArgumentNullException(|)", but in this project, I get "throw new ANE<TAB>|" instead. Typing "thr<TAB>A<CTRL+SPACE>NE" works as expected, but isn't as convenient.

Another related issue I reported a couple of days ago - in some large-ish solutions, typing "IList<T> list = new " won't suggest List<T>.

Clearing the caches from with R# doesn't resolve the problem, and neither does closing VS2010 and deleting the "_ReSharper.Solution" directory.

I think there are some serious problems with smart completion in R# 6. :(

0

Hello Richard,

I've tried reproducing this behavior on large solutions but with no success.
If you have a solution that exhibits this issue, could you please strip it
down (remove files and projects while keeping this behavior reproducible)
and send the stripped down version to andrew dot serebryansky at jetbrains
dot com? Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I have a similar problem in a couple of large-ish solutions, where
ArgumentException and ArgumentNullException aren't in the smart
completion list. I'm used to typing "thr<TAB>ANE<TAB>" and getting
"throw new ArgumentNullException(|)", but in this project, I get
"throw new ANE<TAB>|" instead. Typing "thr<TAB>A<CTRL+SPACE>NE" works
as expected, but isn't as convenient.

Another related issue I /thread/308042 - in some large-ish solutions,
typing "IList<T> list = new " won't suggest List<T>.

Clearing the caches from with R# doesn't resolve the problem, and
neither does closing VS2010 and deleting the "_ReSharper.Solution"
directory.

I think there are some serious problems with smart completion in R# 6.


---
Original message URL:
http://devnet.jetbrains.net/message/5312617#5312617



0

OK, I've managed to reproduce both the "ArgumentNullException" and the "List<T>" problems on a stripped-down version of my solution, running on a clean PC with no other extensions or add-ins installed.

A 4Mb zip file   is on its way to you!

0

Hello Richard,

Thank you, I've received the sample. However, I could't reproduce this behavior
with the sample either. Could you please attach a screenshot of the code
completion list with available options after typing 'throw new Arg' and 'IList
list = new ' from your example?

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

OK, I've managed to reproduce both the "ArgumentNullException" and the
"List<T>" problems on a stripped-down version of my solution, running
on a clean PC with no other extensions or add-ins installed.

A 4Mb zip file   is on its way to you!

---
Original message URL:
http://devnet.jetbrains.net/message/5313119#5313119



0

OK, screen-shots below:
NewArg.png
NewList.png

Both screen-shots are from a clean PC, with no other add-ins or extensions installed, and all the default settings for VS2010 and R# 6.

0

Hello Richard,

I've logged a bug-report: http://youtrack.jetbrains.net/issue/RSRP-274608
and our devs will continue looking into this problem. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

OK, screen-shots below:
Image:NewArg.png
Image:NewList.png
Both screen-shots are from a clean PC, with no other add-ins or
extensions installed, and all the default settings for VS2010 and R#
6.

---
Original message URL:
http://devnet.jetbrains.net/message/5313654#5313654



0

Please sign in to leave a comment.