question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

On 2021.1.a9 the “Apply” button is causing an exception, so I couldn’t test it yet.

[Exception] InvalidOperationException: Sequence contains no matching element
Enumerable.First[TSource]() at <351e49e2a5bf4fd6beabb458ce2255f3>:0

ReflectionExtensions.Call() at <26e68dbb771b4491aa5f1dc8f99cc436>:0

Utils.RequestCompilation() at <26e68dbb771b4491aa5f1dc8f99cc436>:0

CscSettingsProvider+<>c.<OnGUI>b__9_1() at Library/PackageCache/com.coffee.csharp-compiler-settings@88d8659a14/Editor/CscSettingsProvider.cs:100
98:       serializedObject.ApplyModifiedProperties();
99:       File.WriteAllText(CscSettingsAsset.k_SettingsPath, JsonUtility.ToJson(serializedObject.targetObject, true));
-->100:       Utils.RequestCompilation();
101:   },
102:   onReload: () =>

InspectorGUI.DrawControl() at Library/PackageCache/com.coffee.csharp-compiler-settings@88d8659a14/Editor/InspectorGUI.cs:175
174:       if (onApply != null && GUILayout.Button(s_ApplyText))
-->175:           onApply();
176:   }

CscSettingsProvider.OnGUI() at Library/PackageCache/com.coffee.csharp-compiler-settings@88d8659a14/Editor/CscSettingsProvider.cs:94
93:   // Controls
-->94:   InspectorGUI.DrawControl(serializedObject.hasModifiedProperties,
95:       onRevert: () => { serializedObject = new SerializedObject(CscSettingsAsset.instance); },
96:       onApply: () =>

SettingsProvider.OnGUI() at <a19e86c7bf354115a4c6a5953c0575cb>:0

_Originally posted by @SugoiDev in https://github.com/mob-sakai/CSharpCompilerSettingsForUnity/issues/6#issuecomment-750290039_

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

6reactions
mob-sakaicommented, Dec 28, 2020

@VolodymyrBS @SugoiDev

Up to Unity 2020.x, we used to replace the compile process from the script, but that is no longer possible. After a brief investigation, the compile task has changed significantly since Unity 2021.1:

  • The CompilationTask (class) has been changed to Bee and BeeDriver (class)
    • Tasks are written in Library/Bee/*.dag.json
  • The ExternalCSCompiler assembly (used for #6: 2020.2 support) has been disabled
  • Yeah, I have a headache 😇 🍺
5reactions
mob-sakaicommented, Nov 15, 2021

@KuraiAndras @SugoiDev @neon-age Thank you for your cooperations! I have been trying some ideas for a few days. I found a way to set up csc configuration for each assembly in 2021.x. 👍 https://github.com/mob-sakai/CSharpCompilerSettingsForUnity/blob/develop/Plugins/CSharpCompilerSettings/CustomCompiler_2021.cs

Read more comments on GitHub >

github_iconTop Results From Across the Web

Supported Devices - 2021.1 English
The following sections list architecture support for commercial products in the Vivado® Design Suite ML Standard Edition tool versus all other Vivado Design ......
Read more >
Tableau Server 2021.1.18
Product support. Activate license · Troubleshoot issues · Support home. Installation Guide Install and Configure Tableau ...
Read more >
Connect 2021.1 Release Notes
Version: 2021.1. Last modified: June 23, 2022 ... Version, Date, Release, End of Support. 2021.1, February 10, 2021, Major, August 10, 2022.
Read more >
Autodesk Revit 2021 Product Updates
Update Name Where Update Installation can be obtained from Improvements included... 2021.1.8 Hotfix* Subscription Account Portal and Autodesk Access Release Notes 2021.1.7 Hotfix* Expired ‑...
Read more >
Ivanti Endpoint Manager 2021.1 Service Update 1 Readme
This Service Update changes how Proxyhost, a component of the EPM agent shared across Windows, Mac, and Linux, validates communication with the Core...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found