atom-editor

Why python's versions differ when called from Terminal and from Atom

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-28 07:18:05
问题 When I run Python from the terminal and from Atom , different versions of python are called. As a consequence, there are packages that I can call without problems from the terminal but that I cannot call from Atom . Here are the details: When calling python from the terminal , I get version 3.7.1 $ python Python 3.7.1 | packaged by conda-forge | (default, Nov 13 2018, 09:50:42) [Clang 9.0.0 (clang-900.0.37)] :: Anaconda custom (64-bit) on darwin (I get exactly the same if I type python3

Why python's versions differ when called from Terminal and from Atom

你离开我真会死。 提交于 2019-12-28 07:16:08
问题 When I run Python from the terminal and from Atom , different versions of python are called. As a consequence, there are packages that I can call without problems from the terminal but that I cannot call from Atom . Here are the details: When calling python from the terminal , I get version 3.7.1 $ python Python 3.7.1 | packaged by conda-forge | (default, Nov 13 2018, 09:50:42) [Clang 9.0.0 (clang-900.0.37)] :: Anaconda custom (64-bit) on darwin (I get exactly the same if I type python3

How to configure Atom to run Python3 scripts?

血红的双手。 提交于 2019-12-27 17:41:07
问题 In my terminal, I type $ which python3 , outputting /opt/local/bin/python3 I would like to configure Atom to run Python3 scripts. In my Atom Config, I have runner: python: "/opt/local/bin/python3" However, if I run the following script in some script named filename.py , import sys print(sys.version) I get the following output: 2.7.11 (default, Feb 18 2016, 22:00:44) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] How exactly does one set up the PATH for Python3.x scripts to run

unknown type name 'class'

狂风中的少年 提交于 2019-12-25 07:49:11
问题 I'm creating a small library for several geometric shapes. Doing so, I'm writing down prototypes into a shapes.h file and the methods into a shapes.cpp file. This is the header: #ifndef __shapeslib #define __shapeslib class Shape{ protected: struct dimensions{ double heigth; double width; }; double radius; // for circle class to be inherited public: Shape(double heigth, double width); // Constructor Shape(const Shape & shape); // copy constructor for class ~Shape(); // Destructor virtual

npm does not work behind corporate proxy and launched from apm

╄→尐↘猪︶ㄣ 提交于 2019-12-25 07:45:03
问题 I'm having an issue with npm behind a proxy. npm install fails because npm can not git clone when launched from apm, which is weird because same command line out of apm works. npm ERR! Command failed: git -c core.longpaths=true fetch -a origin npm ERR! fatal: Unable to look up github.com (port 9418) (Unknown host.) .npmrc content proxy=http://proxy-xxx:8080 http-proxy=http://proxy-xxx:8080 https-proxy=http://proxy-xxx:8080 .gitconfig content [url "https://"] insteadOf = git:// [url "https:/

npm does not work behind corporate proxy and launched from apm

a 夏天 提交于 2019-12-25 07:44:14
问题 I'm having an issue with npm behind a proxy. npm install fails because npm can not git clone when launched from apm, which is weird because same command line out of apm works. npm ERR! Command failed: git -c core.longpaths=true fetch -a origin npm ERR! fatal: Unable to look up github.com (port 9418) (Unknown host.) .npmrc content proxy=http://proxy-xxx:8080 http-proxy=http://proxy-xxx:8080 https-proxy=http://proxy-xxx:8080 .gitconfig content [url "https://"] insteadOf = git:// [url "https:/

Emmet Conflict with Atom Autocompletion

旧街凉风 提交于 2019-12-25 01:33:43
问题 I am following this instructions (https://atom.io/packages/emmet) using Git Bash. The problem is the last step which is "npm install". It's said command not found. I can successfully install emmet in Atom editor, but the problem is it messes with the code autosuggestion, and when I press tab, it doesn't write what it ought to. See also this: https://github.com/emmetio/atom-plugin. 回答1: Apparently you don't have npm installed on your computer. You might want to read https://www.npmjs.com/get

Idris in atom editor, “Couldn't find Idris executable” error

Deadly 提交于 2019-12-24 21:04:15
问题 I am currently trying to download and use Idris for Atom and use it's editor. I downloaded Hackage and then installed idris on my computer from there and then installed the idris package on atom, and when ever I type in the program it highlights like Idris should, but when I type check it I am getting two errors, "Couldn't find idris executable: Couldn't find idris executable at "Idris"" and "The idris compiler was closed or crashed: It (probably) crashed with error code : -2". picture of the

C++ SFML with MinGW version 8.2.0 and Atom text editor

大憨熊 提交于 2019-12-24 19:08:15
问题 I am trying to learn to make 2d games using c++ with the SFML library. I am using windows, but I would prefer to use the Atom text editor instead of Visual Studio. I did a lot of research on how to do this, but I still do not know how to use the SFML library with Atom. So, how would I go about implementing the SFML library in my c++ project written in Atom. Thank you! 回答1: This answer supposes that you've downloaded the 32-bit MinGW version of SFML, and you'd like to compile programs written

How to use n-tier application development

。_饼干妹妹 提交于 2019-12-24 17:08:11
问题 I am a .net desktop app developer. I use c# and WPF. I used SQL Server as my database. Now I want to learn electron, node.js and would like to code in HTML, CSS and Javascript. Also, as everything mentioned above is open-source/free I would change my database as well. Now I will be using MySQL. In .net we were using n-tier application development. I know that n-tier application development is not specific to .net, so I think it's possible with electron, node.js, HTML, CSS, Javascript using