Atom throws spawn EACCES - atom-editor

I have installed Atom editor then installed Atom Beautify package into it. But when I try to apply beautify package its throws the error below:
Error: spawn EACCES
at exports._errnoException (util.js:890:11)
at ChildProcess.spawn (internal/child_process.js:302:11)
at exports.spawn (child_process.js:379:9)
at /home/titan5/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:322:13
at Promise._execute (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/debuggability.js:284:9)
at Promise._resolveFromExecutor (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:480:18)
at new Promise (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:77:14)
at PHPCSFixer.module.exports.Beautifier.spawn (/home/titan5/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:319:16)
at /home/titan5/.atom/packages/atom-beautify/src/beautifiers/beautifier.coffee:281:10
at tryCatcher (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:509:31)
at Promise._settlePromise (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:566:18)
at Promise._settlePromise0 (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:611:10)
at Promise._settlePromises (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:690:18)
at Promise._fulfill (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:635:18)
at PromiseArray._resolve (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise_array.js:125:19)
at PromiseArray._promiseFulfilled (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise_array.js:143:14)
at Promise._settlePromise (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:571:26)
at Promise._settlePromise0 (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:611:10)
at Promise._settlePromises (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/promise.js:690:18)
at Async._drainQueue (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:138:16)
at Async._drainQueues (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:148:10)
at Async.drainQueues (/home/titan5/.atom/packages/atom-beautify/node_modules/bluebird/js/release/async.js:17:14)
can anybody help please

I had the same issue.
I put php-cs-fixer at ~/.local/bin and then I gave it executable permission with the command chmod +x php-cs-fixer.

I ran into this error just now as well. The issue was that I didn't have Uncrustify installed.
On Linux:
cd ~/
git clone https://github.com/uncrustify/uncrustify
cd uncrustify
mkdir build
cd build
cmake ..
cmake --build .
sudo make install

Related

yocto inherit qmake5 don't work if install directory is not /usr/bin

I have a directory qt project with a application (customqtapp) and two libraries (libprotocustom and libcustom).
I created a simple yocto recipe inherit qmake5.
All works fine if the target install dir is /usr/bin for application and /usr/lib for libraries but don't work if
the target install directories are /usr/local/bin and /usr/local/lib
project.pro
SUBDIRS += \
libprotocustom \
libcustom \
customqtapp
...
libprotocustom.pro
target.path=/usr/local/lib
INSTALL = target
...
libcustom.pro
target.path=/usr/local/lib
INSTALL = target
...
customqtapp.pro
target.path=/usr/local/bin
INSTALL = target
...
customqtapp.bb
SUMMARY = "customqtapp"
SRC_URI = " git:///customqt.git;protocol=file;branch=master "
SRCREV = "master"
S = "${WORKDIR}/git"
inherit qmake5
The error messages was
ERROR: customqtapp-1.0.0-r0 do_package: QA Issue: customqtapp: Files/directories were installed but not shipped in any package:
/usr/local/lib/libprotocustom.so.1.0.0
/usr/local/lib/libprotocustom.so.1.0
/usr/local/lib/libprotocustom.so
/usr/local/lib/libprotocustom.so.1
/usr/local/lib/liblibcustom.so.1.0.0
/usr/local/lib/liblibcustom.so.1
/usr/local/lib/liblibcustom.so
/usr/local/lib/liblibcustom.so.1.0
/usr/local/bin/customqtapp
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
customqtapp: 11 installed and not shipped files. [installed-vs-shipped]
ERROR: customqtapp-1.0.0-r0 do_package: Fatal QA errors found, failing task.
ERROR: Logfile of failure stored in: /home/user/yocto-local/build/tmp/work/cortexa53-crypto-poky-linux/customqtapp/1.0.0-r0/temp/log.do_package.6581
ERROR: Task (/home/user/yocto-local/sources/meta-custom/recipes-custom/customqtapp/customqtapp_1.0.0.bb:do_package) failed with exit code '1'
So I added the files to FILES variable in recipe
FILES_${PN} = "\
/usr/local/sbin \
/usr/local/lib/libprotocustom.so.1.0.0 \
/usr/local/lib/libprotocustom.so.1.0 \
/usr/local/lib/libprotocustom.so \
/usr/local/lib/libprotocustom.so.1 \
/usr/local/lib/liblibcustom.so.1.0.0 \
/usr/local/lib/liblibcustom.so.1 \
/usr/local/lib/liblibcustom.so \
/usr/local/lib/liblibcustom.so.1.0 \
/usr/local/bin/customqtapp \
"
But don't work
ERROR: customqtapp-1.0.0-r0 do_package_qa: QA Issue: non -dev/-dbg/nativesdk- package customqtapp contains symlink .so '/usr/local/lib/libprotocustom.so'
non -dev/-dbg/nativesdk- package customqtapp contains symlink .so '/usr/local/lib/liblibcustom.so' [dev-so]
WARNING: customqtapp-1.0.0-r0 do_package_qa: QA Issue: customqtapp-dbg: found library in wrong location: /usr/local/lib/.debug/libprotocustom.so.1.0.0
customqtapp-dbg: found library in wrong location: /usr/local/lib/.debug/liblibcustom.so.1.0.0
customqtapp: found library in wrong location: /usr/local/lib/libprotocustom.so.1.0.0
customqtapp: found library in wrong location: /usr/local/lib/libprotocustom.so.1.0
customqtapp: found library in wrong location: /usr/local/lib/libprotocustom.so
customqtapp: found library in wrong location: /usr/local/lib/libprotocustom.so.1
customqtapp: found library in wrong location: /usr/local/lib/liblibcustom.so.1.0.0
customqtapp: found library in wrong location: /usr/local/lib/liblibcustom.so.1
customqtapp: found library in wrong location: /usr/local/lib/liblibcustom.so
customqtapp: found library in wrong location: /usr/local/lib/liblibcustom.so.1.0 [libdir]
ERROR: customqtapp-1.0.0-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
ERROR: Logfile of failure stored in: /home/user/yocto-local/build/tmp/work/cortexa53-crypto-poky-linux/customqtapp/1.0.0-r0/temp/log.do_package_qa.7056
ERROR: Task (/home/user/yocto-local/sources/meta-custom/recipes-custom/customqtapp/customqtapp_1.0.0.bb:do_package_qa) failed with exit code '1'
some ideas?
Thanks in advance.

HelloFX.java:1: error: package javafx.application.Application does not exist

OS: Raspbian
CPU: RPi (armv7l)
JDK: Zulu11.31+16 (build 11.0.3+7)
JavaFX: self-built https://github.com/openjdk/jfx/archive/jdk-11+7.tar.gz
Problem:
$ export PATH_TO_FX=/usr/lib/jvm/javafx-sdk-armv6hf-11-0-7-b1/lib
$ ls $PATH_TO_FX
javafx.base.jar
javafx.controls.jar
javafx.fxml.jar
javafx.graphics.jar
javafx.media.jar
javafx-swt.jar
javafx.web.jar
<bunch of lib*.so>
$ jar -t --file $PATH_TO_FX/javafx.graphics.jar | grep Application
javafx.graphics/javafx/application/Application.class
$ export MODULES=javafx.controls,javafx.graphics
$ wget https://raw.githubusercontent.com/openjfx/samples/master/HelloFX/CLI/hellofx HelloFX.java
$ javac --module-path $PATH_TO_FX --add-modules $MODULES HelloFX.java
HelloFX.java:1: error: package javafx.application.Application does not exist
import javafx.application.Application
I've checked and double-checked $PATH_TO_FX, and $MODULES, they are seem to be correct. If i run javac with -verbose, than I see jdk modules loaded, but jfx are not.
Update, 2020.12.19:
Turned out the problem was my build of JavaFX SDK. For whatever reason Gradle
generated module jars with module name as the root folder. Once I stripped
module names and repacked jars SDK works fine. Looking into Gradle issue now.

Can't run encore dev

Why i have this erros when I want to use yarn run encore dev ? When I want to add sass i get warning " > sass-loader#6.0.7" has unmet peer dependency "webpack#^2.0.0 || ^3.0.0 || ^4.0.0". But why ? Symfony 4. I cant install from github this modules npm install --save child_process fork-ts-checker-webpack-plugin fs module net readline spdx-exceptions spdx-license-ids spdx-license-ids/deprecated
yarn run encore dev
yarn run v1.5.1
$ c:\xampp\htdocs\dashboard\Symfony\pppp\node_modules.bin\encore dev
Running webpack ...
ERROR Failed to compile with 50 errors 09:48:38
These dependencies were not found:
child_process in ./node_modules/execa/index.js, ./node_modules/execa/node_modules/cross-spawn/index.js and 1 other
fork-ts-checker-webpack-plugin in ./node_modules/#symfony/webpack-encore/lib/plugins/forked-ts-types.js
fs in ./node_modules/#symfony/webpack-encore/lib/WebpackConfig.js, ./node_modules/#symfony/webpack-encore/lib/config/parse-runtime.js and 35 others
module in (webpack)/lib/NormalModule.js, (webpack)/lib/node/NodeTargetPlugin.js
net in ./node_modules/growly/lib/gntp.js, ./node_modules/node-notifier/lib/checkGrowl.js
readline in ./node_modules/friendly-errors-webpack-plugin/src/output.js
spdx-exceptions in ./node_modules/spdx-expression-parse/scan.js
spdx-license-ids in ./node_modules/spdx-correct/index.js, ./node_modules/spdx-expression-parse/scan.js
spdx-license-ids/deprecated in ./node_modules/spdx-expression-parse/scan.js
To install them, you can run: npm install --save child_process fork-ts-checker-webpack-plugin fs module net readline spdx-exceptions spdx-license-ids spdx-license-ids/deprecated
error An unexpected error occurred: "Command failed.
Exit code: 2
Command: C:\WINDOWS\system32\cmd.exe
Arguments: /d /s /c c:\xampp\htdocs\dashboard\Symfony\pppp\
ode_modules\.bin\encore dev
Directory: c:\xampp\htdocs\dashboard\Symfony\pppp
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "c:\xampp\htdocs\dashboard\Symfony\swisscar\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I suspect you have solved this issue by now but if not the solution to the problem lie in reading the error message. For starters the 'yarn run encore dev' is complaining that some dependencies required by some of the libraries your application depend on, are missing from your installation of node.

Error install sbt

I tried to install sbt on high sierra,
I have installed the build tool using : "brew install sbt" , after that i tried to run the sbt on "./.brew/Cellar/sbt/1.1.0/bin/sbt
i got that error.
java.io.IOException: Operation not supported
at sun.nio.ch.FileDispatcherImpl.lock0(Native Method)
at sun.nio.ch.FileDispatcherImpl.lock(FileDispatcherImpl.java:90)
at sun.nio.ch.FileChannelImpl.tryLock(FileChannelImpl.java:1115)
at java.nio.channels.FileChannel.tryLock(FileChannel.java:1155)
at xsbt.boot.Locks$GlobalLock.withChannel$1(Locks.scala:88)
at xsbt.boot.Locks$GlobalLock.xsbt$boot$Locks$GlobalLock$$withChannelRetries$1(Locks.scala:80)
at xsbt.boot.Locks$GlobalLock$$anonfun$withFileLock$1.apply(Locks.scala:99)
at xsbt.boot.Using$.withResource(Using.scala:10)
at xsbt.boot.Using$.apply(Using.scala:9)
at xsbt.boot.Locks$GlobalLock.ignoringDeadlockAvoided(Locks.scala:60)
at xsbt.boot.Locks$GlobalLock.withLock(Locks.scala:50)
at xsbt.boot.Locks$.apply0(Locks.scala:31)
at xsbt.boot.Locks$.apply(Locks.scala:28)
at xsbt.boot.Launch.locked(Launch.scala:238)
at xsbt.boot.Launch.app(Launch.scala:147)
at xsbt.boot.Launch.app(Launch.scala:145)
at xsbt.boot.Launch$.run(Launch.scala:102)
at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
at xsbt.boot.Launch$.launch(Launch.scala:117)
at xsbt.boot.Launch$.apply(Launch.scala:18)
at xsbt.boot.Boot$.runImpl(Boot.scala:41)
at xsbt.boot.Boot$.main(Boot.scala:17)
at xsbt.boot.Boot.main(Boot.scala)
Error during sbt execution: java.io.IOException: Operation not supported
You actually don't need homebrew to install SBT. Download it directly at https://www.scala-sbt.org/download.html, then extract and drop it into your home directory.
With Terminal, update permissions:
chmod -R 700 sbt/bin/sb
Open the Bash Profile.
nano .bash_profile
Add the following line to the end of the file:
export PATH=/Users/username/sbt/bin:$PATH
Username is your user name. For example, export PATH=/Users/john/sbt/bin:$PATH
To test, close and re-open Terminal. Run:
sbt --version
I wrote step-by-step instructions on my blog earlier.

Meteor 0.9.0 Error: EACCES, permission denied '/Users/Jasper/.meteorsession'

After updating to meteor 0.9.0 I get the following error when launching an app to localhost
Error: EACCES, permission denied '/Users/Jasper/.meteorsession'
at Object.fs.openSync (fs.js:432:18)
at Object.fs.readFileSync (fs.js:289:15)
at readSessionData (/Users/Jasper/.meteor/packages/meteor-tool/.1.0.26.1fmrgj1++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/auth.js:137:24)
at Object.tryRevokeOldTokens (/Users/Jasper/.meteor/packages/meteor-tool/.1.0.26.1fmrgj1++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/auth.js:331:10)
at main.registerCommand.name [as func] (/Users/Jasper/.meteor/packages/meteor-tool/.1.0.26.1fmrgj1++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/commands.js:197:8)
at /Users/Jasper/.meteor/packages/meteor-tool/.1.0.26.1fmrgj1++os.osx.x86_64+web.browser+web.cordova/meteor-tool-os.osx.x86_64/tools/main.js:1212:23
Starting the meteor session with sudo meteor fixes this problem but I was wondering what causes this and how it can be fixed.
Thanks in advance
Just delete the .meteorsession and restart meteor and it will create a new .meteorsession directory.
Run the following code in your terminal:
rm -rf /Users/Jasper/.meteorsession

Resources