kopia lustrzana https://github.com/c9/core
Merge pull request +7617 from c9/fix/localfs
Set NODE_PATH via fsOptionspull/117/merge
commit
ef01bb068d
|
@ -65,9 +65,14 @@ function logToFile(message){
|
||||||
|
|
||||||
module.exports = function setup(fsOptions) {
|
module.exports = function setup(fsOptions) {
|
||||||
var pty;
|
var pty;
|
||||||
|
if (fsOptions.nodePath) {
|
||||||
|
process.env.NODE_PATH = fsOptions.nodePath;
|
||||||
|
require("module")._initPaths();
|
||||||
|
}
|
||||||
if (!fsOptions.nopty) {
|
if (!fsOptions.nopty) {
|
||||||
// on darwin trying to load binary for a wrong version crashes the process
|
// on darwin trying to load binary for a wrong version crashes the process
|
||||||
[process.env.HOME + "/.c9/node_modules/pty.js", "pty.js", "pty.nw.js"].some(function(p) {
|
[(fsOptions.nodePath || process.env.HOME + "/.c9/node_modules") + "/pty.js",
|
||||||
|
"pty.js", "pty.nw.js"].some(function(p) {
|
||||||
try {
|
try {
|
||||||
pty = require(p);
|
pty = require(p);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
"c9.ide.language.javascript.tern": "#2b0bb024da",
|
"c9.ide.language.javascript.tern": "#2b0bb024da",
|
||||||
"c9.ide.language.javascript.infer": "#cfec494a3c",
|
"c9.ide.language.javascript.infer": "#cfec494a3c",
|
||||||
"c9.ide.language.jsonalyzer": "#ba3e0d298c",
|
"c9.ide.language.jsonalyzer": "#ba3e0d298c",
|
||||||
"c9.ide.collab": "#a228af3bc9",
|
"c9.ide.collab": "#f38dcd432e",
|
||||||
"c9.ide.local": "#a9703b630c",
|
"c9.ide.local": "#a9703b630c",
|
||||||
"c9.ide.find": "#6cc6d3379d",
|
"c9.ide.find": "#6cc6d3379d",
|
||||||
"c9.ide.find.infiles": "#72582de3cd",
|
"c9.ide.find.infiles": "#72582de3cd",
|
||||||
|
|
Ładowanie…
Reference in New Issue