oleg-shilo / cs-script.npp

CS-Script (C# Intellisense) plugin for Notepad++ (x86/x64)
MIT License
246 stars 52 forks source link

"File could not be compiled" on macOS with dotnet core 2.2 and mono installed #37

Closed psrivastava closed 7 months ago

psrivastava commented 5 years ago

MacOS X , Mono JIT compiler version 5.18.0.225 dotnet core 2.2 Editor -> VSCode / CommandLine

Not a single/simplest of files getting compiled

` [Running] mono "/Users/psriva215/Library/Application Support/Code/User/cs-script.user/cscs.exe" "/Users/psriva215/Documents/Study/Cs/Program.cs" Error: Specified file could not be compiled.

System.InvalidOperationException: No process is associated with this object. at System.Diagnostics.Process.EnsureState (System.Diagnostics.Process+State state) [0x00018] in <4605a50878ff458c98a8b66722729be6>:0 at System.Diagnostics.Process.get_HasExited () [0x0000b] in <4605a50878ff458c98a8b66722729be6>:0 at System.Diagnostics.Process.EnsureState (System.Diagnostics.Process+State state) [0x0007b] in <4605a50878ff458c98a8b66722729be6>:0 at System.Diagnostics.Process.get_ExitCode () [0x00000] in <4605a50878ff458c98a8b66722729be6>:0 at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.get_ExitCode() at Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler+MonoExecutor_patched.Local_InternalExecWaitWithCapture (System.String file, System.String cmd, System.String currentDir, System.CodeDom.Compiler.TempFileCollection tempFiles, System.String& outputName, System.String& errorName) [0x0011f] in <864b15734bd0484490a76fff76589a6c>:0 at Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.Compile (System.CodeDom.Compiler.CompilerParameters options, System.String compilerFullPath, System.String arguments, System.String& outputFile, System.Int32& nativeReturnValue) [0x000e1] in <864b15734bd0484490a76fff76589a6c>:0 at Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.FromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x001b8] in <864b15734bd0484490a76fff76589a6c>:0 at Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.CompileAssemblyFromFileBatch (System.CodeDom.Compiler.CompilerParameters options, System.String[] fileNames) [0x0005d] in <864b15734bd0484490a76fff76589a6c>:0 at csscript.CSExecutor.CompileAssembly (System.CodeDom.Compiler.ICodeCompiler compiler, System.CodeDom.Compiler.CompilerParameters compilerParams, System.String[] filesToCompile) [0x00000] in :0 at csscript.CSExecutor.Compile (System.String scriptFileName) [0x007d8] in :0 at csscript.CSExecutor.ExecuteImpl () [0x005a1] in :0

[Done] exited with code=1 in 0.398 seconds

oleg-shilo commented 5 years ago

You have accidentally posted to the wrong project. :) The issue has been already reported: https://github.com/oleg-shilo/cs-script.vscode/issues/12

It's a long thread so I suggest you scroll down to the last post.