Bug 17060 - F# "Send line to F# interactive" command shows and error
Summary: F# "Send line to F# interactive" command shows and error
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: F# Add-in ()
Version: 4.3.0
Hardware: Macintosh Mac OS
: High major
Target Milestone: master
Assignee: Dave Thomas
Depends on:
Reported: 2014-01-05 08:23 UTC by fwaris
Modified: 2014-03-14 02:11 UTC (History)
5 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description fwaris 2014-01-05 08:23:00 UTC
I am using Xamarin Studio on a mac with F# binding, alpha channel - all updates applied.

In the F# source editor you can highlight some text and send it to FSI for evaluation.

The "Send selection to F# interactive" seems to work fine.

However "Send line to F# interactive" pops up an error box.

Also the caret is not moved to the next line.

Here is the exception:
System.ArgumentException: Column < MinColumn
  at Mono.TextEditor.Caret.set_Column (Int32 value) [0x0004d] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.3.0-branch/cd02fcfb/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Caret.cs:76 
  at MonoDevelop.FSharp.FSharpInteractivePad.SendLine () [0x00000] in <filename unknown>:0 
  at MonoDevelop.FSharp.SendLine.Run () [0x00000] in <filename unknown>:0 
  at MonoDevelop.Components.Commands.CommandHandler.Run (System.Object dataItem) [0x00002] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.3.0-branch/cd02fcfb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:61 
  at MonoDevelop.Components.Commands.CommandHandler.InternalRun (System.Object dataItem) [0x00003] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.3.0-branch/cd02fcfb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandHandler.cs:42 
  at MonoDevelop.Components.Commands.CommandManager.DefaultDispatchCommand (MonoDevelop.Components.Commands.ActionCommand cmd, MonoDevelop.Components.Commands.CommandInfo info, System.Object dataItem, System.Object target, CommandSource source) [0x00086] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.3.0-branch/cd02fcfb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1109 
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x002fc] in /Users/builder/data/lanes/monodevelop-lion-monodevelop-4.3.0-branch/cd02fcfb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1076
Comment 1 Sadik Ali 2014-01-10 08:00:40 UTC
I have checked this on below environment:

All Mac
XS 4.2.3 (Build 29)

I am not able to reproduce this at my end, could you please share some sample project? so that I can reproduce.
Comment 2 fwaris 2014-01-11 08:22:41 UTC
I am at version 4.2.2 build 2

Maybe this fixed in the newer build but "check for updates" is not giving me the new version yet.

BTW this issue is seen on both Windows and Mac versions of XS
Comment 3 fwaris 2014-01-11 08:45:53 UTC
My XS just got updated to 4.3.1 (build 3) but the issues is still there.

All I have to do is evaluation the line such as:

let a = "test

I am still waiting for Windows to update.

BTW I went from 4.2.2 to 4.3.1 where as you reference 4.2.3 so not sure if have the same versions.
Comment 4 Dave Thomas 2014-01-17 02:55:30 UTC
This was fixed in release 3.2.22 of the F# language binding, what version are you using?
Comment 5 fwaris 2014-01-19 09:14:29 UTC
According to XS I am using 3.2.22 on both windows and mac. Both have the same issue.
Comment 6 fwaris 2014-02-01 08:46:00 UTC
I rebuilt from source and re-installed the 3.2.22 binding and now the issue has gone away on the mac.

may be the repo has a older build.

It would be good to get the repo refreshed. I am trying to introduce F# / Xamarin to a larger audience and making it work smoothly out of the box will help me greatly.
Comment 7 fwaris 2014-02-01 09:33:06 UTC
rebuilding from source also fixed the issue on windows.

I tried to uninstall and reinstall the binding from Add-In manager but that did not fix the issue.
Comment 8 fwaris 2014-02-15 09:04:10 UTC
With the latest release this bug is gone but unfortunately there is a new one.
Comment 9 Lluis Sanchez 2014-02-20 04:52:01 UTC
Comment 10 Nischal 2014-03-14 02:11:53 UTC
We have checked "Send line to F# interactive" and not encountering any issues.

Environment Info:
Xamarin Studio
Version 4.2.4 (build 281)
Build Information
Git revision: e821d7c380e5021186257eeb713563d40718acd6
Xamarin addins: 6a826d371cd19272692cf5199503370f2ebbd588