OmniSharp / atom-json-schema

Json schema intellisense and validation for Atom
MIT License
43 stars 15 forks source link

Failed to activate the json-schema package #12

Open brad-jones opened 9 years ago

brad-jones commented 9 years ago

Looks like the package "loophole" has not been saved to the package dependencies list. I navigated to .atom\packages\json-schema and ran npm install loophole and this appears to fix the issue.

[Enter steps to reproduce below:]

  1. Updated to v0.1.14
  2. Opened Atom

Atom Version: 1.0.19 System: Microsoft Windows 8.1 Pro Thrown From: json-schema package, v0.1.14

Stack Trace

Failed to activate the json-schema package

At Cannot find module 'loophole'

Error: Cannot find module 'loophole'
    at Module._resolveFilename (module.js:334:15)
    at Function.Module._resolveFilename (C:\Users\Brad\AppData\Local\atom\app-1.0.19\resources\app.asar\src\module-cache.js:383:52)
    at Function.Module._load (module.js:284:25)
    at Module.require (module.js:363:17)
    at require (module.js:382:17)
    at C:\Users\Brad\.atom\packages\json-schema\lib\schema-linter.js:3:20
    at Object.<anonymous> (C:\Users\Brad\.atom\packages\json-schema\lib\schema-linter.js:8:3)
    at Module._compile (module.js:428:26)
    at Object.defineProperty.value [as .js] (C:\Users\Brad\AppData\Local\atom\app-1.0.19\resources\app.asar\src\compile-cache.js:169:21)
    at Module.load (module.js:353:32)
    at Function.Module._load (module.js:308:12)
    at Module.require (module.js:363:17)
    at require (module.js:382:17)
    at JsonSchema.provideLinter (C:\Users\Brad\.atom\packages\json-schema\lib\json-schema.js:41:30)
    at Package.module.exports.Package.activateServices (C:\Users\Brad\AppData\Local\atom\app-1.0.19\resources\app.asar\src\package.js:416:69)
    at Package.module.exports.Package.activateNow (C:\Users\Brad\AppData\Local\atom\app-1.0.19\resources\app.asar\src\package.js:248:16)

Commands

Config

{
  "core": {
    "themes": [
      "atom-dark-ui",
      "monokai-soda"
    ],
    "disabledPackages": [
      "open-last-project",
      "autocomplete-snippets"
    ]
  }
}

Installed Packages

# User
.bin, vundefined
atom-yeoman, v0.3.15
docblockr, v0.7.3
json-schema, v0.1.14
line-ending-converter, v1.3.2
linter, v1.7.2
monokai-soda, v0.5.0
omnisharp-atom, v0.24.14
pretty-json, v0.4.1

# Dev
No dev packages
RyanBreaker commented 9 years ago

Same issue here and the mentioned fix makes it work for me.

jerone commented 9 years ago

This seems to be fixed by https://github.com/OmniSharp/atom-json-schema/commit/82b38dbc126130cfcaba2a70ddc69b6d5b5eaadc