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

In 3.26.0.0 running default install gives error about alternative compiler #73

Closed
rconde01 opened this issue Jun 27, 2017 · 6 comments
Closed
Labels

Comments

@rconde01
Copy link

rconde01 commented Jun 27, 2017

PS E:\myFolder> cscs .\myScript.cs
C# Script execution engine. Version 3.26.0.0.
Copyright (C) 2004-2017 Oleg Shilo.

Error: Specified file could not be compiled.

System.ApplicationException: Cannot use alternative compiler (). You may want to adjust 'CSSCRIPT_DIR' environment variable or disable alternative compiler by setting 'useAlternativeCompiler' to empty value in the css_config.xml file.

Error Details: ---> System.ApplicationException: Cannot find alternative compiler ""
   at csscript.CSExecutor.LookupAltCompilerFile(String altCompiler, String firstProbingDir)
   at csscript.CSExecutor.LoadCompiler(String scriptFileName, String[]& filesToInject)
   --- End of inner exception stack trace ---
   at csscript.CSExecutor.LoadCompiler(String scriptFileName, String[]& filesToInject)
   at csscript.CSExecutor.Compile(String scriptFileName)
   at csscript.CSExecutor.ExecuteImpl()
PS E:\myFolder>

3.25.3.0 appears to work ok.

@oleg-shilo
Copy link
Owner

Did you have CS-Script previously installed?

As part of the troubleshooting can you please check what your css_config.xml has as an alternative compiler.

It supposed to have %CSSCRIPT_DIR%\lib\CSSRoslynProvider.dll

@rconde01
Copy link
Author

  1. Just to clarify, this is on windows
  2. I just unzipped the 7z file and ran
  3. There is no css_config.xml except in the linux directory

@oleg-shilo
Copy link
Owner

Great, thank you. Will provide the fix very soon.

@oleg-shilo
Copy link
Owner

The problem is caused by the mistake in the routine responsible for loading default code provider (absence of css_config.xml). This error affects the cases when CS-Script was not installed (I assume your case) but a raw cscs.exe is used.

I changed the issue into "Defect".

oleg-shilo added a commit that referenced this issue Jun 28, 2017
: In 3.26.0.0 running default install gives error about alternative compiler
@oleg-shilo
Copy link
Owner

Can you please test v3.26.1.0. It supposed to fix the issue.

@rconde01
Copy link
Author

Works! Thanks!

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

No branches or pull requests

2 participants