Coder Social home page Coder Social logo

language-ags-script's People

Contributors

edmundito avatar

Stargazers

 avatar

Watchers

 avatar  avatar

language-ags-script's Issues

error when installing language-ags-script on atom

OS: Ubuntu 20.04
Atom: 1.45.0

I can't install language-ags-script on Atom anymore. Trying through apm, it gives me this error:

apm install language-ags-script
Installing language-ags-script to /home/user/.atom/packages โœ—

> [email protected] install /tmp/apm-install-dir-120529-19321-gtr86q.airdn/node_modules/language-ags-script/node_modules/tree-sitter-ags-script
> prebuild-install || node-gyp rebuild


prebuild-install WARN install No prebuilt binaries found (target=4.2.7 runtime=electron arch=x64 libc= platform=linux)
Aborted (core dumped)
Aborted (core dumped)
gyp: Call to 'node -e "require('nan')"' returned exit status 134 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error 
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onCpExit (/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/lib/configure.js:345:16)
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 Linux 5.4.0-39-generic
gyp ERR! command "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/apm-install-dir-120529-19321-gtr86q.airdn/node_modules/language-ags-script/node_modules/tree-sitter-ags-script
gyp ERR! node -v v10.2.1
gyp ERR! node-gyp -v v3.7.0
gyp ERR! not ok 
Aborted (core dumped)
npm WARN enoent ENOENT: no such file or directory, open '/tmp/apm-install-dir-120529-19321-gtr86q.airdn/package.json'
npm WARN apm-install-dir-120529-19321-gtr86q.airdn No description
npm WARN apm-install-dir-120529-19321-gtr86q.airdn No repository field.
npm WARN apm-install-dir-120529-19321-gtr86q.airdn No README data
npm WARN apm-install-dir-120529-19321-gtr86q.airdn No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! [email protected] install: `prebuild-install || node-gyp rebuild`
npm ERR! Exit status 134
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!     /home/user/.atom/.apm/_logs/2020-06-29T19_03_19_445Z-debug.log

Looking online it appears something broke between Atom 1.39 and Atom 1.40 where they transitioned from Electron3 to Electron4, maybe it's a matter of rebuilding and pushing things but I don't know exactly how this works for apm. I recently built myself a new computer and had to install Atom from scratch :/


Workaround is manually building and installing the packages:

git clone [email protected]:edmundito/tree-sitter-ags-script.git
git clone [email protected]:edmundito/language-ags-script.git

cd tree-sitter-ags-script
npm install -g tree-sitter-cli
npm install
npm link

cd ../language-ags-script
npm link tree-sitter-ags-script

apm link .

But unfortunately, opening Atom will bring the following error:

the module '/home/user/git/tree-sitter-ags-script/build/Release/tree_sitter_ags_script_binding.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 64. This version of Node.js requires
NODE_MODULE_VERSION 69. Please try re-compiling or re-installing
the module (for instance, using npm rebuild or npm install). in /home/user/.atom/packages/language-ags-script/grammars/tree-sitter-ags-script.cson

Using npm rebuild or npm install on the directory as suggested did not work for me.

Failed to load a language-ags-script package grammar

Hey, have you ever got this?

  1. Install latest Atom from deb on Ubuntu 18.04
  2. Install language-ags-script using Atom GUI
  3. Close and open Atom

Atom: 1.39.1 x64
Electron: 3.1.10
OS: Ubuntu 18.04.2
Thrown From: language-ags-script package 0.1.2

Stack Trace

Failed to load a language-ags-script package grammar

At The module '/home/erico/.atom/packages/language-ags-script/node_modules/tree-sitter-ags-script/build/Release/tree_sitter_ags_script_binding.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`). in /home/erico/.atom/packages/language-ags-script/grammars/tree-sitter-ags-script.cson

Error: The module '/home/erico/.atom/packages/language-ags-script/node_modules/tree-sitter-ags-script/build/Release/tree_sitter_ags_script_binding.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 57. This version of Node.js requires
NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:166:20)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:740:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:166:20)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
    at Function.Module._load (internal/modules/cjs/loader.js:551:3)
    at Module.require (/app.asar/static/index.js:71:46)
    at require (/usr/share/atom/resources/app/static/<embedded>:11:146719)
    at /packages/language-ags-script/node_modules/tree-sitter-ags-script/index.js:2:20)
    at /packages/language-ags-script/node_modules/tree-sitter-ags-script/index.js:11:3)
    at Module.get_Module._compile (/usr/share/atom/resources/app/static/<embedded>:11:147410)
    at Object.value [as .js] (/usr/share/atom/resources/app/static/<embedded>:11:150958)
    at Module.load (internal/modules/cjs/loader.js:620:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:559:12)
    at Function.Module._load (internal/modules/cjs/loader.js:551:3)
    at Module.require (/app.asar/static/index.js:71:46)
    at require (internal/modules/cjs/helpers.js:20:18)
    at customRequire (/usr/share/atom/resources/app/static/<embedded>:1:686762)
    at new TreeSitterGrammar (/usr/share/atom/resources/app/static/<embedded>:11:3341773)
    at GrammarRegistry.createGrammar (/usr/share/atom/resources/app/static/<embedded>:11:359235)
    at l.readFile (/usr/share/atom/resources/app/static/<embedded>:11:359076)
    at /usr/share/atom/resources/app/static/<embedded>:11:580572
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:440:3)
  at /packages/language-ags-script/grammars/tree-sitter-ags-script.cson:1:1

Non-Core Packages

busy-signal 2.0.1 
intentions 1.1.5 
language-ags-script 0.1.2 
linter 2.3.0 
linter-ui-default 1.7.1 
minimap 4.29.9 
minimap-linter 2.2.1 

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.