Skip to content
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

Precompiler functionality broken #366

Closed
rconde01 opened this issue Apr 11, 2024 · 4 comments
Closed

Precompiler functionality broken #366

rconde01 opened this issue Apr 11, 2024 · 4 comments

Comments

@rconde01
Copy link

Using 4.8.12.0
test.cs

//css_precompiler Precompiler.cs;

using System;

class Program {
    static void Main(){
        System.Console.WriteLine("Hello");
    }
}

Precompiler.cs

public class Precompiler
{
    public static bool Compile(ref string code, string scriptFile, bool isPrimaryScript, Hashtable context)
    { 
        return false; //false as the code has not been modified
    }
}

running:

cscs test.cs

gives:

Error: Specified file could not be compiled.

Cannot load precompiler D:\third_party_bug_reports\cs-script\precompiler_broken\Precompiler.cs: Object reference not set to an instance of an object.
@oleg-shilo
Copy link
Owner

Txs for reporting. Will have a look.

@oleg-shilo
Copy link
Owner

Found it. A silly mistake.
Easy to fix. The fix update will be ready in a day or two.

@oleg-shilo
Copy link
Owner

Done. The fix is merged (684516c).

Will do the release asap

oleg-shilo added a commit that referenced this issue Apr 11, 2024
### CLI

- Issue #366: Precompiler functionality broken

### CSScriptLib

- <no changes>
@oleg-shilo
Copy link
Owner

Released: https://github.com/oleg-shilo/cs-script/releases/tag/v4.8.15

You can update your installation via dotnet tool: dotnet tool install --global cs-script.cli --version 4.8.15

Publishing on Chocolatey and WinGet will take a little longer (a day or two)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants