cloud9-livecoffee-ext icon indicating copy to clipboard operation
cloud9-livecoffee-ext copied to clipboard

has no method 'source_line_mappings'

Open aponxi opened this issue 11 years ago • 3 comments

I get the following output when I hit ctrl+K

Object function (coffee_lines, js_lines) {
      var create_match_for_prior_comment_lines, cs_line, curr_cs_line, curr_js_line, find_js_match, js_line, line, line_matcher, matches, _i, _len;
      curr_cs_line = 0;
      curr_js_line = 0;
      matches = [];
      find_js_match = function(line_matcher) {
        var k, _i, _ref;
        for (k = _i = curr_js_line, _ref = js_lines.length; curr_js_line <= _ref ? _i < _ref : _i > _ref; k = curr_js_line <= _ref ? ++_i : --_i) {
          if (line_matcher(js_lines[k])) {
            return k;
          }
        }
        return null;
      };
      create_match_for_prior_comment_lines = function(cs_line, js_line) {
        var first_comment_line;
        first_comment_line = cs_line;
        while (curr_cs_line <= first_comment_line - 1 && is_comment_line(coffee_lines[first_comment_line - 1])) {
          first_comment_line -= 1;
        }
        if (first_comment_line < cs_line) {
          return matches.push([first_comment_line, js_line]);
        }
      };
      for (cs_line = _i = 0, _len = coffee_lines.length; _i < _len; cs_line = ++_i) {
        line = coffee_lines[cs_line];
        line_matcher = get_line_matcher(line);
        if (line_matcher) {
          js_line = find_js_match(line_matcher);
          if ((js_line != null) && curr_js_line < js_line) {
            create_match_for_prior_comment_lines(cs_line, js_line);
            matches.push([cs_line, js_line]);
            curr_cs_line = cs_line;
            curr_js_line = js_line;
          }
        }
      }
      matches.push([coffee_lines.length, js_lines.length]);
      return matches;
    } has no method 'source_line_mappings'

Am I missing something in configuration? I am using the c9.io host as my workspace and I installed the extension as written in the guide.

The file I was trying to view live only contains the following code, in case that is of importance:

class Tag
  constructor: (@name) ->

aponxi avatar Dec 22 '12 14:12 aponxi

i have the same problem

webstrap avatar Jan 24 '13 12:01 webstrap

@aponxi @webblow - Apologies, I no longer maintain this as I don't use Cloud9, but I suspect they have changed their addon API again recently. Might be worth contacting them.

tanepiper avatar Jan 24 '13 12:01 tanepiper

@tanepiper thanks for the info :) np

aponxi avatar Jan 24 '13 18:01 aponxi