Coder Social home page Coder Social logo

Comments (5)

kriscross07 avatar kriscross07 commented on June 11, 2024

Do you have the latest version of Atom?
Does disabling all other packages and restarting Atom fix this issue?
If not:

  • go into gpp-compiler's settings and enable the Debug Mode option
  • open the developer tools and click on Console
  • press F5 on the C/C++ file
  • right click on the console and click Save as...
  • reply with the saved file's contents

from atom-gpp-compiler.

nilabja-bhattacharya avatar nilabja-bhattacharya commented on June 11, 2024

-1474133533706.txt

My console log

from atom-gpp-compiler.

kriscross07 avatar kriscross07 commented on June 11, 2024

Either Atom changed their API, or you are using a package that is changing the file type to C++14. Have you tried disabling all other plugins? Which version of Atom do you have?

from atom-gpp-compiler.

nilabja-bhattacharya avatar nilabja-bhattacharya commented on June 11, 2024

I'm using Atom 1.10.2.
Yes, I'm using cpp14 package, should I disable it?
Sometimes compile and run works, sometimes it doesn't.
I'm facing this problem since I installed, packages-

  1. language-cpp14 and 2.linter-gcc

Previously I thought the root cause was linter-gcc, because disabling linter-gcc, wasn't throwing bad agrument, but I faced problem again later though I had my linter-gcc disabled.

Thank You Sir for helping me.. 👍

from atom-gpp-compiler.

trent0bri4n avatar trent0bri4n commented on June 11, 2024

Hi!, I was trying to use Atom to compile a simple "hello world" program just to see how it works but It gives me back this error:

internal/child_process.js:278
TypeError: Bad argument
at TypeError (native)
at ChildProcess.spawn (internal/child_process.js:278:26)
at Object.exports.spawn (child_process.js:384:9)
at compile (/Users/gourias/.atom/packages/gpp-compiler/index.js:274:31)
at compileFile (/Users/gourias/.atom/packages/gpp-compiler/index.js:216:5)
at atom-text-editor.gpp-compiler:compile (/Users/gourias/.atom/packages/gpp-compiler/index.js:23:11)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:259:29)
at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:59
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:584:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:379:22)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:106:36)
at HTMLDocument. (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:3:59)

I don't have any other community packages installed (no language-cpp14 or others - only gpp-compiler)

I'm running Atom on Mac OSX, and I've alredy installed "XCode Command Line Tools"

Any advise?

from atom-gpp-compiler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.