R# 5.1.1751.8
When I perform a pattern search for…
catch (Exception e) {}
…I’m shown an error dialog which says “Can not parse pattern”.
What about that pattern cannot be parsed? What am I doing wrong?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I emailed JetBrains support and got the following response:
ReSharper cannot parse only part of a C# language construct. In this case, ‘catch(Exception e){}’ is part of a try/catch construct. The following will search for empty catch clauses:
( where $stmt$ is “one or more statements” ).