edmundito / language-ags-script Goto Github PK
View Code? Open in Web Editor NEWAdventure Game Studio (AGS) Script support in Atom
Adventure Game Studio (AGS) Script support in 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, usingnpm rebuild
ornpm 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.
Hey, have you ever got this?
Atom: 1.39.1 x64
Electron: 3.1.10
OS: Ubuntu 18.04.2
Thrown From: language-ags-script package 0.1.2
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.