Skip to content

ArgumentOutOfRange Exception thrown when clicking at end of document #2079

@cartermp

Description

@cartermp

(Yes, some of these repro steps aren't related, but this is what I had when I got the exception)

  1. f5 a new hive of the latest master
  2. Create an F# console app.
  3. Create a C# class library.

In the C# class library, type the following code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClassLibrary1
{
    public class TheClass
    {
        public static string TheMessage(string name) => $"Hey there, {name}";
    }
}

In the F# console app, type the following code:

// Learn more about F# at http://fsharp.org
// See the 'F# Tutorial' project for more help.

open ClassLibrary1

let getTheName name = TheClass.TheMessage(name)


[<EntryPoint>]
let main argv = 
    printfn "%s" (getTheName "Phillip")
    0 // return an integer exit code

Now, click the end of the F# document:

exception-end-of-file

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions