-
Notifications
You must be signed in to change notification settings - Fork 131
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
Unity plugin from Rider 2018.2.1 doesn't set LangVersion correctly #751
Comments
@renattou I can't reproduce it. Make sure you have "Override LangVersion" unchecked Please set LoggingLevel to Verbose and call Assets->Sync C# Project, logs will appear in %TEMP%\Unity3dRider or $TMDDIR\Unity3dRider depending on the OS. Thanks! |
@van800 I'm using using Unity 5.6.5p3 on macOS 10.13.6. Using Rider 2018.1.4: 2018.1.4.log I checked the override option, but it was already unchecked. |
I found this comment https://gist.github.com/van800/875ce55eaf88d65b105d010d7b38a8d4#gistcomment-2689159 |
@renattou Does it work if you check "Override LangVersion" and specifically change it to 4? |
I was able to reproduce the problem. Thank you. |
Until build with fix is out, you may use "Override LangVersion" setting. |
@van800 glad to hear you could reproduce it! I'm using the override setting for now and it's working. Thanks! |
Fix is available in the nightly builds, which are accessible via https://www.jetbrains.com/toolbox/app/ |
After updating to Rider 2018.2.1 (plugin version 2018.2.0.78), the Unity plugin sets the LangVersion tag as empty. Like this:
<LangVersion></LangVersion>
.This causes Rider to suggest C#6 features even though we use C#4.
Downgrading to 2018.1.4 (plugin version 2018.1.0.133) fix the problem, setting it as
<LangVersion>4</LangVersion>
.The text was updated successfully, but these errors were encountered: