Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't respond or function on Edit 9.3.2 #3

Open
glennhefley opened this issue Feb 5, 2016 · 7 comments
Open

Doesn't respond or function on Edit 9.3.2 #3

glennhefley opened this issue Feb 5, 2016 · 7 comments

Comments

@glennhefley
Copy link

Does Not appear to work any longer as of Komodo Edit, version 9.3.2, build 16460, platform win32-x86. Will not search, and can't change the context (current file, opened files, active project) I'll download the source and try to compile it with this and see what happens.

@th3coop
Copy link
Member

th3coop commented Feb 15, 2016

Any luck @glennhefley ? can we be of any assistance?

@cmb69
Copy link

cmb69 commented Feb 20, 2016

Albeit having no previous experience developing Komodo extensions, I tried to give this a shot. The first problem I found is that the komodo-ui-loaded event doesn't seem to be triggered. Listening to the load event seems to work.

The next problem is that the ko.findresults API has obviously been changed for KomodoEdit 9. Formerly, ko.findresults.create() returned a manager object, but now it seems to rely on a callback. That breaks TodoSearcher.prototype.GetAndClearTheTodoTab (at least).

I'm already lost there, so any hints would be appreciated.

@glennhefley
Copy link
Author

I'm sorry for not getting back sooner. I concure on what cmb69 found, but have no clue after that, and didn't know what to look for until cmb pointed it out o.O -- so, yeah, I'm a lot of help here.

@Naatan
Copy link
Member

Naatan commented Feb 23, 2016

The next problem is that the ko.findresults API has obviously been changed for KomodoEdit 9. Formerly, ko.findresults.create() returned a manager object, but now it seems to rely on a callback. That breaks TodoSearcher.prototype.GetAndClearTheTodoTab (at least).

Can you link the the portion of code that you are looking to fix?

@cmb69
Copy link

cmb69 commented Feb 24, 2016

Can you link the the portion of code that you are looking to fix?

At least https://github.com/Komodo/Todo/blob/master/content/todo-ko7.js#L315-L317 would have to be fixed. ko.findresults.managers[id]can most likely be replaced by ko.findresults.getManager(id), but I don't know how to replace ko.findresults.create(id).

@Naatan
Copy link
Member

Naatan commented Feb 24, 2016

Thanks, that helps.

The issue is that findresults.create() has been changed to now be asynchronous. See: Komodo/KomodoEdit@5042536#diff-56e5180917856b95fc884fc3c9b9fdcfR95

So the code would simply have to be updated to support a callback parameter instead of getting the manager object from the return value.

@cmb69
Copy link

cmb69 commented Mar 3, 2016

Thanks, Naatan, and sorry for the delay. I've now managed to make the Todo extension working with current Komodo Edit 9.3nightly, but it's somewhat of a hack, and Komodo 8 and older won't be supported. I hope to find some time to improve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants