Old version of compiler

Bug #1867887 reported by Andres G. Aragoneses
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
fsharp (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

F# compiler in ubuntu is really old. This is taken from Focasa preview:

$ fsharpc --help
F# Compiler for F# 4.0 (Open Source Edition)
Freely distributed under the Apache 2.0 Open Source License

$ dpkg --list | grep fsharp
ii fsharp 4.0.0.4+dfsg2-2

This compiler has bugs that upstream new versions of F# don't have, for example:

a) Create a file "bug.fs" with this content:

```
let FindInFile (someStrings: seq<string>) =
    for line in System.IO.File.ReadLines "someFile" do
        for someString in someStrings do
            System.Console.Write line

FindInFile ["x";"y"]
```

Compile it with `fsharpc bug.fs`

Current results:
F# Compiler for F# 4.0 (Open Source Edition)
Freely distributed under the Apache 2.0 Open Source License

/home/knocte/Documents/geewallet/bug.fs(4,34): error FS0971: Undefined value 'line : string'

Expected results (what happens with newer F# in Windows):
C:\Users\knocte>"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\FSharp\fsc.exe" bug.fs
Microsoft (R) F# Compiler version 10.8.0.0 for F# 4.7
Copyright (c) Microsoft Corporation. All Rights Reserved.

C:\Users\knocte>

(no error)

b) The bundled version of the tool "fsharpi" is also buggy, see https://github.com/fsharp/fsharp/issues/740

Revision history for this message
Balint Harmath (bharmath) wrote :

Feature request!
Please post the contents of the latest bug in this tracker in a new post to be handled.

Changed in fsharp (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.