Project
Ruby
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Submitted
Assignee
Andrey Vokin
Subsystem
CoffeeScript
Affected versions
RubyMine 4.5 EAP (build 118.472)
Fixed in build
No Fixed in build
  • Created by   Jay Phillips
    3 months ago (03 Feb 2012 23:09)
  • Updated by   Jay Phillips
    3 days ago (22 May 2012 21:20)
 
RUBY-10358 Introduce Variable in CoffeeScript uses JavaScript syntax
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
I can show this by an example:

## Given this code:
blah = run(1,2,3,(somethingReallyComplex(x,y,z)))

## And I introduce this part of it: somethingReallyComplex(x,y,z) with the name "introducedVariable"
## I get this:

blah = run(1,2,3,(var introducedVariable = somethingReallyComplex(x,y,z);))

## The "var" statement is actually a syntax error in CoffeeScript and the ";" within the parens is also invalid
Comments (1)
 
History
 
Linked Issues (?)
 
Jay Phillips
  Jay Phillips
22 May 2012 21:03
3 days ago
This appears to be broken again in the latest 4.5 EAP.