CoffeeScript bugs in WebStorm 10

There are a couple bugs in WebStorm 10 with regards to CoffeeScript. Including:

"Unused parameter" warnings which are incorrect, for example:

Meteor.publish 'locations', (city) ->
  return Locations.find({origin: city})

The variable "city" is underlined and it says it's unused, even though that's not true.

Also, refactoring doesn't work in this situation either. If I select "city" and choose Refactor > Rename, it fails to rename the variable throughout the function. However, refactor/rename works fine in this case, if I wanted to rename "hello" to "goodbye":

myFunc = ->
  hello = 'hi'
  hello += '!'

1 comment

Please sign in to leave a comment.