-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eclipse CDT - Method 'endExpression' could not be resolved #359
Comments
Have you filed a bug report with Eclipse? |
OK, I've also felt like this is a problem rather in the Eclipse CDT indexer, so there it is. We'll see. |
Same issue here |
@kentsangkm's solution in #393 worked for me on Eclipse Luna. |
Same here, I tried #393 solution and it worked on Eclipse Luna, Ubuntu |
I know this has been circulating for a while but I felt there was enough of a critical mass to push it to the top recently. I've now changed the decomposition operator to Please let me know either way - and also whether the change introduces any warnings for you? |
This enables the use of *, /, %, + and - at the LHS of expressions used in assertion macros, e.g. EXPECT( 1 + 2 == 3 ) See also discussion at - Catch commit: Use <= operator instead of ->* for decomposer, catchorg/Catch2@8cc1108 and issues mentioned there: - Catch issue #359, catchorg/Catch2#359 - Catch issue #393, catchorg/Catch2#393 - Catch issue #247, catchorg/Catch2#247
The problem exists since version 1.7.1 again. Is there a chance to "fix" it again in Catch, although in real it is an eclipse problem? |
@manu-m Are you sure its since 1.7.1? Because that one didn't touch the decomposition mechanism. If it started again since 1.7.0, then maybe. |
@horenmar Yes I am sure. I checked it two times again. The message doesn't appear in eclipse while working with Catch 1.7.0 but appears while working with 1.7.1. I am surprised, too. |
@manu-m In that case, probably not. 1.7.0 brought a rework of the expression capture mechanism, which sped up successful assertions significantly (~5 times). 1.7.1 then was a bugfix, so that templated comparisons don't cause compile-time errors. Maybe we can try to change the underlying operator again, but not sure if that would help. |
@horenmar Thank you very much for your extremly fast reply! But unfortunately the attached version still produces the error. Do have another idea or solution related to this problem? |
@manu-m Well, Eclipse could always fix their parser 😄 |
Hi, it seems that (from some, to me unknown reason) the Eclipse is unable to Index the
single_include/catch.hpp
file. Here is the simple example:It compiles and tests OK, but the Eclipse marks all
REQUIRE
lines as error and complains aboutMethod 'endExpression' could not be resolved
.Tried:
catch.hpp
into Preprocessor Include Paths in eclipseSetup:
More can be found in Google group
The text was updated successfully, but these errors were encountered: