Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 348539 - valid proc and lambda arguments flagged as syntax error
Summary: valid proc and lambda arguments flagged as syntax error
Status: CLOSED WONTFIX
Alias: None
Product: DLTK
Classification: Technology
Component: Ruby (show other bugs)
Version: 2.0   Edit
Hardware: All Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: dltk.ruby-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-07 07:13 EDT by eclbugs37 CLA
Modified: 2020-01-03 07:58 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description eclbugs37 CLA 2011-06-07 07:13:42 EDT
Build Identifier: 20110301-1815

The syntax checker does not properly handle procs or lambdas being passed to procs or lambdas. Specifically, it not appear to recognize the '&b' construct in the proc/lambda parameters.

org.eclipse.dltk.ruby version used is 1.0.0v20090615-1430 .


Reproducible: Always

Steps to Reproduce:
The following are all valid ruby but are flagged with a syntax error by eclipse:

  a = lambda { |a, &b| puts 'foo' }
  a = lambda { |*a, &b| puts 'foo' }
  a = lambda { |x, *a, &b| puts 'foo' }

Replace 'lambda' by 'proc' or 'Proc.new' for more examples.
Comment 1 eclbugs37 CLA 2011-06-07 07:30:06 EDT
Sorry, the probably more useful version is probably this:

  Dynamic Languages Toolkit - Ruby Development Tools	2.0.0.v20100505-1154-7G--E_EkMU3NHhvAUo0G	org.eclipse.dltk.ruby.feature.group
Comment 2 Dawid Pakula CLA 2020-01-03 07:58:15 EST
Ruby support has been removed.