Closed rfvgyhn closed 2 years ago
I'm sorry but Linux platform is not supported. MappingGenerator supports only Windows, and there are no plans to extend that support to other platforms (Linux/Mac) at the moment.
FYI, I did some digging and the cause of this is Environment.GetEnvironmentVariable("APPDATA")
returns null on Linux which then causes Path.Combine
to throw an exception. Possible fixes include:
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
which returns %APPDATA%
on Windows and $XDG_CONFIG_HOME
on Linux. This would require using net standard 2.0.Environment.GetEnvironmentVariable("APPDATA") ?? Environment.GetEnvironmentVariable("XDG_CONFIG_HOME")
.I modified the IL of my local assemblies and the code actions are now showing up in Rider on Linux.
I can exclude the installer module loading on Linux, but this only will give you access to basic, non-premium features. I will provide that fix with the next release.
Should be fixed in 2022.7.46
I'm unable to get code actions to show up in Rider (neither 2022.1.2 or 2022.2 RC) on Linux. They do work for me in VSCode.
Given the following code, placing my cursor on the function
Map
and pressing alt+enter or clicking the light bulb shows a context menu without any MappingGenerator items. I've tried various scenarios from the docs and haven't been able to get the code actions to show up at all.dotnet new console
In version 2022.2 RC, I get the following IDE error. In version 2022.1.2, I don't get any IDE errors. Not sure if this is relevant.