Giter Site home page Giter Site logo

wizard04wsu / javascript-regex Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 3.9 MB

Improved syntax highlighting for JavaScript regular expressions in Atom

License: MIT License

JavaScript 60.54% Less 39.46%
atom atom-package javascript parser regex regexp regular-expressions syntax syntax-highlighting syntax-tree

javascript-regex's People

Contributors

wizard04wsu avatar

Watchers

 avatar

javascript-regex's Issues

Failed to load a javascript-regex package grammar

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.47.0 x64
Electron: 5.0.13
OS: Mac OS X 10.15.4
Thrown From: javascript-regex package 2.0.0

Stack Trace

Failed to load a javascript-regex package grammar

At The module '/Users/barbara/.atom/packages/javascript-regex/node_modules/tree-sitter-regex-js/build/Release/tree_sitter_regex_binding.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 69. This version of Node.js requires
NODE_MODULE_VERSION 70. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`). in /Users/barbara/.atom/packages/javascript-regex/grammars/tree-sitter-regex-js.cson

Error: The module '/Users/barbara/.atom/packages/javascript-regex/node_modules/tree-sitter-regex-js/build/Release/tree_sitter_regex_binding.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 69. This version of Node.js requires
NODE_MODULE_VERSION 70. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.func [as dlopen] (electron/js2c/asar.js:138:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:881:18)
    at Object.func [as .node] (electron/js2c/asar.js:138:31)
    at Module.load (internal/modules/cjs/loader.js:701:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:633:12)
    at Function.Module._load (internal/modules/cjs/loader.js:625:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (/Users/barbara/iCloud Drive (archive) - 2/Desktop/Atom.app/Contents/Resources/app/static/<embedded>:11:146766)
    at /app.asar/node_modules/tree-sitter-regex/index.js:2:20)
    at /app.asar/node_modules/tree-sitter-regex/index.js:15:3)
    at Module.get_Module._compile (/Users/barbara/iCloud Drive (archive) - 2/Desktop/Atom.app/Contents/Resources/app/static/<embedded>:11:147450)
    at Object.value [as .js] (/Users/barbara/iCloud Drive (archive) - 2/Desktop/Atom.app/Contents/Resources/app/static/<embedded>:11:150998)
    at Module.load (internal/modules/cjs/loader.js:701:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:633:12)
    at Function.Module._load (internal/modules/cjs/loader.js:625:3)
    at Module.require (/app.asar/static/index.js:72:46)
    at require (internal/modules/cjs/helpers.js:14:16)
    at customRequire (/Users/barbara/iCloud Drive (archive) - 2/Desktop/Atom.app/Contents/Resources/app/static/<embedded>:1:695414)
    at new TreeSitterGrammar (/Users/barbara/iCloud Drive (archive) - 2/Desktop/Atom.app/Contents/Resources/app/static/<embedded>:11:3116620)
    at GrammarRegistry.createGrammar (/Users/barbara/iCloud Drive (archive) - 2/Desktop/Atom.app/Contents/Resources/app/static/<embedded>:11:360231)
    at /Users/barbara/iCloud Drive (archive) - 2/Desktop/Atom.app/Contents/Resources/app/static/<embedded>:11:360072
    at /Users/barbara/iCloud Drive (archive) - 2/Desktop/Atom.app/Contents/Resources/app/static/<embedded>:11:581958
    at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:54:3)
  at /packages/javascript-regex/grammars/tree-sitter-regex-js.cson:1:1

Commands

Non-Core Packages

atom-debug-ui 1.0.4 
atom-ide-ui 0.13.0 
atom-python-run 0.9.7 
emmet 2.4.3 
ide-php 0.7.18 
ide-python 1.5.0 
javascript-regex 2.0.0 
my-theme-syntax 0.0.0 
php-debug 0.3.5 
Quick-JavaScript 2.2.0 
script 3.26.0 
terminal-tab 0.6.0 
theme-reel 1.2.0 

Rebuild of packages required

Regarding issue #8, why is a rebuild being required after the update of Atom to 1.47.0? Can this be avoided in future updates?

Installing "[email protected]" failed.

Error log:

[email protected] install C:\Users\Tribus\AppData\Local\Temp\apm-install-dir-12099-7828-qkl26y.f2v2b\node_modules\javascript-regex\node_modules\tree-sitter-regex-js
node-gyp rebuild

C:\Users\Tribus\AppData\Local\Temp\apm-install-dir-12099-7828-qkl26y.f2v2b\node_modules\javascript-regex\node_modules\tree-sitter-regex-js>if not defined npm_config_node_gyp (node "C:\Users\Tribus\AppData\Local\atom\app-1.46.0\resources\app\apm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\Tribus\AppData\Local\atom\app-1.46.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
C:\Users\Tribus\AppData\Local\Temp\apm-install-dir-12099-7828-qkl26y.f2v2b\node_modules\javascript-regex\node_modules\tree-sitter-regex-js\build\tree_sitter_regex_binding.vcxproj(20,3): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.

gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\Tribus\AppData\Local\atom\app-1.46.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\Users\Tribus\AppData\Local\atom\app-1.46.0\resources\app\apm\bin\node.exe" "C:\Users\Tribus\AppData\Local\atom\app-1.46.0\resources\app\apm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Tribus\AppData\Local\Temp\apm-install-dir-12099-7828-qkl26y.f2v2b\node_modules\javascript-regex\node_modules\tree-sitter-regex-js
gyp ERR! node -v v10.2.1
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Tribus\AppData\Local\Temp\apm-install-dir-12099-7828-qkl26y.f2v2b\package.json'
npm WARN apm-install-dir-12099-7828-qkl26y.f2v2b No description
npm WARN apm-install-dir-12099-7828-qkl26y.f2v2b No repository field.
npm WARN apm-install-dir-12099-7828-qkl26y.f2v2b No README data
npm WARN apm-install-dir-12099-7828-qkl26y.f2v2b No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Tribus.atom.apm_logs\2020-10-09T16_36_41_148Z-debug.log

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.