Intellisense errors

Answered

Hi all,

I'm currently testing Rider 2017.2 EAP on Linux and like it a lot so far. The only issue I have is that intellisense shows me a lot of errors in a .net core mvc application while I can compile and run the application with no problem.

For example:

1. ApplicationRole : IdentityRole<int> => The type 'int' must be convertible to type 'IEquatable '1'

2. Overriding a method in the DbContext: protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) => Can not change return type when overriding method (which isn't changed)

3. Passing an array to a method: userManager.AddClaimsAsync(Tuser, IEnumerable<Claim>) => passing in an IEnumerable<Claim> gives the following error: Argument type is not assignable to type 'System.Collections.Generic.IEnumerable '1'.

4. Sometimes properties of classes aren't recognized anymore => Unable to resolve property ''. Removing and adding the calling code, for example classA.PropertyX gives the error, retype classA.PropertyX and everything is fine until the next opening of the solution (mind you, even if it's marked as an error it build fine).

5. Creating a mvc project from scratch using the rider templates marks the return View with errors => Can not resolve View.

I can build (which shows 0 errors and 0 warnings) and run the application without any problems however so it seems to be an issue with intellisense. Opening the solution with Visual Studio also doesn't give any errors and build fine. I was wondering if other people experienced similar problems and how to get intellisense back on track.

Kind regards,

erik.

13 comments
Comment actions Permalink

I have similar problems after updating to this EAP Release.

0
Comment actions Permalink

same problems here using JetBrains Rider 172.4144.808

0
Comment actions Permalink

It must be corrupted caches, please try "File -> Invalidate caches/Restart". We are already working on this, but if you have any stable repro, please let us now.

0
Comment actions Permalink

thanks for the reply

I just tried the "Invalidate caches/Restart" function. After restart the error start to appear again and after 2 minutes it's at 446 errors like before. but it's still building and running like a charm.

If I open the same project with Rider 2017.2 EAP there are no errors displayed.

0
Comment actions Permalink

@Erik, Which framework does your project target? Is it netstandard 2.0?

@Pascalz, good news! We are continuously improving caches mechanism, please let us know if the problem shows up in 2017.2

0
Comment actions Permalink

Ignore this, for some reason i didn't check and assumed was an issue I had opened...

0
Comment actions Permalink

@julia vaseva

The problem is coming back after the cache is rebuilt.

but I am looking forward to the next stable release and full support for .net core 2.0

0
Comment actions Permalink

Hi Julia,

I'm targeting netstandard 2.0.

I've also invalidated the caches but this doesn't work, after restart I get all errors back.

Kind regards,

erik.

2
Comment actions Permalink

The Problem still persists in Rider 2017.2

Invalidating cache also does not help. The errors just come back.

1
Comment actions Permalink

@Pascalz, we have fixed a similar issue in 2017.2, but your case must be different. Could you possibly send a sample solution, where the issue reproduces, to us? This is a candidate for the nearest bugfix. Please contact me via new Support Request.

 

@Erik, @Grigory, @Wilson Rivera please let me know if your issues persist in 2017.2

0
Comment actions Permalink

@Julia Vaseva I'm also having this issue in 2017.2.

1
Comment actions Permalink

@Joao Reis please create a new Support Request, any additional information about the solution including a code snippet is highly appreciated!

0
Comment actions Permalink

Seems to be solved with my project, just purchased the toolbox license ;).

0

Please sign in to leave a comment.