From ab466b60c869a88c1dbd7038df84131082da5008 Mon Sep 17 00:00:00 2001 From: Garen Torikian Date: Wed, 22 May 2013 00:18:18 -0700 Subject: [PATCH] command in project.scan needs to resolve to the bin, not the lib file This is because nak was changed to also be run as a regular Node script, not just an executable --- src/app/project.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/project.coffee b/src/app/project.coffee index b8c023a46..edc4bc059 100644 --- a/src/app/project.coffee +++ b/src/app/project.coffee @@ -1,3 +1,4 @@ +Path = require 'path' fsUtils = require 'fs-utils' _ = require 'underscore' $ = require 'jquery' @@ -274,7 +275,7 @@ class Project readPath(line) if state is 'readingPath' readLine(line) if state is 'readingLines' - command = require.resolve('nak') + command = Path.resolve(require.resolve('nak'), '../../bin/nak') args = ['--hidden', '--ackmate', regex.source, @getPath()] ignoredNames = config.get('core.ignoredNames') ? [] args.unshift('--ignore', ignoredNames.join(',')) if ignoredNames.length > 0