jozanza / p8 Goto Github PK
View Code? Open in Web Editor NEW👾 PICO-8 dependency manager
Home Page: https://www.npmjs.com/package/p8
👾 PICO-8 dependency manager
Home Page: https://www.npmjs.com/package/p8
When I make a change to my lua file and the build auto-reloads, it throws an error running the applescript to send Cmd+R to PICO-8. The error message is:
execution error: System Events got an error: osascript is not allowed to send keystrokes.
I tried adding osascript
and p8
under System Preferences > Privacy > Accessibility, but no luck. Is there some other thing required to give the script the right permissions?
Installed lua, moonscript and your tool (p8)
But when running p8 init
I get this error ... any idea why?
I'm on OSX 10.11 El Capitan
AlexandsMacBook:cavemen alexanderschaefer$ p8 init
/usr/local/lib/node_modules/p8/src/p8-init:9
const { parse } = require('path')
^
SyntaxError: Unexpected token {
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
???
I have an Applescript application named "New" and I get the above message whenever I run it. I have other similar Applescript apps that have the same problem. "New" is a simple 1-line applescript to create a new folder:
tell application “System Events” to keystroke “n” using {command down, shift down}
I have given script editor and "New" Full Disk Access and Accessibility in the Security & Privacy pref pane.
This error began when I upgraded to Monterey. I created variations of "New", for example accessing "New Finder Window" from Finder's File menu, but all of my attempts run into this same problem. I have restarted the Finder many times, and even rebooted a few times, but the error persists.
To fix I had to remove moonc (despite your annotation it was still being required), remove it from dependencies and remove .moon compilation, otherwise the tool was unusable on linux because moon was spamming into (fake) sderr constant stream:
stderr: lua: cannot open /snapshot/p8/node_modules/moonc/moon.lua: No such file or directory
stderr:
stderr: lua: cannot open /snapshot/p8/node_modules/moonc/moon.lua: No such file or directory
stderr:
stderr: lua: cannot open /snapshot/p8/node_modules/moonc/moon.lua: No such file or directory
stderr:
This utility will help you quickly create a p8.json file.
This file will keep track of basic info and the dependencies of your project.
Use p8 add <filepath or url>
afterwards to save dependencies in p8.json.
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.