From 62b52cb70ab62692b642badd9b0b84599f8defba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Sch=C3=BC=C3=9Fler?= Date: Thu, 31 Jul 2014 16:24:29 +0200 Subject: [PATCH] In devmode do not load incompatible from cache --- src/package.coffee | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/package.coffee b/src/package.coffee index 1a9834a24..4fd86120d 100644 --- a/src/package.coffee +++ b/src/package.coffee @@ -371,9 +371,10 @@ class Package # to minimize the impact on startup time. getIncompatibleNativeModules: -> localStorageKey = "installed-packages:#{@name}:#{@metadata.version}" - try - {incompatibleNativeModules} = JSON.parse(global.localStorage.getItem(localStorageKey)) ? {} - return incompatibleNativeModules if incompatibleNativeModules? + if not atom.inDevMode() + try + {incompatibleNativeModules} = JSON.parse(global.localStorage.getItem(localStorageKey)) ? {} + return incompatibleNativeModules if incompatibleNativeModules? incompatibleNativeModules = [] for nativeModulePath in @getNativeModuleDependencyPaths()