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

error Code: -32603 when reformatting file #342

Closed
Merange opened this issue Apr 6, 2017 · 1 comment
Closed

error Code: -32603 when reformatting file #342

Merange opened this issue Apr 6, 2017 · 1 comment

Comments

@Merange
Copy link

Merange commented Apr 6, 2017

Hello,

I just install my old project in Visual Studio code and I try to reformat my code (plenty of tabs in place of spaces, ...) and I have this error code

here is the stack trace

[Error - 07:12:26] Request textDocument/formatting failed.
Message: Exception: Unable to format file in C:\Users\Moi.vscode\extensions\felixfbecker.php-intellisense-1.1.4\vendor\felixfbecker\language-server\src\Formatter.php:52
Stack trace:
#0 C:\Users\Moi.vscode\extensions\felixfbecker.php-intellisense-1.1.4\vendor\felixfbecker\language-server\src\PhpDocument.php(233): LanguageServer\Formatter::format('<?php\t\n\n\terror
...', 'file:///d:/Dev/...')
#1 C:\Users\Moi.vscode\extensions\felixfbecker.php-intellisense-1.1.4\vendor\felixfbecker\language-server\src\Server\TextDocument.php(179): LanguageServer\PhpDocument->getFormattedText()
#2 C:\Users\Moi.vscode\extensions\felixfbecker.php-intellisense-1.1.4\vendor\sabre\event\lib\Promise.php(242): LanguageServer\Server\TextDocument->LanguageServer\Server{closure}(Object(LanguageServer\PhpDocument))
#3 C:\Users\Moi.vscode\extensions\felixfbecker.php-intellisense-1.1.4\vendor\sabre\event\lib\Loop\Loop.php(261): Sabre\Event\Promise->Sabre\Event{closure}()
#4 C:\Users\Moi.vscode\extensions\felixfbecker.php-intellisense-1.1.4\vendor\sabre\event\lib\Loop\Loop.php(215): Sabre\Event\Loop\Loop->runNextTicks()
#5 C:\Users\Moi.vscode\extensions\felixfbecker.php-intellisense-1.1.4\vendor\sabre\event\lib\Loop\Loop.php(194): Sabre\Event\Loop\Loop->tick(true)
#6 C:\Users\Moi.vscode\extensions\felixfbecker.php-intellisense-1.1.4\vendor\sabre\event\lib\Loop\functions.php(122): Sabre\Event\Loop\Loop->run()
#7 C:\Users\Moi.vscode\extensions\felixfbecker.php-intellisense-1.1.4\vendor\felixfbecker\language-server\bin\php-language-server.php(50): Sabre\Event\Loop\run()
#8 {main}
Code: -32603_

Please ask me if you need some oter information

@felixfbecker
Copy link
Owner

#296
#293

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