Skip to content

Weird crash with (try ...).get(OrElse) in LambdaLift #20

@ochafik

Description

@ochafik

The following code snippet breaks the hell out of Scalaxy/Streams (symbol foo ends up not found in LambdaLift, despite seemingly having the proper owner chain):

val msg = {
  try {
    val foo = 10
    Some(foo)
  } catch {
    case ex: Throwable => None
  }
} get;
msg

It is currently mitigated by skipping any streams with a Try subtree, as detected by Strategies.hasKnownLimitationOrBug (see fe8531b), but a proper fix is needed to replace this broad hack.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions