GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 0.17.0 by glennblock · Pull Request #1204 · scriptcs/scriptcs

Conversation

@glennblock

@glennblock glennblock commented Jan 21, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Get it via svm or Chocolatey! Homebrew PR pending.

Special thanks to: @BlackFrog1, @gregoryyoung, @aarondandy, and @rickardp for their contributions to this release.

This Release

This is the first release in a while for scriptcs. It includes some great new features such as Pretty Printing, Support for NuGet credentials, enrichment to the execution environment and more!

For API users (hosting or other programmatic usage), there is one major change, the removal of members exposing Common.Logging types (#1189) from the public API. These were deprecated in version 0.15.0. As a result, the ScriptCs.Core NuGet package no longer takes a dependency on the Common.Logging package.

Breaking API Changes

High impact: Common.Logging types have been removed from the scriptcs public API.

Medium impact: The ScriptCs.Core NuGet package no longer takes a dependency on the Common.Logging package. If you are using Common.Logging for other purposes, after upgrading your project to ScriptCs.Core 0.17.0 you should check to see if NuGet has removed Common.Logging. If so, you will have to reinstall it yourself.

Low impact:

Affects hosters / module authors only

  • The IConsole interface has a new Width parameter.
  • The IScriptEnvironment interface has new members AddCustomPrinter<T>), Print<T>(), ScriptPath, LoadedScripts, ScriptAssembly, and Initialize().
  • The FileParserContext and FilePreProcessResult classes have a new member: ScriptPath

Issue Details

New Features

  • Common Logging is gone! (Sending Common.Logging to oblivion! #1190) - by @glennblock. Kudos to @adamralph for getting everything in place to allow the surgical removal.
  • Pretty printing support has now been added to the REPL (Pretty Printing #1156) - by @gregoryyoung

![screen shot 2017-02-11 at 10 46 24 pm] (https://cloud.githubusercontent.com/assets/141124/22864844/8de41d34-f10d-11e6-9f9a-5091f5a42812.png)

  • You can now access the main script and any loaded script paths using the new Env.ScriptPath and Env.LoadedScripts properties (Access currently running (or possibly main) script #225) - by @glennblock

  • You can access the compiled script assembly from within a script using the new Env.ScriptAssembly property. This alleviates having to use reflection or jump through hoops to get the script assembly (Expose a reference to the current script assembly #244) - by @glennblock

    #load child.csx
    Console.WriteLine("Main script:" + Env.ScriptPath); 
    Console.WriteLine("Loaded scripts:");
    Console.WriteLine("\t" + String.Join(Environment.NewLine + "\t", Env.LoadedScripts.ToArray()));  
    Console.WriteLine("Assembly:" + Env.ScriptAssembly);

    screen shot 2017-02-11 at 10 56 50 pm

  • Added a ScriptCs Nuget package which has all the binaries. This allows running scripts like on a CI server simply by installing the package from NuGet. Also makes it easy to include ScriptCs binaries in a project. (Publish scriptcs.exe as its own nuget package #1061) - by @glennblock

  • Added new -e and --eval options for allowing execution of code passed at the command line. (Currently does not work with svm due to a bug) (Allow passing code to scriptcs at the command line #1085) - by @glennblock

    screen shot 2017-02-12 at 10 22 12 am

  • Global Credential provider can now be set for NuGet. (Use packageSourceCredentials when interacting with feeds #1018) - by @aarondandy

Fixes

  • REPL command help displays formatted to the width of the terminal. (Word wrap the Repl Command description in the Help Command #1047) -by @BlackFrog1

    replformatting

  • Char literals are properly handled if they have escape chars. (The Mono engine is unable to handle escape sequences in char literals #1143) - by @rickardp

  • Compilation into cache no longer throws a ScriptCompilationException (Compilation into cache leads to ScriptCompilationException #1153) - by @filipw

  • Stylecop removed from test projects, LibLog and Mono LineEditor (Fixing StyleCop issues. Removing StyleCop form tests. Also adding Sty… #1191) - by @glennblock

  • Changed errors to always show in Red as opposed to Dark Red to address readability (Is there a way to change the colors for output? #1198) - by @glennblock

    errors

  • Comments can now be before directives. (Comments in the head of a script file must not throw the error "Encountered directive after the start of code" #1185) - by @glennblock

  • Relative paths are now handled properly (When launching a script using a relative path, the working directory is the current path NOT the script path #1193) - by @glennblock

  • Updated to Nuget.core 2.14.0 fixes error with ScriptCs.OctopusClient script pack (Updating to Nuget.Core 2.14.0 #1208) - by @glennblock

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
lukebuehler and others added 30 commits May 9, 2015 16:48
@lukebuehler @adamralph
made Namespaces collection immutable and relevant methods virtual #1040
defddcc
@BlackFrog1
Word wrap Help Command output of each command description
eaab6df
@BlackFrog1
Merge remote-tracking branch 'upstream/dev' into WordWrap
935bc70
@BlackFrog1
Update the Help Command tests to identify the new formatting
516dfb1
@BlackFrog1
Add Suppress Message to SplitQuoted method
dcea2a3
@glennblock
Refactoring Printers impl to the ScriptEnvironment. Also using DI as …
5a0c1ec
…much as possible
@filipw
added missing nuspec
9864117
@filipw
resurrected ScriptCs.Engine.Roslyn/Properties/ScriptCs.Engine.Roslyn.…
41fe643
…nuspec
@filipw
version bump
5231b86
@filipw
fixed name of Roslyn package
8476230
@filipw
removed scriptcs_packages
805559f
@filipw
removed VB dlls
307b0ed
@filipw
killed ScriptCs.Engine.Common
113d11c
@glennblock
Merge pull request #1150 from filipw/bugfix/0.16.1
42e2642
A bunch of fixes for Roslyn engine (0.16.1 hotfix)
@filipw
load assembly into appdomain in CSharpPersistentEngine
519b021
@glennblock
Merge pull request #1154 from filipw/bugfix/1153
84eafdd
load assembly into AppDomain in CSharpPersistentEngine
@gregoryyoung
add Env.Print(obj) add Print<T>(obj) move printing to printers
211fbc7
@gregoryyoung
write to _console not Console
539576a
@glennblock
Merge pull request #1156 from gregoryyoung/printer
a252cd4
Pretty Printing
@glennblock
Merge pull request #1042 from adamralph/1040
eb3bddd
made Namespaces collection immutable and relevant methods virtual #1040
@glennblock
Fixes #1172 and #1173 (#1177)
b8b689d
* Fixes #1172 and #1173

* Fix case
@glennblock
Adding brew build script (#1178)
cff8f5d
* Adding brew build script

* Removing whitespace
@aarondandy @glennblock
Fix for #1018 that sets the global credential provider (#1021)
ffcd2ff
Thanks!
@glennblock
Adds new -e and -eval options which will immediately execute a script (…
e31b194
…#1129)
@glennblock
Small fix
7fcebf2
@rickardp @glennblock
#1143. Char literals does not take escape sequences into account (#1144)
2ed8e70
* #1143: Char literals does not take escape sequences into account

* #1143: Added unit test for problem and added a fix to not break another unit test that is checking that broken input is to be accepted
@glennblock
Adding scriptcs NuGet package (#1062)
e228a88
@glennblock
Sending Common.Logging to oblivion!
e7b30c4
@glennblock
Merge pull request #1190 from glennblock/1189
99e1431
Sending Common.Logging to oblivion!
@glennblock
Fixing StyleCop issues. Removing StyleCop form tests. Also adding Sty…
7d1d9b6
…leCop ignore for LibLog and LineEditor
filipw and others added 29 commits January 9, 2017 18:54
@filipw
Merge pull request #1192 from glennblock/225
80a4c51
Adding ScriptPath to Env
@glennblock
Adding FileProcessorTests
4edd819
@glennblock
Adding ScriptExecutorTests
49479e7
@glennblock
Merge pull request #1195 from glennblock/225
6f80483
Adding unit tests for ScriptInfo
@glennblock
Refactoring ScriptEnvironment to use IScriptInfo directly
83546bd
@glennblock
Merge pull request #1196 from glennblock/225
70d1fbb
Refactoring ScriptEnvironment to use IScriptInfo directly
@glennblock
Adding Env.ScriptAssembly, a beautiful hack
cc72227
@filipw
Merge pull request #1197 from glennblock/244
c73d465
Adding Env.ScriptAssembly
@glennblock
Forcing ScriptAssembly to be set when a script first runs, this way l…
3058aaf
…ibraries can assume it is properly set
@glennblock
Merge pull request #1199 from glennblock/244
bf99766
Forcing ScriptAssembly to be set when a script first runs, this way l…
@glennblock
Fix
3cfef69
@glennblock
Merge pull request #1200 from glennblock/244
208ac1c
Fix
@glennblock
Changing DarkRed to Red, fix for #1198
c8e6671
@glennblock
Merge pull request #1201 from glennblock/1198
d7ee0bd
Changing DarkRed to Red, fix for #1198
@glennblock
Merge pull request #1047 from BlackFrog1/WordWrap
6b0172a
Word wrap the Repl Command description in the Help Command
@glennblock
Fixing tests I broke and slight refactoring
8fa94c9
@glennblock
Merge pull request #1202 from glennblock/244
a7525c4
Fixing tests I broke and slight refactoring
@glennblock
Adds support for single line comments at the top of a file before dir…
ca75153
…ectives. Fix for #1185
@glennblock
Merge pull request #1203 from glennblock/1185
d86d5db
Adds support for single line comments at the top of a file before dir…
@glennblock
Upping to 0.17.0
9da8773
@glennblock
Merging to fix props
a459b4a
@glennblock
Fixes handling of relative paths. Fix for #1193
b6c1c1a
@glennblock
Merge pull request #1205 from glennblock/1193
30cb5e8
Fixes handling of relative paths. Fix for #1193
@glennblock
Updating to Nuget.Core 2.14.0
8b98a1f
@glennblock
Merge pull request #1208 from glennblock/dev
d742d51
Updating to Nuget.Core 2.14.0
@glennblock
Removing automatically showing usage
49c912b
@glennblock
Merge pull request #1209 from glennblock/dev
17de08e
Removing automatically showing usage
@glennblock
Fixing unit test to not expect args
6e60f45
@glennblock
Merge pull request #1210 from glennblock/dev
29c0480
Fixing unit test to not expect args
@jrusbatch
jrusbatch merged commit 9423e56 into master Feb 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

8 participants

@glennblock @jrusbatch @lukebuehler @BlackFrog1 @filipw @gregoryyoung @aarondandy @rickardp
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.