Coder Social home page Coder Social logo

Comments (8)

kriscross07 avatar kriscross07 commented on June 11, 2024

Open command prompt and enter g++ --version and paste the output.

from atom-gpp-compiler.

toadicus avatar toadicus commented on June 11, 2024
>g++ --version
g++ (GCC) 4.9.3
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

from atom-gpp-compiler.

kriscross07 avatar kriscross07 commented on June 11, 2024

In Atom, press Ctrl + Alt + i (I think it's that in Windows, it's Ctrl + Shift + i on Linux) and click on the Console tab, and paste require("child_process").spawn("g++", ["--version"]).stdout.on("data", (data) => {console.log(data.toString());});, then enter require("child_process").exec("g++ --version").stdout.on("data", (data) => {console.log(data.toString());});.
What do those output?

from atom-gpp-compiler.

toadicus avatar toadicus commented on June 11, 2024
require("child_process").spawn("g++", ["--version"]).stdout.on("data", (data) => { console.log(data.toString());});
Socket {_connecting: false, _hadError: false, _handle: Pipe, _parent: null, _host: null…}
events.js:141 Uncaught Error: spawn g++ ENOENTexports._errnoException @ util.js:856ChildProcess._handle.onexit @ internal/child_process.js:178onErrorNT @ internal/child_process.js:344doNTCallback2 @ node.js:465_tickCallback @ node.js:379
require("child_process").exec("g++ --version").stdout.on("data", (data) => {console.log(data.toString());});
Socket {_connecting: false, _hadError: false, _handle: Pipe, _parent: null, _host: null…}

from atom-gpp-compiler.

kriscross07 avatar kriscross07 commented on June 11, 2024

This seems like an issue with Node.js. What happens if you move C:\MinGW\bin to the beginning of %PATH%?

from atom-gpp-compiler.

toadicus avatar toadicus commented on June 11, 2024

Moving the path to the beginning had no effect. Though, I had to do that from the command line (Windows' normal tools don't let you do that) and I don't actually know if that applied to the atom process when I ran it. I did launch it from the same command window, but who knows.

from atom-gpp-compiler.

toadicus avatar toadicus commented on June 11, 2024

So, I think I may have found the issue, but I'm perplexed as to how to resolve it. In the atom console, I printed the path and got this:

> process.env.PATH
< "C:\Python35;;/usr/local/bin;/usr/bin;/bin;/usr/sbin;/sbin"

from atom-gpp-compiler.

toadicus avatar toadicus commented on June 11, 2024

I may have resolved the issue by completely uninstalling atom, deleting all of its leftovers, and reinstalling. Closing this for now; thanks for the support!

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.