def write_to_cache(self): process = CrossPlatformProcess(self.working_dir) (stdout, stderr) = process.run_sync(r'node "%s/write_tasks_to_cache.js"' % self.settings.package_path()) if process.failed: try: self.write_to_cache_without_js() except: if process.returncode() == 127: raise Exception("\"node\" command not found.\nPlease be sure to have nodejs installed on your system and in your PATH (more info in the README).") elif stderr: self.log_errors(stderr) raise Exception("There was an error running gulp, make sure gulp is running correctly in your project.\nFor more info check the sublime-gulp.log file") return self.fetch_json()
def write_to_cache(self): process = CrossPlatformProcess(self.working_dir) (stdout, stderr) = process.run_sync(r'node "%s/write_tasks_to_cache.js"' % self.settings.package_path()) if process.failed: try: self.write_to_cache_without_js() except: if process.returncode() == 127: raise Exception( "\"node\" command not found.\nPlease be sure to have nodejs installed on your system and in your PATH (more info in the README)." ) elif stderr: self.log_errors(stderr) raise Exception( "There was an error running gulp, make sure gulp is running correctly in your project.\nFor more info check the sublime-gulp.log file" ) return self.fetch_json()