Building atom text editor from visual studio 2015


#1

I have been attempting to contribute to the atom text editor from the source code posted on github. I am in the process of building the application from the source code.

Here is some quick system information.

Operating System:
Windows 10(x64)

Result of command:
apm -v

apm  1.16.1
npm  3.10.5
node 6.9.5 x64
python 2.7.13
git 2.11.0.windows.3
visual studio 2015

I have ran the commands given by the atom documentation (windows build) and it has created an output file correctly.(commands are listed below)

cd C:\
git clone https://github.com/atom/atom.git
cd atom
script\build 

I have opened the atom folder as a website in visual studio 2015. Which I think is correct, but I am not entirely sure. Below is an image of my solution explorer in visual studio 2015. For the project atom, and it is opened as a website as previously stated.

image

Now as I attempt to build this application in visual studio(it states build sucessful), but I am receiving the error HTTP Error 403.14 - Forbidden(visual studios opens a local host). I followed the methods of Microsoft support website, but those solutions did not fix my error. I wanted to know if I should build the application as a website in visual studio. Could that be the cause of this error?

Other information:

Web.config contents:

<?xml version="1.0"?>
 <configuration>
 <system.web>
   <compilation debug="true" targetFramework="4.0"/>
 </system.web>
 </configuration>

#2

I don’t know anything about how Visual Studio “builds” websites, but I can’t imagine that it was designed with Atom in mind. You should probably stick with running script\build. Maybe Visual Studio has an embedded terminal that you can use so that you don’t have to leave the editor? I know that Atom does.


#3

Hi Scholar,
The script\build requires the out file to be empty so should every time I update code should i delete the out file? I just thought there would be an easier way to build. Also it takes forever to build even if you just made a small change to the code, and I think that is because it creates an executable file.


#4

out\ should be automatically cleared for you when running script\build: https://github.com/atom/atom/blob/071ee3a06076f67e7708f4fdeffe85ac0e9d89c6/script/lib/clean-output-directory.js

If you are constantly making changes to Atom core and want to test your changes quickly, you can run Atom in developer mode, which is much faster than rebuilding: atom --dev.


#5

Okay thank you @Wliu and @DamnedScholar


#6

Also one more thing @Wliu May I ask how you change the atom code? Do you use a text-editor or and IDE? Sorry If this is a silly question, I just want to know the best method for editing the code.


#7

I personally use Atom. You might be more comfortable with using something else though - everyone’s preferences vary.