atom-community / atom-script

:runner: Run ( scripts | selections | source ) in Atom
https://atom.io/packages/script
MIT License
734 stars 269 forks source link

Uncaught TypeError: Cannot read property 'indexOf' of undefined #2681

Open Nath1707 opened 2 years ago

Nath1707 commented 2 years ago

Prerequisites

Description

Steps to Reproduce

Expected behavior:

Actual behavior:

Versions

Atom: 1.60.0 x64 Electron: 9.4.4 OS: Microsoft Windows 10 Pro N Thrown From: script package 3.32.2

Stack Trace

Uncaught TypeError: Cannot read property 'indexOf' of undefined

At C:\Users\anubh\.atom\packages\script\lib\runner.js:201

TypeError: Cannot read property 'indexOf' of undefined
    at Runner.getProjectPath (/packages/script/lib/runner.js:201:20)
    at Runner.getCwd (/packages/script/lib/runner.js:85:22)
    at Runner.options (/packages/script/lib/runner.js:142:17)
    at Runner.run (/packages/script/lib/runner.js:26:26)
    at Runtime.execute (/packages/script/lib/runtime.js:83:17)
    at HTMLElement.scriptRun (/packages/script/lib/script.js:104:35)
    at CommandRegistry.handleCommandEvent (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:352694)
    at KeymapManager.dispatchCommandEvent (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:1228469)
    at KeymapManager.handleKeyboardEvent (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:1224603)
    at WindowEventHandler.handleDocumentKeyEvent (~/AppData/Local/atom/app-1.60.0/resources/app/static/<embedded>:11:286682)

Commands

     -6:24.1.0 script:run (input.hidden-input)
     -6:05.7.0 editor:consolidate-selections (input.hidden-input)
     -6:05.7.0 core:cancel (input.hidden-input)
     -4:34.4.0 script:run (input.hidden-input)
     -4:23 editor:consolidate-selections (input.hidden-input)
     -4:23 core:cancel (input.hidden-input)
     -3:39.6.0 script:run (input.hidden-input)
     -2:08.0 script:close-view (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -0:47.2.0 script:run (input.hidden-input)
     -0:43.2.0 editor:consolidate-selections (input.hidden-input)
     -0:43.2.0 core:cancel (input.hidden-input)
     -0:36.1.0 pane:show-next-recently-used-item (input.hidden-input)
     -0:35.8.0 pane:move-active-item-to-top-of-stack (div.package-detail)
     -0:25.9.0 pane:show-next-recently-used-item (input#script.escapeConsoleOutput.input-checkbox)
     -0:25.6.0 pane:move-active-item-to-top-of-stack (input.hidden-input)
     -0:23.6.0 script:run (input.hidden-input)

Non-Core Packages

atom-python-run 0.9.7 
default-language 0.3.1 
ide-html 0.7.0 
script 3.32.2 

Additional Information