Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server initialization failed. #125

Closed
Friend007 opened this issue Jun 9, 2017 · 13 comments
Closed

Server initialization failed. #125

Friend007 opened this issue Jun 9, 2017 · 13 comments

Comments

@Friend007
Copy link

Friend007 commented Jun 9, 2017

Hello.

I try to use php-intellisense but have error

[Error - 3:45:13 PM] Server initialization failed.
  Message: UnexpectedValueException: RecursiveDirectoryIterator::__construct(c:/Users/USER.USER\AppData\Local\Application Data,c:/Users/USER.USER\AppData\Local\Application Data): Access is denied. (code: 5) in C:\Users\user.user\.vscode\extensions\felixfbecker.php-intellisense-1.3.0\vendor\webmozart\glob\src\Iterator\RecursiveDirectoryIterator.php:43
Stack trace:
#0 C:\Users\user.user\.vscode\extensions\felixfbecker.php-intellisense-1.3.0\vendor\webmozart\glob\src\Iterator\RecursiveDirectoryIterator.php(43): RecursiveDirectoryIterator->__construct('c:/Users/USER...', 4128)
#1 C:\Users\user.user\.vscode\extensions\felixfbecker.php-intellisense-1.3.0\vendor\webmozart\glob\src\Iterator\RecursiveDirectoryIterator.php(55): Webmozart\Glob\Iterator\RecursiveDirectoryIterator->__construct('c:/Users/USER...', 4128)
#2 [internal function]: Webmozart\Glob\Iterator\RecursiveDirectoryIterator->getChildren()
#3 C:\Users\user.user\.vscode\extensions\felixfbecker.php-intellisense-1.3.0\vendor\webmozart\glob\src\Iterator\RegexFilterIterator.php(130): FilterIterator->next()
#4 [internal function]: Webmozart\Glob\Iterator\RegexFilterIterator->next()
#5 C:\Users\user.user\.vscode\extensions\felixfbecker.php-intellisense-1.3.0\vendor\felixfbecker\language-server\src\FilesFinder\FileSystemFilesFinder.php(24): IteratorIterator->next()
#6 [internal function]: LanguageServer\FilesFinder\FileSystemFilesFinder->LanguageServer\FilesFinder\{closure}()
#7 C:\Users\user.user\.vscode\extensions\felixfbecker.php-intellisense-1.3.0\vendor\sabre\event\lib\coroutine.php(70): Generator->send(NULL)
#8 C:\Users\user.user\.vscode\extensions\felixfbecker.php-intellisense-1.3.0\vendor\sabre\event\lib\Promise.php(242): Sabre\Event\{closure}(NULL)
#9 C:\Users\user.user\.vscode\extensions\felixfbecker.php-intellisense-1.3.0\vendor\sabre\event\lib\Loop\Loop.php(261): Sabre\Event\Promise->Sabre\Event\{closure}()
#10 C:\Users\user.user\.vscode\extensions\felixfbecker.php-intellisense-1.3.0\vendor\sabre\event\lib\Loop\Loop.php(215): Sabre\Event\Loop\Loop->runNextTicks()
#11 C:\Users\user.user\.vscode\extensions\felixfbecker.php-intellisense-1.3.0\vendor\sabre\event\lib\Loop\Loop.php(194): Sabre\Event\Loop\Loop->tick(true)
#12 C:\Users\user.user\.vscode\extensions\felixfbecker.php-intellisense-1.3.0\vendor\sabre\event\lib\Loop\functions.php(122): Sabre\Event\Loop\Loop->run()
#13 C:\Users\user.user\.vscode\extensions\felixfbecker.php-intellisense-1.3.0\vendor\felixfbecker\language-server\bin\php-language-server.php(50): Sabre\Event\Loop\run()
#14 {main}
  Code: -32603

Any Ideas?

Thank you

@Friend007
Copy link
Author

Hi Jens1o
From Microsoft site :
Application Data is not an actual folder, it is a Junction which is only there for backward compatibility. A Junction is a shortcut that redirects files and programs to a different location.

This particular Junction points to the C:Users\username\AppData\Roaming folder.
My Roaming folder has Security setting Full control for
SYSTEM
User
Administrator

Thank you for your time :)

@felixfbecker
Copy link
Owner

felixfbecker commented Jun 15, 2017

What folder did you open VS Code in?

@Friend007
Copy link
Author

Friend007 commented Jun 15, 2017

VS Code
C:\Program Files (x86)\Microsoft VS Code
PHP
C:\Program Files\php7

@felixfbecker
Copy link
Owner

I mean, what folder did you open in VS Code?

@Friend007
Copy link
Author

Ubuntu server /var/www/html/project

@felixfbecker
Copy link
Owner

wait, I thought you are on Windows?

@Friend007
Copy link
Author

Yes. I am on windows. Bat server on Ubuntu I connect with mobaxterm (http://mobaxterm.mobatek.net) and use VC as default text editor for this application

@felixfbecker
Copy link
Owner

What's important is what folder path is opened inside VS Code. I.e. what is in the title bar, the explorer title, what path you get when you right click > copy path on files or tabs.

@Friend007
Copy link
Author

Not clear understand your question but maybe this image will help
capture
.

@felixfbecker
Copy link
Owner

Could you please right click on a file and select "highlight in explorer" or "copy path" and paste the path here?

@Friend007
Copy link
Author

Friend007 commented Jun 15, 2017

C:\Users\KONSTA~1.MIL\DOCUME~1\MobaXterm\slash\RemoteFiles\1639868_2_36\table1.php
Thank you, Felix, I go to the meeting , will back tomorrow.

@felixfbecker
Copy link
Owner

Yeah no idea. I cannot reproduce this so don't know to help you.

@Friend007
Copy link
Author

Thank you, Felix. Will works without php-intellisense :)

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

No branches or pull requests

2 participants