atom-community / atom-community/ide-python

Uncaught TypeError: invalid options argument

Open
#445 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
238
Forks
40
PR merge metrics
No merged PRs in 30d

Description

[Enter steps to reproduce:]

1. ...
2. ...

**Atom**: 1.58.0 x64
**Electron**: 9.4.4
**OS**: Ubuntu 20.04.3
**Thrown From**: 'ide-python' package vundefined

### Stack Trace

Uncaught TypeError: invalid options argument

```
At /home/morteza/.atom/packages/ide-python/node_modules/mkdirp/lib/opts-arg.js:13

TypeError: invalid options argument
at optsArg (/packages/ide-python/node_modules/mkdirp/lib/opts-arg.js:13:11)
at mkdirp (/packages/ide-python/node_modules/mkdirp/index.js:11:10)
at Object.save (/packages/save-session/lib/files.coffee:34:5)
at /packages/save-session/lib/files.coffee:67:24
```

### Commands

```
-1:45.1.0 snippets:next-tab-stop (input.hidden-input)
-1:45.1.0 snippets:expand (input.hidden-input)
-1:45.1.0 editor:indent (input.hidden-input)
-1:43.7.0 core:backspace (input.hidden-input)
```

### Non-Core Packages

```
advanced-open-file 0.16.8
atom-beautify 0.33.4
atom-ide-base 3.4.0
atom-ide-code-format 1.0.2
atom-ide-datatip 0.25.0
atom-ide-debugger-python 0.7.3
atom-ide-definitions 0.4.2
atom-ide-hyperclick 1.0.11
atom-ide-markdown-service 2.1.0
atom-ide-outline 3.2.0
atom-ide-signature-help 0.16.0
auto-update-plus 0.11.4
busy-signal 2.0.1
expose 0.15.0
file-icons 2.1.47
highlight-selected 0.17.0
Hydrogen 2.16.3
intentions 2.1.1
linter 3.4.0
linter-ui-default 3.4.1
minimap 4.40.0
minimap-highlight-selected 4.6.6
platformio-ide-terminal 2.10.1
python-debugger 0.2.0
python-indent 1.2.6
save-session 0.15.7
TabNine 4.0.7
```

Contributor guide

Open the contributing guide

Research direction

Start by examining the stack-trace locations in node_modules/mkdirp/lib/opts-arg.js, node_modules/mkdirp/index.js, and save-session/lib/files.coffee. The issue provides no usable reproduction steps, so first determine what save-session was doing when the invalid options argument occurred. Done means the cause is reproducible and the resulting behavior is verified without the uncaught TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
coffeescript, electron, javascript, python
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.