Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Installation complete but not working #12

Closed
pxlrbt opened this issue Sep 13, 2017 · 7 comments
Closed

Installation complete but not working #12

pxlrbt opened this issue Sep 13, 2017 · 7 comments

Comments

@pxlrbt
Copy link

pxlrbt commented Sep 13, 2017

Version: 1.21.0-beta0
OS: Windows 10
PHP: PHP 7.1.9 (cli) (x86)

Plugin installation run without errors. It says "PHP Felix Becker started" in the status bar, but if I open a PHP file the busy signal is shown in outline view and nothing happens. Diagnostics also do not show any errors.

I set the php path to "C:\xampp\php" in the settings section.

In the developer tools this is the last log. After that nothing happens.

PHP (FelixFBecker) rpc.sendRequest initialize sending Object {processId: 1992, capabilities: Object, rootPath: "D:\projekte\__mtw module\eloquent\ImmoScout Cronjob Standalone\cronjobs\Immoscout\"}

@nickdenardis
Copy link

nickdenardis commented Sep 13, 2017

Similar result on macOS for me. Says it was installed and "PHP Felix Becker started" in menu bar but no functionality.

Atom Beta: 1.21.0-beta0
macOS: 10.12.5
PHP: 7.1.8
ide-php: 0.6.1

After install, two errors:

Uncaught (in promise) Error: spawn ENOTDIR
    at exports._errnoException (util.js:1022)
    at ChildProcess.spawn (internal/child_process.js:313)
    at Object.exports.spawn (child_process.js:399)
    at PHPLanguageClient.spawnServer (/Users/nickdenardis/.atom/packages/ide-php/lib/main.js:60)
    at getOrInstallServer.then (/Users/nickdenardis/.atom/packages/ide-php/lib/main.js:30)

Uncaught (in promise) Error: spawn ENOTDIR
    at exports._errnoException (util.js:1022)
    at ChildProcess.spawn (internal/child_process.js:313)
    at Object.exports.spawn (child_process.js:399)
    at PHPLanguageClient.spawnServer (/Users/nickdenardis/.atom/packages/ide-php/lib/main.js:60)
    at getOrInstallServer.then (/Users/nickdenardis/.atom/packages/ide-php/lib/main.js:30)

@pxlrbt
Copy link
Author

pxlrbt commented Sep 13, 2017

So this issue solved my problem: #16
The problem was 32-bit php on windows which supports a maximum memory limit of 2GB so it fails when php-language-server requests 4GB. But there is no error message.

A settings for memory-limit and a note in the readme for windows users would be nice. I ended up manipulating the memory-limit inside <USERPATH>\.atom\packages\ide-php\vendor\felixfbecker\language-server\bin\php-language-server.php

@damieng
Copy link
Contributor

damieng commented Sep 13, 2017

That's great, I'll get on that one today and mark this as a duplicate of that. Thanks!

Duplicate of #16

@Jorge4ugusto
Copy link

I have the problem that it keeps loading and never starts or manages to recognize and probe the ide-php only with linter and it works, it also works atom-ide-ui with other packages like ide-css but the problem is that atom-ide-ui + ide-php does not want to work :( and this post is the closest thing I found I hope you can help me I have a great fondness to atom stays like in this image and never ends up loading the mouse over FelixBecker says initializing for ' Project and never finish initializing with a simple php My operating system is ubuntu 16.04 of 64 bits and I have 4 gb of ram in this imageImage and video hosting by TinyPic as it is loading in the lower right side I hope you can help me please.

@damieng
Copy link
Contributor

damieng commented Feb 26, 2018

@Jorge4ugusto make sure you have PHP 7.1.x installed. PHP 7.0 is no longer supported.

@Jorge4ugusto
Copy link

@damieng are you right i am with php7.0 as you knew? ok then that's why it does not work I guess I can move to php7.1 without problems and thanks for answering :)

@damieng
Copy link
Contributor

damieng commented Feb 27, 2018

Yeah sorry, it was 7.0 but at some point changed to 7.1. We have a new version going out shortly that should detect and report the exact problem more clearly.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants