Gert-dev / php-ide-serenata

Atom IDE package that integrates the Serenata server to provide PHP code assistance
https://serenata.gitlab.io/
Other
275 stars 19 forks source link

Can't install this package #443

Closed yus-ham closed 6 years ago

yus-ham commented 6 years ago

Hi, I just first install with ubuntu 18.04, PHP 7.2, php-mbstring, php-sqlite3, openssl installed. I got this error notice.

Installing “php-ide-serenata@4.4.0” failed.Hide output…

npm ERR! Linux 4.15.0-29-generic
npm ERR! argv "/usr/share/atom/resources/app/apm/bin/node" "/usr/share/atom/resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/home/suphm/.atom/.apm/.apmrc" "--userconfig" "/home/suphm/.atom/.apmrc" "install" "/tmp/d-118628-15120-tfw19j.lle0bxzuxr/package.tgz" "--runtime=electron" "--target=2.0.5" "--arch=x64" "--global-style"
npm ERR! node v6.9.5
npm ERR! npm  v3.10.10
npm ERR! file /home/suphm/.atom/.apm/charenc/0.0.2/package/package.json
npm ERR! code EJSONPARSE

npm ERR! Failed to parse json
npm ERR! No data, empty input at 1:1
npm ERR! 
npm ERR! ^
npm ERR! File: /home/suphm/.atom/.apm/charenc/0.0.2/package/package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR! 
npm ERR! This is not a bug in npm.
npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/apm-install-dir-118628-15120-4acnma.a9qkgfogvi/npm-debug.log

There also more log messages taken from dev tool.

> git stash list
init.coffee? [sm]:17 activate php-analyser
git.js? [sm]:32 fatal: not a git repository (or any parent up to mount point /media)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

git.js? [sm]:33 'git stash list' exited with error code 128
workdir-cache.js:54 Unable to locate git workspace root for /media/sda5/mylinux/home. Expected if /media/sda5/mylinux/home is not in a git repository. GitError: git rev-parse --show-toplevel in /media/sda5/mylinux/home exited with code 128
stdout: 
stderr: fatal: not a git repository (or any parent up to mount point /media)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

    at new GitError (/usr/share/atom/resources/app.asar/node_modules/github/lib/git-shell-out-strategy.js:73:18)
    at Promise (/usr/share/atom/resources/app.asar/node_modules/github/lib/git-shell-out-strategy.js:337:23)
    at <anonymous>
revParse @ workdir-cache.js:54
Gert-dev commented 6 years ago

Thanks for taking the time to file an issue. However, I don't think this is an issue with this package. It looks like it's an error with apm or atom itself. The package file from this repository should be just fine, so perhaps it's a temporary issue or corner case that's being hit with either of these applications.

yus-ham commented 6 years ago

OK! Now, the problem solved. I found similiar problem and was overcome by this.