Skip to content

frame editor: set_active_id - no leaf with id "baa2ffcd" #3568

Open
@haraldschilly

Description

@haraldschilly

for a *.c file:

firefox: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

smc_git_rev: 5fbcfd0

Date: 2019-02-11 13:06:23.432197

set_active_id - no leaf with id "baa2ffcd"

C</t.prototype.set_active_id@https://cocalc.com/static/smc-175fc602124e4d629368.cacheme.js?175fc602124e4d629368:5:251809
v</t.prototype.init_new_codemirror/<@https://cocalc.com/static/smc-175fc602124e4d629368.cacheme.js?175fc602124e4d629368:5:240400
nt@https://cocalc.com/static/0-175fc602124e4d629368.cacheme.js?175fc602124e4d629368:6:114117
gn@https://cocalc.com/static/0-175fc602124e4d629368.cacheme.js?175fc602124e4d629368:6:148109
Ca/</<@https://cocalc.com/static/0-175fc602124e4d629368.cacheme.js?175fc602124e4d629368:6:230368
_/e._wrapper@https://cocalc.com/static/smc-175fc602124e4d629368.cacheme.js?175fc602124e4d629368:5:701891
e.exports</ja.prototype.focus@https://cocalc.com/static/0-175fc602124e4d629368.cacheme.js?175fc602124e4d629368:6:248891
mn@https://cocalc.com/static/0-175fc602124e4d629368.cacheme.js?175fc602124e4d629368:6:147816
Wn@https://cocalc.com/static/0-175fc602124e4d629368.cacheme.js?175fc602124e4d629368:6:159899
Vn/</<@https://cocalc.com/static/0-175fc602124e4d629368.cacheme.js?175fc602124e4d629368:6:158170
Vn/<@https://cocalc.com/static/0-175fc602124e4d629368.cacheme.js?175fc602124e4d629368:6:157966
Vn/<@https://cocalc.com/static/0-175fc602124e4d629368.cacheme.js?175fc602124e4d629368:6:157890
Vn@https://cocalc.com/static/0-175fc602124e4d629368.cacheme.js?175fc602124e4d629368:6:157526
Yn/<@https://cocalc.com/static/0-175fc602124e4d629368.cacheme.js?175fc602124e4d629368:6:162015
_/e._wrapper@https://cocalc.com/static/smc-175fc602124e4d629368.cacheme.js?175fc602124e4d629368:5:701891


... I'll investigate where that breaks exactly

The obfuscated code breaks here:

"!==n.origin&&e.props.actions.exit_undo_mode()}),
this.cm.on("focus",
function(){e.props.actions.set_active_id(e.props.id),    <<<<<<<<<<<<<<<<<<<
e.style_active_line&&e.cm&&e.cm.setOption

which is in init_new_codemirror:


    this.cm.on("focus", () => {
      this.props.actions.set_active_id(this.props.id);
      if (this.style_active_line && this.cm) {
        this.cm.setOption("styleActiveLine", true);
      }
    });

Maybe just a bad timing?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions