• Login
Community
  • Login

Notepad++ CS-Script Compilation Error

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
8 Posts 3 Posters 3.7k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    Julian Aung
    last edited by Feb 18, 2018, 5:55 AM

    I just installed CS-Script on my notepad++ and when I run any code this error pops up in the output:

    Error: Specified file could not be compiled.
    System.MissingMethodException: Method not found: ‘!!0[] System.Array.Empty()’. at Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.TraceCompilerInput(String cmdLine) at Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.Compile(CompilerParameters options, String compilerFullPath, String arguments, String& outputFile, Int32& nativeReturnValue) at Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.FromFileBatch(CompilerParameters options, String[] fileNames) at Microsoft.CodeDom.Providers.DotNetCompilerPlatform.Compiler.CompileAssemblyFromFileBatch(CompilerParameters options, String[] fileNames) at csscript.CSExecutor.CompileAssembly(ICodeCompiler compiler, CompilerParameters compilerParams, String[] filesToCompile) at csscript.CSExecutor.Compile(String scriptFileName) at csscript.CSExecutor.ExecuteImpl()

    C 1 Reply Last reply Feb 18, 2018, 8:36 PM Reply Quote 0
    • C
      Claudia Frank @Julian Aung
      last edited by Feb 18, 2018, 8:36 PM

      @Julian-Aung

      I’m not using csharp very often but could it be that you haven’t saved the file you
      want to compile beforehand?

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 0
      • J
        Julian Aung
        last edited by Julian Aung Feb 20, 2018, 5:50 PM Feb 20, 2018, 5:48 PM

        I have already saved that file.When, I tried to save it again it says "The file is already opened in notepad++."So, I overwrote that file on top of another file and compiled but failed. :(

        1 Reply Last reply Reply Quote 0
        • C
          chcg
          last edited by Feb 20, 2018, 10:14 PM

          Which version of https://github.com/oleg-shilo/cs-script.npp/releases and which N++ version on which windows version?

          1 Reply Last reply Reply Quote 0
          • J
            Julian Aung
            last edited by Feb 21, 2018, 10:57 AM

            Notepad: 7.5.4
            CS-Script: 1.7.8.0
            Windows 7 Ultimate Service Pack 1

            1 Reply Last reply Reply Quote 0
            • C
              chcg
              last edited by Feb 21, 2018, 7:35 PM

              As you are using the current release I think creating an new issue at https://github.com/oleg-shilo/cs-script.npp/issues makes sense.

              1 Reply Last reply Reply Quote 0
              • J
                Julian Aung
                last edited by Feb 22, 2018, 12:39 PM

                Thanks, I will create a new issue then.

                1 Reply Last reply Reply Quote 0
                • J
                  Julian Aung
                  last edited by Feb 22, 2018, 1:20 PM

                  P.S: I think this issue occur because of the latest release of both NP++ and CS-Script this didn’t happen in the previous versions of NP++.If I remembered correctly, CS-Script worked just fine with the NP++ plugin manager pre-installed version.

                  1 Reply Last reply Reply Quote 0
                  6 out of 8
                  • First post
                    6/8
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors