I discovered a problem today in VA Outline that I believe is a bug. I'm using a string format expression in C# that appears to cause problems with parsing the code file. The result is that any methods after the method that contains the expression do not appear in the outline.
I created a simple console app that replicates the issue. It builds and runs but the outline does not display Method2. Here it is:
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestConsole
{
class Program
{
static void Main(string[] args)
{
TestClass tc = new TestClass();
tc.Method1(2017, 1);
}
}
class TestClass
{
public TestClass()
{
}
public void Method1(int DatabaseYear, int DatabaseMonth)
{
string fileName = "test";
string folder = "testFolder";
string errorMessage = "Failed to copy";
// this is the line
string s = $"Error while copying {fileName} to {Path.Combine(folder, $"Data{DatabaseYear}{DatabaseMonth:D2}01.dat")}. {errorMessage}";
Console.WriteLine(s);
Console.ReadLine();
}
private void Method2()
{
}
}
}
Here's my version information:
VA_X.dll file version 10.9.2118.0 built 2016.12.12
DevEnv.exe version 14.0.25420.1 Professional
msenv.dll version 14.0.25431.1
Comctl32.dll version 6.10.14393.447
Windows 10 10.0 Build 14393
8 processors (x86-64, WOW64)
Language info: 1252, 0x409
Platform: Project defined
Stable Includes:
Other Includes:
Stable Source Directories: