Rider 2019.3 (Ubuntu) Syncing projects hangs

After Rider 2019.3 update I have Syncing project background task running forever and I'm unable to build the project. Removing configs won't help. Reinstallation won't help either.  I have .NET Core SDK 2.2 and ubuntu 18.

5
15 comments

Same problem here. Using .NET Core SDK 2.2 and Ubuntu 19.10

0

Same here for some .NET Core 2.2 projects on Ubuntu 19.10, Rider 2019.3.1.

Log files in ~/.Rider2019.3/system/log/ are not updated anymore while Rider is syncing, so it is unclear if Rider is actually doing anything.

0

Hi there,
Could you please try checking the  File | Settings | Build, Execution, Deployment | Toolset and Build and change the value of the "Used MSBuild version" field to "Auto Detected"?

If it does not help, please collect Rider logs as described here and attach them to the following issue on youtrack?

Kind regards,

Sofia.

0

Hi Sofia,

it said MSBuild not found – even though .NET SDK is installed.

  • Manually setting the MSBuild path to /usr/share/dotnet/sdk/2.2.402/MSBuild.dll did not help.
  • Installing mono-devel partly helped, now there is an error message telling me that I need MSBuild 15.0, which is already a lot better than the “Syncing Projects …» message.
  • Installing the newest mono-devel changed the error message to “The SDK 'Microsoft.NET.Sdk' specified could not be found.”

So probably the “Syncing projects …” appears because something waits for Rider to find a MSBuild, but this never happens, so the task hangs.

0

Hello Simon,

Could you please check if Rider uses global.json from somewhere and which target is set there? 

(global.json can be placed anywhere in the file hierarchy. The CLI searches upward from the project directory for the first global.json it finds. You control which projects a given global.json applies to by its place in the file system. The .NET CLI searches for a global.json file iteratively navigating the path upward from the current working directory. The first global.json file found specifies the version used. If that SDK version is installed, that version is used. If the SDK specified in the global.json is not found, the .NET CLI uses matching rules to select a compatible SDK, or fails if none is found.)

Also, please share your csproj (you can attach it to a new issue on youtrack with the limited visibility or upload it to https://uploads.services.jetbrains.com/) and Rider logs.

 

Thank you in advance.

0

Hi Sofia,

Apologizes for the late reply. Indeed, the project which does not load uses a `global.json` specifying .NET SDK 2.2.301.

I have collected the log files. The youtrack issue you linked says “visible to all users” – could you change that so I can upload them?

Thanks,

Simon

0

Hi Simon, 

Actually, by default logs are attached visible only for the person who attached it and for jetbrains-team. But here is a guide about how to restrict the attachments' visibility and comment visibility. 

https://www.jetbrains.com/help/youtrack/standalone/Set-Visibility-of-Issue-or-Comment.html

 

Kind regards,

Sofia.

0

Hi Sofia,

thanks. I have attached the logs!

Simon

0

Hi there,

Please check Rider 2020.1. The issue should be fixed there.

 

Kind regards, 

Sofia.

0

Rider does not hang anymore, and the project is marked as failed to load. So I can confirm that the issue described here is fixed.

0

Hi Simon,

Thank you for the information.

Most likely, Rider was using an MSBuild version, which caused the problems with the ​solution loading. One can configure it via "File | Settings | Build, Execution, Deployment | Toolset and Build -> Use MSBuild version."
If you need any help with this issue, please clarify your project types (or share csproj files), and share the settings page mentioned above.

 

Kind regards,

Sofia.

0

Hi Sofia,

Sorry for not being clear. The issue I have now in the project is expected as the project’s configured MSBuild version is not installed indeed, so what I wanted to write is that Rider now informs correctly about that instead of hanging in the project sync step.

Sorry for the misunderstanding and thanks for the kind reply.

Simon

 

0

Hi Simon,

Thank you for the clarification.

I agree that there should be a message. But could you please clarify if you saw a notification in the bottom right corner about MSBuild? I've checked it on my side, and when the project is unloaded, the following message appears.

 

Please let me know if there is not. I will investigate it further.

 

Kind regards,

Sofia.

0

Hi Sofia,

I can confirm that the MSBuild notification is shown!

Thanks,

Simon

0

Hi Simon,

Thank you for keeping me posted.

Could you please clarify if this popup can help? If you have any UX suggestions to make it more discoverable, please let me know.

 

Sofia.

0

Please sign in to leave a comment.