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

Rails tools are broken #1429

Closed
Defman21 opened this Issue May 8, 2016 · 9 comments

Comments

Projects
None yet
5 participants
@Defman21
Contributor

Defman21 commented May 8, 2016

Short Summary

When I try to run a tool in Rails Tools toolbox, I get this error:

[2016-05-08 19:00:30,779] [ERROR] run_functions: 
-- EXCEPTION START --
TypeError: editor.ko is undefined
+ stack
    Run_RunCommand@chrome://komodo/content/run/run_functions.js:382:13
    Run_RunCommand@chrome://komodo/content/run/run_functions.js:317:12
    __rails_init/this.runCommand@chrome://railstools/content/rails_init.js:329:1
    generateRailsObject@chrome://railstools/content/rails_init.js:484:5
    anonymous@chrome://komodo/content/project/peMacro.js line 696 > Function:2:5
    macro_evalAsJavascript@chrome://komodo/content/project/peMacro.js:701:151
    _executeMacro@chrome://komodo/content/project/peMacro.js:106:30
    macro_executeMacro@chrome://komodo/content/project/peMacro.js:50:20
    this.invoke_executeMacro@chrome://komodo/content/toolbox/toolbox2_command.js:85:5
    this.invokeTool@chrome://komodo/content/toolbox/toolbox2_command.js:972:5
    this.onDblClick@chrome://komodo/content/toolbox/toolbox2_command.js:1018:5
    ondblclick@chrome://komodo/content/toolbox/toolboxPanel.xul:1:1
-- EXCEPTION END --

Platform Information

Komodo Edit or IDE? IDE
Komodo Version? 10
Operating System (and version)? Ubuntu 16.04 /w Openbox

@Naatan Naatan added the Type: Bug label May 8, 2016

@Naatan Naatan added this to the 10.1 milestone May 8, 2016

@cgchoffman

This comment has been minimized.

Member

cgchoffman commented May 9, 2016

I'm getting other errors. Could you be more specific about what tool you're running @Defman21?

@Defman21

This comment has been minimized.

Contributor

Defman21 commented May 9, 2016

I don't remember. Probably "create new migration" or something like that.

@Defman21

This comment has been minimized.

Contributor

Defman21 commented May 9, 2016

Ahh no. It's Generators - Controller.

@cgchoffman

This comment has been minimized.

Member

cgchoffman commented May 9, 2016

OK thanks. Please make sure you're provide clear, specific reproduction steps. It makes our lives easier when we finally get to these issues.

@jwhulette

This comment has been minimized.

jwhulette commented Jun 16, 2016

I'm experiencing the same issue. Happens when trying to use any of the rails tools from the toolbox

[Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [koIPreferenceRoot.getStringPref]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: chrome://railstools/content/rails_init.js :: __rails_init/this.getRailsVersionInRange :: line 263" data: no]

Komodo Edit, version 10.0.0, build 17209, platform macosx.
Built on Wed May 11 22:00:40 2016.

@Naatan

This comment has been minimized.

Member

Naatan commented Jun 16, 2016

That is not the same issue, it is a different error. Please open a new bug and provide details on how to reproduce it.

@jwhulette

This comment has been minimized.

jwhulette commented Jun 20, 2016

I updated to 10.0.1, no more js error but now getting same error in log files:
[2016-06-20 08:41:17,401] [ERROR] run_functions:
-- EXCEPTION START --
TypeError: editor.ko is undefined

  • stack
    Run_RunCommand@chrome://komodo/content/run/run_functions.js:415:13
    Run_RunCommand@chrome://komodo/content/run/run_functions.js:350:12
    __rails_init/this.runCommand@chrome://railstools/content/rails_init.js:329:1
    generateRailsObject@chrome://railstools/content/rails_init.js:484:5
    anonymous@chrome://komodo/content/project/peMacro.js line 729 > Function:2:5
    macro_evalAsJavascript@chrome://komodo/content/project/peMacro.js:734:151
    _executeMacro@chrome://komodo/content/project/peMacro.js:139:30
    macro_executeMacro@chrome://komodo/content/project/peMacro.js:83:20
    this.invoke_executeMacro@chrome://komodo/content/toolbox/toolbox2_command.js:118:5
    this.invokeTool@chrome://komodo/content/toolbox/toolbox2_command.js:971:5
    this.onDblClick@chrome://komodo/content/toolbox/toolbox2_command.js:1017:5
    ondblclick@chrome://komodo/content/toolbox/toolboxPanel.xul:1:1
    -- EXCEPTION END --

When trying to use any userscript in the Rails Toolbox
Komodo Edit or IDE? IDE
Komodo Version? version 10.0.1, build 17276
Operating System (and version)? Mac OS X 10.10.5

fnp-mac00740:~ admin$ /usr/local/bin/ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin14]
fnp-mac00740:~ admin$ /usr/local/bin/rails -v
Rails 4.2.6

Ruby path is set in project preferences.

NOTE: My version of rails uses bin/rails to start the server. It appears the Rails toolbox looks in scripts/rails for Start Server. Not sure if this is affecting the other userscripts.

@mitchell-as

This comment has been minimized.

Member

mitchell-as commented Jun 20, 2016

It looks more or less like the same error mentioned in the original post for this ticket. Thanks for the extra data point.

@mitchell-as

This comment has been minimized.

Member

mitchell-as commented Jul 28, 2016

FYI the

[Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [koIPreferenceRoot.getStringPref]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: chrome://railstools/content/rails_init.js :: __rails_init/this.getRailsVersionInRange :: line 263" data: no]

error comes from not having Rails configured properly. (I had to point Komodo to my local rails installation.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment