atom-community / atom-community/atom-script
Uncaught TypeError: Cannot read property 'indexOf' of undefined
- Dominant language
- JavaScript
- Stars
- 730
- Forks
- 264
- PR merge metrics
- No merged PRs in 30d
Description
### Prerequisites
* [ ] Put an X between the brackets on this line if you have done all of the following:
* Reproduced the problem in Safe Mode:
* Followed all applicable steps in the debugging guide:
* Checked the FAQs on the message board for common solutions:
* Checked that your issue isn't already filed:
* Checked that there is not already an Atom package that provides the described functionality:
### Description
### Steps to Reproduce
1.
2.
3.
**Expected behavior:**
**Actual behavior:**
### Versions
**Atom**: 1.60.0 x64
**Electron**: 9.4.4
**OS**: Microsoft Windows 10 Pro N
**Thrown From**: [script](https://github.com/atom-ide-community/atom-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/:11:352694)
at KeymapManager.dispatchCommandEvent (~/AppData/Local/atom/app-1.60.0/resources/app/static/:11:1228469)
at KeymapManager.handleKeyboardEvent (~/AppData/Local/atom/app-1.60.0/resources/app/static/:11:1224603)
at WindowEventHandler.handleDocumentKeyEvent (~/AppData/Local/atom/app-1.60.0/resources/app/static/: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
Contributor guide
Assessment
This issue has not been assessed yet.