hubFS: THE place for F#

. . . are you on The Hub?
Welcome to hubFS: THE place for F# Sign in | Join | Help
in Search

The F# September 2008 CTP is now available!

Last post 09-07-2008, 15:56 by cisterni. 22 replies.
Page 1 of 2 (23 items)   1 2 Next >
Sort Posts: Previous Next
  •  08-29-2008, 16:48 6753

    The F# September 2008 CTP is now available!

    The new F# CTP was released earlier today.  You can get all the details on Don's blog post announcing the CTP release.

    Download the F# CTP

    More information about the release, and links to other F# downloads are available on the new F# Developer Center at http://msdn.com/fsharp.

     

  •  08-29-2008, 17:23 6755 in reply to 6753

    Re: The F# September 2008 CTP is now available!

    Awesome, but where's the project converter? I can't find it.
  •  08-30-2008, 22:30 6759 in reply to 6755

    Re: The F# September 2008 CTP is now available!

    A tad late, but I've posted the .fsharpp to .fsproj project converter on my blog at:

    http://blogs.msdn.com/chrsmith/archive/2008/08/30/fsharpp-to-fsproj-converter.aspx

    Cheers!


    http://blogs.msdn.com/chrsmith
  •  08-31-2008, 6:06 6761 in reply to 6753

    Re: The F# September 2008 CTP is now available!

    Looking great.

    One small remark (for now ;) )

    Is it correct that the single case active pattern (|Lazy|) got removed? If so, pretty please can you bring that back? It is simple to write, but it really cleans up code using lazy values, so it's something I would have to write over and over again.

    bye

    Kurt
  •  08-31-2008, 6:52 6762 in reply to 6761

    Re: The F# September 2008 CTP is now available!

    Units & Measures? Quotation compilation? MSBuild?

    you're really spoiling us!

    Unfortunately I've run into some difficulties with the CTP. Initially I got an error

    --no-framework unrecognized argument to fsc.exe.

    Uninstalling VSLab fixed this. I also uninstalled all versions of FSharp, rebooted and reinstalled v1.9.6.0.

    Now on running an empty F# Application project I get:

    ------ Build started: Project: ConsoleApplication1, Configuration: Debug Any CPU ------

    C:\Program Files\FSharp-1.9.6.0\\bin\fsc.exe -o obj\Debug\ConsoleApplication1.exe -g --noframework --define DEBUG --define TRACE -r "C:\Program Files\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll" -r C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.dll --target exe --warn 3 --warnaserror 76 --vserrors --fullpaths Program.fs

    C:\Program Files\MSBuild\FSharp\1.0\Microsoft.FSharp.Targets(77,3): error MSB4018: The "Fsc" task failed unexpectedly.

    [EDIT: to remove superfluous stack trace and build output.]

    Thinking this may be to do with the temporary location of the generated project I attempted to save the solution into my user profile documents folder, but that cause a error dialog saying 'This operation cannot be completed.'

    I finally attempted to run VS2008 'as Administrator', but there was no change in behaviour.

    I'm running VS2008 on a Vista Ultimate Tablet PC.

    Any help much appreciated.

    regards,

    Danny

  •  08-31-2008, 9:49 6765 in reply to 6761

    Re: The F# September 2008 CTP is now available!

    Hi Kurt,

    Good suggestion, thanks. This was previously hidden away in what we now regard as a non-standard PowerPack location (the Lazy module). Like KeyValue it would make a candidate pervasive active pattern. Will record a suggestion for this.

    For those missing it the definition is

    let (|Lazy|) (x:Lazy<_>) = x.Force()

    don

  •  08-31-2008, 9:53 6766 in reply to 6762

    Re: The F# September 2008 CTP is now available!

    Hi Danny

    This does still vaguely feel like a problem from having had VSLab installed, since it does some funky things.

    Any chance you could try on a computer that hasn't had VSLab installed?

    I know Antonio (VSLab owner) will be loking into this more soon

    don

  •  08-31-2008, 11:20 6768 in reply to 6766

    Re: The F# September 2008 CTP is now available!

    I installed the CTP, however the FSI interactive windo doesnt display correctly. any text I type in is displayed as white on black. however when I press enter it is set to white on white, or grey or white on grey - no too sure what the background color is. Can some one tell me how to alter the color scheme used to display text in fsi interactive.

     

    P.S. I am using a custom color scheme found at this link http://blog.wekeroad.com/2007/10/17/textmate-theme-for-visual-studio-take-2/

  •  08-31-2008, 11:48 6769 in reply to 6768

    Re: The F# September 2008 CTP is now available!

    birchoff:

    I installed the CTP, however the FSI interactive windo doesnt display correctly. any text I type in is displayed as white on black. however when I press enter it is set to white on white, or grey or white on grey - no too sure what the background color is. Can some one tell me how to alter the color scheme used to display text in fsi interactive.


     


    P.S. I am using a custom color scheme found at this link http://blog.wekeroad.com/2007/10/17/textmate-theme-for-visual-studio-take-2/



    I had that problem too, you can solve it by editing the fonts and colors option in visual studio, in the "Text Editor" item "Read-Only Region"
  •  08-31-2008, 14:18 6773 in reply to 6769

    Re: The F# September 2008 CTP is now available!

    thanks for the help, I can not properly use FSI in VS 2k8. However, what settings other than Read-Only Region control how text is displayed in VSI. in particular I am looking to get red displayed for errors and may be a few different colors for different things.

  •  08-31-2008, 16:47 6777 in reply to 6762

    Re: The F# September 2008 CTP is now available!

    Danny, FYI, the error you got trying to "Save As..." a project file is a known bug in the CTP release.  So you might try creating the project again in a non-temporary location to see if it fixes the 'file not found' issue.
  •  09-01-2008, 13:13 6801 in reply to 6777

    Re: The F# September 2008 CTP is now available!


    Don - you were quite correct here.

    It seems VSLab does not uninstall fully. In particular it leaves a registry entry that overrides any call to fsc.exe with a call to the vslab wrapper executable.

    To fix your system simply remove the following key from the registry:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\fsc.exe

    Please be VERY careful when editing the registry. It fixed my system - but no guarantees!

    Brian - I believe I'm now in a position to install the CTP and will report back on the Project saving issue.

    regards,

    Danny
  •  09-01-2008, 15:56 6805 in reply to 6801

    Re: The F# September 2008 CTP is now available!

    I have noticed two problems, just playing with it.

    First, when I open properties of the project, I get a value was not within the given range.

    Second, when I have more than one file in the project, and use [<EntryPoint>], I can't built.
    Removing [<EntryPoint>], I can built. Funny thing here, if your building without the entrypoint, it's the file lowest in the project overview that's executed.

    Oh, the new VS projects have made my busy porting my #r code. Will post about this.
  •  09-01-2008, 16:04 6806 in reply to 6805

    Re: The F# September 2008 CTP is now available!

    These are by design. Take a look at section 12.1 of http://research.microsoft.com/fsharp/manual/lexyacc.aspx

    e.g.

    12.1.4   Explicit “Main” Entry Point

    The last file specified in the compilation order for a .EXE may additionally contain an explicit entry point, indicated by annotating a function in a module with EntryPointAttribute.

    Ø  The attribute can be applied only to a let-bound function in a module. It may not be a member.

    Ø  Only one function may be given this attribute, and this must be the last declaration in the last file processed on the command line. The function may be in a nested module.

    Ø  The function is asserted to have type “string[] -> int” prior to being checked. If this assertion fails an error is reported.

    Ø  At runtime the arguments passed on startup are an array containing the same as entries as System.Environment.GetCommandLineArgs(), minus the first entry in that array.

    The function becomes the entry point to the program. It immediately forces the static initializer for the file in which the function exists. It will then run the body of the function.

  •  09-01-2008, 17:00 6807 in reply to 6806

    Re: The F# September 2008 CTP is now available!

    Never mind -  files genereted by the lexer and paser will ofcourse require -r FSharp.PowerPack.dll when compiling.
Page 1 of 2 (23 items)   1 2 Next >
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems