Bug 34392 - VBNC90019 when compiling lambda expressions using vb.net
Summary: VBNC90019 when compiling lambda expressions using vb.net
Status: RESOLVED UPSTREAM
Alias: None
Product: Compilers
Classification: Mono
Component: VisualBasic ()
Version: 4.0.0
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Rolf Bjarne Kvinge [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2015-09-29 10:26 UTC by fhbiii
Modified: 2018-05-22 12:25 UTC (History)
1 user (show)

Tags:
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 GitHub or Developer Community 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:
Status:
RESOLVED UPSTREAM

Description fhbiii 2015-09-29 10:26:56 UTC
I'm using monodevelop 5.9.6 under Ubuntu 14.04.  My target framework is .net 4/mono

Compiling a project that was started in VS2012, with working lambda expressions already in place.

even the simplest function will stop the compile.

Example:

Return String.Join("", Characters.Select(Function(c) c.Value))
crashed near this location in the source----------^


This example could easily be rebuilt using older methods like looping through the collection, but why?  How in the hell would I do sorting of a list of custom classes?  At some point the older methods become just too complex to write, without the being able to use Function(x)

Thanks -fhbiii
Comment 1 Rolf Bjarne Kvinge [MSFT] 2015-09-29 10:39:36 UTC
The VB compiler in Mono only supports VB8 (that's the version that came with VS 2005), which is why lambdas don't compile.

There is currently plans to update the VB compiler in the future; the best option for you is probably to compile on Windows and then copy any assemblies to where you need them.
Comment 2 fhbiii 2015-09-29 10:47:32 UTC
So linq, and Lambda are only supported in the c# compiler?
Comment 3 Rolf Bjarne Kvinge [MSFT] 2015-09-29 10:48:38 UTC
Correct.
Comment 4 fhbiii 2015-09-29 10:50:36 UTC
Ok, not the answer I was hoping for, but I guess I can stop beating my head against the screen.

Thanks.
Comment 5 Rolf Bjarne Kvinge [MSFT] 2018-05-22 12:25:53 UTC
Moved to: https://github.com/mono/mono-basic/issues/38