Forum member

csmager

9 posts

Posts by csmager

  1. C# 7.1 project won't build in NCrunch

    So... this morning I installed an update to VS 15.3.2 and the problem disappeared. The syntax I was using isn't actually a 7.1 feature, the error was a regression (you can see the [url=https://www.visualstudio.com/en-us/news/releasenotes/vs2017-relnotes]release notes[/url] refer to a [url=https://gi…

  2. C# 7.1 project won't build in NCrunch

    I have a project in Visual Studio with the Language Version set to 'C# latest minor version (latest)' in VS 2017.3 (so this is C# 7.1 - I have also tried setting the version explicitly to C# 7.1). This builds find in Visual Studio, but in NCrunch I get errors relating to C# 7.1 features such as t…

  3. Hangs on initialisation in 2.21

    [quote=Remco;8663]However, the change opened a hole in which ANSI files were incorrectly being detected by NCrunch as BOMless UTF8 files, and this was causing certain characters to be lost in transition of the source files into NCrunch's workspace.[/quote] Thanks for the quick fix. I've done a ver…

  4. Hangs on initialisation in 2.21

    Ah, that sounds plausible! I'm away for the weekend so will check it and report back on Monday. Thanks for your help so far!

  5. Hangs on initialisation in 2.21

    I had a hunch that the issue was that the char literal wasn't what I thought it was, and it seems there might be some truth. When I got it to fail, I grabbed the binary from the AppData\NCrunch folder and decompiled it: [code=csharp]TestCoverageEventListener.NCrunchMarkTestLineStart(10, 1676, ref …

  6. Hangs on initialisation in 2.21

    I'll try some of the things you suggest. I've now got rid of Sprache. This extremely simple test now fails: [code=csharp]Parser.Tokens.IsLeftQuote('‘').ShouldBe(true)[/code] Where IsLeftQuote is defined as: [code=csharp]public static bool IsLeftQuote(char c) { return c == '‘'; }[/c…

  7. Hangs on initialisation in 2.21

    Here's the inexplicable part. I have this narrowed down to a very specific parser chain. I now have two tests: This test throws an exception: [code=csharp]Parser.Tokens.StringInLeftRightSingleQuotes.Parse("‘with left-right quotes’")[/code] Parser and Tokens are both static classes, and St…

  8. Hangs on initialisation in 2.21

    Thanks for the quick reply. Re the failing test, there is no state involved. It's a parser that's literally text in result out (you can see an example parser in the [url=https://github.com/sprache/Sprache]Sprache [/url]readme I linked to). The same parser chain is used by 100s of other tests an…

  9. Hangs on initialisation in 2.21

    I have a couple of issues with 2.21 in Visual Studio 2015 Update 2. This is a little annoying as I had to pay to upgrade my licence to get access to this version! It fairly will hang fairly randomly while 'initialising engine'. It could be something in the solution I'm working on, but it gets t…