Skip to content

Commit

Permalink
Revert "Fix plugin compilation breaking subsequent plugins failing to…
Browse files Browse the repository at this point in the history
… compile (testing)"

This reverts commit dc51f31.
  • Loading branch information
austinv900 committed Sep 8, 2023
1 parent 2f85c30 commit f63cc99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CSharp/CSharpLanguage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public async Task Compile(int id, CompilerData data)
if (((CompilationResult)message.Data).Data.Length > 0) _logger.LogInformation(Events.Compile, "==== Compilation Finished {id} | Success ====", id);
else _logger.LogInformation(Events.Compile, "==== Compilation Finished {id} | Failed ====", id);
message.Client!.PushMessage(message);

}
catch (Exception e)
{
Expand All @@ -63,7 +63,7 @@ private async Task<CompilerMessage> SafeCompile(CompilerData data, CompilerMessa
if (data.SourceFiles == null || data.SourceFiles.Length == 0) throw new ArgumentException("No source files provided", nameof(data.SourceFiles));
OxideResolver resolver = (OxideResolver)_services.GetRequiredService<MetadataReferenceResolver>();
_logger.LogDebug(Events.Compile, GetJobStructure(data));

Dictionary<string, MetadataReference> references = new(StringComparer.OrdinalIgnoreCase);

if (data.StdLib)
Expand Down

0 comments on commit f63cc99

Please sign in to comment.