<p dir="auto">Tried building Atom on Windows (8.1) after a long time and ran into some problems with the latest master version (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/atom/atom/commit/98d3646fee7e22e5731058457e19976ab3139377/hovercard" href="https://github.com/atom/atom/commit/98d3646fee7e22e5731058457e19976ab3139377"><tt>98d3646</tt></a>).</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\atom [master]&gt; script/build
Node: v0.12.2
npm: v2.7.4
Python: v2.7.7
Installing build modules...
Installing apm...
child_process: customFds option is deprecated, use stdio instead.
child_process: customFds option is deprecated, use stdio instead.
child_process: customFds option is deprecated, use stdio instead.
child_process: customFds option is deprecated, use stdio instead.
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\atom\build\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command &quot;node&quot; &quot;C:\\atom\\build\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js&quot; &quot;rebuild&quot;
gyp ERR! cwd C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv &quot;node&quot; &quot;C:\\atom\\build\\node_modules\\npm\\bin\\npm-cli.js&quot; &quot;--userconfig=C:\\atom\\build\\.npmrc&quot; &quot;--target=0.10.35&quot; &quot;install&quot; &quot;--loglevel&quot; &quot;error&quot;
npm ERR! node v0.12.2
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! chromium-pickle@0.1.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the chromium-pickle@0.1.4 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the chromium-pickle package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls chromium-pickle
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\atom\apm\npm-debug.log"><pre class="notranslate"><code class="notranslate">C:\atom [master]&gt; script/build
Node: v0.12.2
npm: v2.7.4
Python: v2.7.7
Installing build modules...
Installing apm...
child_process: customFds option is deprecated, use stdio instead.
child_process: customFds option is deprecated, use stdio instead.
child_process: customFds option is deprecated, use stdio instead.
child_process: customFds option is deprecated, use stdio instead.
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\atom\build\node_modules\npm\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\atom\\build\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "node" "C:\\atom\\build\\node_modules\\npm\\bin\\npm-cli.js" "--userconfig=C:\\atom\\build\\.npmrc" "--target=0.10.35" "install" "--loglevel" "error"
npm ERR! node v0.12.2
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! chromium-pickle@0.1.4 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the chromium-pickle@0.1.4 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the chromium-pickle package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls chromium-pickle
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\atom\apm\npm-debug.log
</code></pre></div>
<p dir="auto">Since that doesn't really tell me why <code class="notranslate">node-gyp rebuild</code> bailed, I ran the command manually in that directory:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle [master]&gt; node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@1.0.3
gyp info using node@0.12.2 | win32 | x64
gyp info spawn python
gyp info spawn args [ 'C:\\Users\\izuzak\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-G',
gyp info spawn args   'msvs_version=auto',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\atom\\apm\\node_modules\\atom-package-manager\\node_modules\\asar-require\\node_modules\\asar\\node_modules\\chromium-pickle\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\izuzak\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\izuzak\\.node-gyp\\0.12.2\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\izuzak\\.node-gyp\\0.12.2',
gyp info spawn args   '-Dmodule_root_dir=C:\\atom\\apm\\node_modules\\atom-package-manager\\node_modules\\asar-require\\node_modules\\asar\\node_modules\\chromium-pickle',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\atom\\apm\\node_modules\\atom-package-manager\\node_modules\\asar-require\\node_modules\\asar\\node_modules\\chromium-pickle\\build',
gyp info spawn args   '-Goutput_dir=.' ]
Warning: Missing input files:
C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle\node_modules\native-mate\tests\compilation.cc
gyp info spawn msbuild
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the &quot;/m&quot; switch.
  dynamic_annotations.c src\base\third_party\dynamic_annotations\dynamic_annotations.c(38): fatal error C1081: 'c:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle\node_modules\native-mate\vendor\base-minimal\src\base\third_party\dynamic_annotations\base\third_party\dynamic_annotations\dynamic_annotations.h': file name too long [C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle\node_modules\native-mate\vendor\base-minimal\base.vcxproj] native_mate.vcxproj -&gt; C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle\build\Release\\native_mate.lib
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\izuzak\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command &quot;node&quot; &quot;C:\\Users\\izuzak\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js&quot; &quot;rebuild&quot;
gyp ERR! cwd C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok"><pre class="notranslate"><code class="notranslate">C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle [master]&gt; node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@1.0.3
gyp info using node@0.12.2 | win32 | x64
gyp info spawn python
gyp info spawn args [ 'C:\\Users\\izuzak\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'msvs',
gyp info spawn args   '-G',
gyp info spawn args   'msvs_version=auto',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\atom\\apm\\node_modules\\atom-package-manager\\node_modules\\asar-require\\node_modules\\asar\\node_modules\\chromium-pickle\\build\\config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\izuzak\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   'C:\\Users\\izuzak\\.node-gyp\\0.12.2\\common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=C:\\Users\\izuzak\\.node-gyp\\0.12.2',
gyp info spawn args   '-Dmodule_root_dir=C:\\atom\\apm\\node_modules\\atom-package-manager\\node_modules\\asar-require\\node_modules\\asar\\node_modules\\chromium-pickle',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'C:\\atom\\apm\\node_modules\\atom-package-manager\\node_modules\\asar-require\\node_modules\\asar\\node_modules\\chromium-pickle\\build',
gyp info spawn args   '-Goutput_dir=.' ]
Warning: Missing input files:
C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle\node_modules\native-mate\tests\compilation.cc
gyp info spawn msbuild
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args   '/clp:Verbosity=minimal',
gyp info spawn args   '/nologo',
gyp info spawn args   '/p:Configuration=Release;Platform=x64' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  dynamic_annotations.c src\base\third_party\dynamic_annotations\dynamic_annotations.c(38): fatal error C1081: 'c:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle\node_modules\native-mate\vendor\base-minimal\src\base\third_party\dynamic_annotations\base\third_party\dynamic_annotations\dynamic_annotations.h': file name too long [C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle\node_modules\native-mate\vendor\base-minimal\base.vcxproj] native_mate.vcxproj -&gt; C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle\build\Release\\native_mate.lib
gyp ERR! build error
gyp ERR! stack Error: `msbuild` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (C:\Users\izuzak\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Windows_NT 6.3.9600
gyp ERR! command "node" "C:\\Users\\izuzak\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd C:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
</code></pre></div>
<p dir="auto">Notice the path which is reported as too long:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="c:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle\node_modules\native-mate\vendor\base-minimal\src\base\third_party\dynamic_annotations\base\third_party\dynamic_annotations\dynamic_annotations.h"><pre class="notranslate"><code class="notranslate">c:\atom\apm\node_modules\atom-package-manager\node_modules\asar-require\node_modules\asar\node_modules\chromium-pickle\node_modules\native-mate\vendor\base-minimal\src\base\third_party\dynamic_annotations\base\third_party\dynamic_annotations\dynamic_annotations.h
</code></pre></div>
<p dir="auto">That path is over 264 characters long = too long. I see the same error if I open base-minimal project in VS Studio Express and trigger a build.</p>
<p dir="auto">I tried building an older version of Atom (e.g. Atom 0.192.0), and that took me past building apm and past installing packages, all the way to <a href="https://github.com/atom/atom/issues/6415" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/6415/hovercard">this error</a>. But that's another problem, and makes me believe this problem was introduced after 0.192.0. Also, I just tried cloning <a href="https://github.com/atom/node-chromium-pickle">https://github.com/atom/node-chromium-pickle</a> to a folder closer to the root and running <code class="notranslate">npm install</code> in that folder and that worked just fine -- no long file name problems.</p>
<p dir="auto">Anyone else seeing the problem above when building the latest master on Windows?  /cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kevinsawicki/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kevinsawicki">@kevinsawicki</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zcbenz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zcbenz">@zcbenz</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/paulcbetts/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/paulcbetts">@paulcbetts</a> Perhaps somehow related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="67220153" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/6313" data-hovercard-type="pull_request" data-hovercard-url="/atom/atom/pull/6313/hovercard" href="https://github.com/atom/atom/pull/6313">#6313</a>?</p>
<p dir="auto">Possible cause of problems: that path above which is reported as too long looks very suspicious as well. Notice the duplicated <code class="notranslate">base\third_party\dynamic_annotations</code> part in the path near the end. As far as I can tell, that's happening <a href="https://github.com/zcbenz/base-minimal/blob/383005fc9673e8f603cffc7ae653a74d160f9d07/src/base/third_party/dynamic_annotations/dynamic_annotations.c#L38">here</a>. Notice that <code class="notranslate">dynamic_annotations.h</code> and <code class="notranslate">dynamic_annotations.c</code> are actually in the same folder. After I changed that line from:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#include &quot;base/third_party/dynamic_annotations/dynamic_annotations.h&quot;"><pre class="notranslate"><code class="notranslate">#include "base/third_party/dynamic_annotations/dynamic_annotations.h"
</code></pre></div>
<p dir="auto">to</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#include &quot;dynamic_annotations.h&quot;"><pre class="notranslate"><code class="notranslate">#include "dynamic_annotations.h"
</code></pre></div>
<p dir="auto">I was able to build chromium-pickle without the long file name problems.</p>
<p dir="auto">if it is intended to be used as a text edior ,and i think it is, it takes really long time to atom get opened.</p>
<p dir="auto">I mean, to edit a simple text file; i can open tens of leafpad instances until atom gets started.</p>
<p dir="auto">I do not expect it to be as fast as leafpad but it should not be slower than sublime.</p>