animus-coop / vscode-phpstorm-formatter Goto Github PK
View Code? Open in Web Editor NEWPHPStorm Formatter integrated into Visual Studio Code.
License: MIT License
PHPStorm Formatter integrated into Visual Studio Code.
License: MIT License
PHPStorm Formatter: Failed to format the document
Hi, I don't know if this is intended/inevitable, but formatting with this plugin makes my PC fans turn on and takes ~10 seconds time. I love the simplicity of customization of PHPstorm formatter, and that it covers all web-related languages (no more 10 different formatters, yay!), but is there any way to make this run faster and without overheating the CPU?
Hi, i tried it on macOS with a fresh installation of PHPStorm, i have wrote the path to the bin folder of /Applications/PHPStorm/.../bin path but it doesn't work. On Windows 10 is working correctly without filling the style guide field, do i need to fill it on macOS? What is the correct "bin" path on macOS?
Hi,
i have written a simple groovy script for my company that utilizes an existing running PHPStorm instance to perform formatting.
Formatting in this case takes only about ~100ms, which is significantly more pleasant.
It might be possible to integrate this functionality as an option within the plugin.
I'm getting this error.
[exthost] [error] [animus-coop.vscode-phpstorm-formatter] provider FAILED
Could you provide any insight?
Hi,
I have been trying to search for these paths, on my computer and even for information on Google about them. I find nothing.
phpstormFormatter.ideBinPath: The full path to the PHPStorm <IDE_HOME>/bin directory.
phpstormFormatter.styleGuidePath: Format code according to this code style settings file.
It would be really helpful to include that information in the VSCode exensions
I installed this extension in VS Code. I use a Mac and it's not so clear how this should be setup to work.
I have a licensed PHPStorm installed, but what should I write in:
phpstormFormatter.ideBinPath: The full path to the PHPStorm <IDE_HOME>/bin directory.
phpstormFormatter.styleGuidePath: Format code according to this code style settings file.
In phpstormFormatter.ideBinPath I have written: /Applications/PhpStorm.app/Contents/bin
Is this correct and what should I write in phpstormFormatter.styleGuidePath ?
PhpStorm 2021.3.2/bin
vsCode
Version: 1.65.1 (user setup)
Commit: 8908a9ca0f221f36507231afb39d2d8d1e182702
Date: 2022-03-08T02:06:27.846Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.22000
Settings
"phpstormFormatter.ideBinPath": "C:\Program Files\JetBrains\PhpStorm 2021.3.2\bin",
"phpstormFormatter.styleGuidePath": "C:\Users\andre\codestyle.xml",
I can find no information what could be causing this issue, nor can I find any installation documentation to see if this is a user error.
It appears everything is set up properly but I keep getting "PHPStorm Formatter: Failed to format the document" with no further data
Where is the code style settings file?
I dont want to wrap mycode after formatted, so I have try to export code style per info in here : [https://www.jetbrains.com/help/idea/command-line-formatter.html#options] and change the phpstorm format.bat to include -s codestyle.xml, but doesnt work, any hint please, thx
While the extension at least detects my 2018 phpstorm verion it somehow cannot detect the XML file which is giving the rules for formatting like so:
`-
But everytime I use "Fomat Document with..." and choose phpstorm fomatter it immediately delivers a "Command 'Format Document With...' resulted in an error." and "Failed to format document" message... I also tried leaving out .xml and also just specifying the folder but nothing works.. (phpstorm is closed as well btw)
edit: okay apparently xml code is being ignored.. does not matter for this question, anyway
Why do we need to save the file before formatting ? Many other formatting extensions also use external formatters, but as far as i know - they grab the file content, create a tmp file, run it through the external formatter and then inject the result back. Just check some of them and do the same.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.