kriscross07 / atom-gpp-compiler

An atom package that allows you to compile and run C++ and C within the editor.
https://atom.io/packages/gpp-compiler
80 stars 228 forks source link

Uncaught TypeError: The "file" argument must be of type string. Received type undefined #415

Open ElmerGM opened 2 years ago

ElmerGM commented 2 years ago

Prerequisites

Description

Steps to Reproduce

Expected behavior:

Actual behavior:

Versions

Atom: 1.60.0 x64 Electron: 9.4.4 OS: Unknown Windows version Thrown From: gpp-compiler package 3.0.7

Stack Trace

Uncaught TypeError: The "file" argument must be of type string. Received type undefined

At internal/validators.js:112

TypeError [ERR_INVALID_ARG_TYPE] [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type undefined
    at validateString (internal/validators.js:112:11)
    at normalizeSpawnArguments (child_process.js:407:3)
    at Object.spawn (child_process.js:543:16)
    at compile (/packages/gpp-compiler/index.js:274:31)
    at compileFile (/packages/gpp-compiler/index.js:216:5)
    at /packages/gpp-compiler/index.js:27:11)
    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

  3x -2:41.1.0 core:backspace (input.hidden-input)
     -2:26.3.0 gpp-compiler:compile (input.hidden-input)
     -2:19.1.0 go-to-line:toggle (input.hidden-input)
     -2:13 core:save (input.hidden-input)
  3x -1:53.7.0 gpp-compiler:compile (input.hidden-input)
     -1:28 gpp-compiler:gdb (input.hidden-input)
     -1:26.1.0 grammar-selector:show (atom-text-editor.editor.is-focused)
     -1:13.5.0 gpp-compiler:compile (input.hidden-input)
  7x -1:13.1.0 gpp-compiler:gdb (input.hidden-input)
  2x -1:11.5.0 gpp-compiler:compile (input.hidden-input)
     -1:11.3.0 gpp-compiler:gdb (input.hidden-input)
     -1:11.1.0 gpp-compiler:compile (input.hidden-input)
     -1:11 gpp-compiler:gdb (input.hidden-input)
     -1:10.9.0 gpp-compiler:compile (input.hidden-input)
  2x -1:10.9.0 gpp-compiler:gdb (input.hidden-input)
     -0:54.7.0 gpp-compiler:compile (input.hidden-input)

Non-Core Packages

gpp-compiler 3.0.7 
seti-ui 1.11.0 

Additional Information