Comments (8)
Open command prompt and enter g++ --version
and paste the output.
from atom-gpp-compiler.
>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.
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.
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.
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.
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.
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.
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)
- Error plz consider :)
- Uncaught TypeError: Callback must be a function. Received undefined HOT 2
- Uncaught TypeError: The "file" argument must be of type string. Received undefined HOT 2
- issue during compiling showing this error
- visual studio
- gpp compiler failuer
- Uncaught Error: read ENOTCONN
- Uncaught TypeError: The "file" argument must be of type string. Received type undefined
- df
- new issue found
- pakage
- gcc could not be spawned HOT 2
- Uncaught TypeError: Cannot read property 'getGrammar' of undefined
- its not installed!
- Atom cannot install packages HOT 1
- Uncaught TypeError: Callback must be a function. Received undefined
- compiler is not installing
- Listing your package on Pulsar HOT 1
- Why am I seeing this message in the Terminal
- In python error in veriable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atom-gpp-compiler.