Error "Could not load scripts from activestate.yaml"

OH I’m sorry, no, they are not. The only way to get this debug output to work is to edit the tool.js file referenced in the errors. Before we do that, can you confirm that the State Tool button in the UI is actually broken? That’s what those commands are attempting to do. All the steps I’ve had you do to see if the state tool integration is broken are showing that it’s working so I suspect that those errors are just red herrings.

See screenshot below. Click on that button and see if your scripts are listed and menu options like Add Script is present.


Capture

Confirm for me if those menu options are present when your project is open and active in Komodo.

  • Carey

Thanks for your help. The State Tool Button seems to work.
StateToolButton

@wblake, are you able to add a script then run it? When you add it, also confirm that it’s added to your activestate.yaml file.

Add a State Tool Script ? When I choose Add A Script the editor opens the activestate.yaml file and adds another script entry. I entered helloWorld.which already has previous entries.
If I then choose the menu option “Run command,” choose Activate, and provide the org/Project arguments a CMD.exe window opens and suggests things worked.


OH, Hmm, so those scripts don’t show up in that menu button though? Note in my screenshot that there are a bunch of additional menu items. Those are scripts in our AS.yaml file. If the scripts in your AS.yaml file are not showing up in that menu then let’s try the log.setLevel step then open that menu. Opening the menu should trigger at least some of failing commands you’re seeing in your logs at start up.

Thanks for your help.
Here’s the last few log updates:
2021-12-01 17:11:19,838] [ERROR] projectManager:
– EXCEPTION START –
TypeError: project is undefined

  • stack
    projectManager.prototype.revertProject@chrome://komodo/content/project/projectManager.js:702:9
    _view_checkDiskFiles@chrome://komodo/content/views.js:2836:25
    – EXCEPTION END –
    ERROR:xpcom:Unhandled exception calling ‘int8 * getIndexByPart(in nsISomething, out retval int32);’
    Traceback (most recent call last):
    File “C:\Program Files (x86)\ActiveState Komodo IDE 12\lib\mozilla\python\xpcom\server\policy.py”, line 303, in CallMethod
    return 0, func(*params)
    File “C:\Program Files (x86)\ActiveState Komodo IDE 12\lib\mozilla\components\koKPFTreeView.py”, line 575, in getIndexByPart
    return self._getIndexByPart(UnwrapObject(part))
    File “C:\Program Files (x86)\ActiveState Komodo IDE 12\lib\mozilla\components\koKPFTreeView.py”, line 565, in _getIndexByPart
    return nodes.index(part)
    File “C:\Program Files (x86)\ActiveState Komodo IDE 12\lib\mozilla\components\koProject.py”, line 1129, in repr
    len(self.children), self._attributes[“id”])
    AttributeError: ‘koProject’ object has no attribute ‘children’
    [2021-12-01 17:11:19,852] [ERROR] projectManager:
    – EXCEPTION START –
    [Exception… “Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [koIKPFTreeView.getIndexByPart]” nsresult: “0x80004005 (NS_ERROR_FAILURE)” location: “JS frame :: chrome://komodo/content/project/projectManager.js :: projectManager.prototype.closeProjectEvenIfDirty_SingleProjectView :: line 212” data: no]
  • toString (function) 3 lines
  • message (string) ‘Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [koIKPFTreeView.getIndexByPart]’
  • result (number) 2147500037
  • name (string) ‘NS_ERROR_FAILURE’
  • filename (string) ‘chrome://komodo/content/project/projectManager.js’
  • lineNumber (number) 212
  • columnNumber (number) 0
  • inner (object) null
    | + data (object) null
    | + stack (string) ‘projectManager.prototype.closeProjectEvenIfDirty_SingleProjectView@chrome://komodo/content/project/p’…386 chars
  • location (object) JS frame :: chrome://komodo/content/project/projectManager.js :: projectManager.prototype.closeProjectEvenIfDirty_SingleProjectView :: line 212
    | + QueryInterface (function) 3 lines
    | + language (number) 2
    | + languageName (string) ‘JavaScript’
    | + filename (string) ‘chrome://komodo/content/project/projectManager.js’
    | + name (string) ‘projectManager.prototype.closeProjectEvenIfDirty_SingleProjectView’
    | + lineNumber (number) 212
    | + columnNumber (number) 16
    | + sourceLine (string) ‘’
    | + caller (object) JS frame :: chrome://komodo/content/project/projectManager.js :: projectManager.prototype.closeProjectEvenIfDirty :: line 238
    | + formattedStack (string) ‘projectManager.prototype.closeProjectEvenIfDirty_SingleProjectView@chrome://komodo/content/project/p’…386 chars
    | + stack
    projectManager.prototype.closeProjectEvenIfDirty_SingleProjectView@chrome://komodo/content/project/projectManager.js:212:16
    projectManager.prototype.closeProjectEvenIfDirty@chrome://komodo/content/project/projectManager.js:238:0
    projectManager.prototype.revertProject@chrome://komodo/content/project/projectManager.js:697:8
    _view_checkDiskFiles@chrome://komodo/content/views.js:2836:24
    – EXCEPTION END –
    [2021-12-01 17:11:26,414] [DEBUG] tool.js: stateBin: C:\Users\wblake\AppData\Local\ActiveState\StateTool\release\bin\state.exe
    [2021-12-01 17:11:26,414] [DEBUG] tool.js: koFile.exists(stateBin): true
    [2021-12-01 17:11:26,415] [DEBUG] tool.js: koFile.isExecutable(stateBin): true
    [2021-12-01 17:11:26,417] [DEBUG] tool.js: koFile.onPath(stateBin): false
    [2021-12-01 17:14:00,053] [WARNING] console-logger: Unknown descriptor ‘font-display’ in @font-face rule. Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
    [2021-12-01 17:14:11,184] [ERROR] console-logger: TypeError: n is undefined (2) in chrome://komodo/content/contrib/commonjs/underscore.js:5
    Traceback (most recent call last):
    File “chrome://komodo/content/contrib/commonjs/underscore.js”, line 5, in

[2021-12-01 17:14:46,085] [DEBUG] tool.js: stateBin: C:\Users\wblake\AppData\Local\ActiveState\StateTool\release\bin\state.exe
[2021-12-01 17:14:46,085] [DEBUG] tool.js: koFile.exists(stateBin): true
[2021-12-01 17:14:46,085] [DEBUG] tool.js: koFile.isExecutable(stateBin): true
[2021-12-01 17:14:46,088] [DEBUG] tool.js: koFile.onPath(stateBin): false
[2021-12-01 17:15:05,210] [WARNING] console-logger: Unknown descriptor ‘font-display’ in @font-face rule. Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429
[2021-12-01 17:17:42,783] [DEBUG] tool.js: stateBin: C:\Users\wblake\AppData\Local\ActiveState\StateTool\release\bin\state.exe
[2021-12-01 17:17:42,785] [DEBUG] tool.js: koFile.exists(stateBin): true
[2021-12-01 17:17:42,785] [DEBUG] tool.js: koFile.isExecutable(stateBin): true
[2021-12-01 17:17:42,786] [DEBUG] tool.js: koFile.onPath(stateBin): false
[2021-12-01 17:17:44,288] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:361
[2021-12-01 17:17:44,289] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:366
[2021-12-01 17:17:44,447] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:361
[2021-12-01 17:17:44,447] [WARNING] console-logger: Empty string passed to getElementById(). (1) in chrome://global/content/bindings/richlistbox.xml:366
[2021-12-01 17:17:56,000] [WARNING] console-logger: Unknown descriptor ‘font-display’ in @font-face rule. Skipped to next declaration. (1) in less://komodo/skin/global/global.less:1429

Huh. Well that doesn’t make sense. I’m at a bit of a loss as to what’s going on here. I’d try te following and retest at each step:

  1. Restart Komodo in Safe Mode: Help menu > Troubleshooting > Restart in Safe Mode
  2. Re-install Komodo
  3. state update your state tool install in a CMD terminal (not in Komodo)
  • Carey

Thanks. No luck, errors still happen on startup. I will close out this thread and start another one on setup of Perl Language in Komodo for ActiveState Perl to replace Strawberry Perl. It seems to involve the State Tool.