31i73 / atom-dbg

An Atom package - An interactive debugger frontend
https://atom.io/packages/dbg
MIT License
30 stars 4 forks source link

Uncaught Callback must be a function #46

Open petoknm opened 5 years ago

petoknm commented 5 years ago

[Enter steps to reproduce:]

  1. Try to save a debug config

Atom: 1.37.0 x64 Electron: 4.1.4 OS: linux 5.1.3-arch1-1-ARCH Thrown From: dbg package 1.6.3

Stack Trace

Uncaught Callback must be a function

At fs.js:129

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
    at maybeCallback (fs.js:129:9)
    at Object.writeFile (fs.js:1137:14)
    at ReadFileContext.callback (/packages/dbg/lib/ConfigManager.coffee:149:7)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:235:13)

Commands

     -8:36.9.0 dbg:custom-debug (span.name.icon.icon-file-text)
     -8:34.2.0 core:paste (input.hidden-input)
     -8:04.6.0 dbg:custom-debug (span.name.icon.icon-file-text)
     -8:02.1.0 core:paste (input.hidden-input)
     -8:00.3.0 core:backspace (input.hidden-input)
     -0:12.7.0 dbg:custom-debug (span.name.icon.icon-file-text)
     -0:10.4.0 core:paste (input.hidden-input)
     -0:08.4.0 core:backspace (input.hidden-input)

Non-Core Packages

atom-ide-ui 0.13.0 
busy-signal 2.0.1 
dbg 1.6.3 
dbg-gdb 1.7.8 
git-blame 1.8.0 
hyperclick 0.0.0 
ide-rust 0.20.2 
intentions 1.1.5 
language-docker 1.1.8 
language-haskell 1.18.0 
language-kotlin 0.5.0 
language-latex 1.2.0 
language-rust 0.4.12 
language-scala 1.1.10 
language-scheme 1.4.0 
language-verilog 0.4.0 
language-vhdl 0.7.2 
linter 2.3.0 
linter-ui-default 1.7.1 
nord-atom-syntax 0.9.1 
nord-atom-ui 0.11.0 
on-save 2.2.1 
output-panel 0.3.4 
pdf-view 0.71.0 
rustfmt 0.1.3 
sort-lines 0.19.0 
woowu commented 5 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.39.1 x64 Electron: 3.1.10 OS: Ubuntu 19.04 Thrown From: dbg package 1.6.3

Stack Trace

Uncaught Callback must be a function

At fs.js:157

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
    at maybeCallback (fs.js:157:9)
    at Object.fs.writeFile (fs.js:1290:14)
    at ReadFileContext.callback (/packages/dbg/lib/ConfigManager.coffee:149:7)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:352:13)

Commands

     -0:16.7.0 dbg:pause-continue (atom-pane.pane.active)

Non-Core Packages

dbg 1.6.3 
dbg-gdb 1.7.8 
output-panel 0.3.4 
dcfreire commented 5 years ago

[Enter steps to reproduce:]

  1. Select executable
  2. Press save

Atom: 1.39.1 x64 Electron: 3.1.10 OS: "Manjaro Linux" Thrown From: dbg package 1.6.3

Stack Trace

Uncaught Callback must be a function

At fs.js:157

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
    at maybeCallback (fs.js:157:9)
    at Object.fs.writeFile (fs.js:1290:14)
    at ReadFileContext.callback (/packages/dbg/lib/ConfigManager.coffee:149:7)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:352:13)

Commands

     -2:45.7.0 atom-gdb-debugger:connect (atom-workspace.workspace.scrollbars-visible-always.theme-gruvbox.theme-gruvbox-dark-ui)
  6x -2:43.6.0 atom-gdb-debugger:interrupt (atom-workspace.workspace.scrollbars-visible-always.theme-gruvbox.theme-gruvbox-dark-ui)
     -2:35.5.0 debugger:show (atom-workspace.workspace.scrollbars-visible-always.theme-gruvbox.theme-gruvbox-dark-ui)
 15x -2:32.7.0 atom-gdb-debugger:interrupt (atom-workspace.workspace.scrollbars-visible-always.theme-gruvbox.theme-gruvbox-dark-ui)
     -2:17.2.0 atom-gdb-debugger:toggle-cli (input.hidden-input)
     -2:10.1.0 core:backspace (input.hidden-input)
     -2:09.6.0 autocomplete-plus:cancel (input.hidden-input)
     -1:39.5.0 atom-gdb-debugger:interrupt (atom-workspace.workspace.scrollbars-visible-always.theme-gruvbox.theme-gruvbox-dark-ui)
     -1:38.9.0 atom-gdb-debugger:configure (atom-workspace.workspace.scrollbars-visible-always.theme-gruvbox.theme-gruvbox-dark-ui)
     -1:30.8.0 atom-gdb-debugger:connect (atom-workspace.workspace.scrollbars-visible-always.theme-gruvbox.theme-gruvbox-dark-ui)
     -1:28.4.0 atom-gdb-debugger:disconnect (atom-workspace.workspace.scrollbars-visible-always.theme-gruvbox.theme-gruvbox-dark-ui)
     -1:27.6.0 atom-gdb-debugger:configure (atom-workspace.workspace.scrollbars-visible-always.theme-gruvbox.theme-gruvbox-dark-ui)
     -1:18 debugger:show (atom-workspace.workspace.scrollbars-visible-always.theme-gruvbox.theme-gruvbox-dark-ui)
 10x -1:14.9.0 atom-gdb-debugger:interrupt (atom-workspace.workspace.scrollbars-visible-always.theme-gruvbox.theme-gruvbox-dark-ui)
     -1:09.7.0 deprecation-cop:view (atom-workspace.workspace.scrollbars-visible-always.theme-gruvbox.theme-gruvbox-dark-ui)
     -0:13.5.0 dbg:custom-debug (li.file.entry.list-item.selected)

Non-Core Packages

atom-beautify 0.33.4 
atom-ide-debugger-python 0.7.3 
atom-ide-ui 0.13.0 
autocomplete-elixir 1.5.16 
build 0.70.0 
build-elixir 0.7.0 
busy-signal 2.0.1 
city-lights-ui 1.5.3 
dbg 1.6.3 
dbg-gdb 1.7.8 
file-icons 2.1.34 
framer-ui 2.0.0 
gruvbox 1.0.7 
gruvbox-dark-ui 1.1.0 
Hydrogen 2.10.3 
ide-cpp 0.1.0 
ide-elixir 0.2.25 
ide-python 1.4.2 
intentions 1.1.5 
language-elixir 0.22.1 
language-lua 0.9.11 
linter 2.3.1 
linter-clang 4.1.2 
linter-elixirc 1.7.0 
linter-lua 2.0.0 
linter-pylama 0.10.1 
linter-ui-default 1.7.1 
local-history 4.3.1 
minimap 4.29.9 
monokai 0.24.0 
output-panel 0.3.4 
python-tools 0.6.9 
seti-ui 1.11.0 
termination 0.7.4 
ur4ltz commented 5 years ago

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.40.1 x64 Electron: 3.1.10 OS: "openSUSE Leap Thrown From: dbg package 1.6.3

Stack Trace

Uncaught Callback must be a function

At fs.js:157

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
    at maybeCallback (fs.js:157:9)
    at Object.fs.writeFile (fs.js:1290:14)
    at ReadFileContext.callback (/packages/dbg/lib/ConfigManager.coffee:149:7)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:352:13)

Commands

  2x -9:43.7.0 dbg:pause-continue (input.hidden-input)
  6x -9:15.9.0 core:move-down (input.hidden-input)
  2x -9:13.7.0 core:move-up (input.hidden-input)
  7x -9:11 core:move-down (input.hidden-input)
     -9:09.2.0 core:confirm (input.hidden-input)
     -8:56.5.0 core:save (input.hidden-input)
  2x -3:12.4.0 dbg:pause-continue (input.hidden-input)
     -1:56.7.0 dbg:custom-debug (button.btn.icon.icon-playback-play)

Non-Core Packages

autocomplete-lua 0.9.2 
dbg 1.6.3 
dbg-lua 0.3.0 
gruvbox-plus-syntax 1.3.1 
language-lua 0.9.11 
language-lua-plus 1.7.0 
thrifty-txt commented 4 years ago

[Enter steps to reproduce:

  1. Right click on an executable.
  2. Try to save debug configuration with arguments included, debugger set to automatic.

Atom: 1.43.0 x64 Electron: 4.2.7 OS: linux 5.5.2-gentoo-x86_64 Thrown From: dbg package 1.6.3

Stack Trace

Uncaught Callback must be a function

At fs.js:129

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
    at maybeCallback (fs.js:129:9)
    at Object.writeFile (fs.js:1137:14)
    at ReadFileContext.callback (/packages/dbg/lib/ConfigManager.coffee:149:7)
    at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:235:13)

Commands

     -2:48.3.0 dbg:custom-debug (span.name.icon.icon-file-text)
     -2:35.6.0 core:backspace (input.hidden-input)
     -1:36.3.0 core:cancel (button.btn.icon.icon-playback-play)
     -0:56 dbg:custom-debug (span.name.icon.icon-file-text)
     -0:44.2.0 core:backspace (input.hidden-input)

Non-Core Packages

atom-material-syntax 1.0.8 
atom-material-ui 2.1.3 
build 0.70.0 
busy-signal 2.0.1 
dbg 1.6.3 
dbg-gdb 1.7.8 
git-plus 8.7.1 
intentions 1.1.5 
linter 2.3.1 
linter-clang 4.1.2 
linter-ui-default 1.8.1 
output-panel 0.3.4 
platformio-ide-terminal 2.10.0 
script 3.25.0 
vim-mode-plus 1.36.4 
maxsupermanhd commented 4 years ago

100% reproducible. Wontfix?

papyDoctor commented 4 years ago

in ~/.atom/packages/dbg/lib/ConfigManager.coffee:149:7 REPLACE fs.writeFile filename, data, 'utf8', WITH fs.writeFile filename, data, 'utf8', (error) -> console.error("Error writing file", error) if error

I'm NOT a developper, I've just googled a bit and see what is required for the fs.writeFile function