Questions tagged [phpstorm]
PHPStorm is a commercial IDE for PHP, HTML and Javascript
99
questions
2
votes
1
answer
264
views
PHP Xdebug and WSL2
I have installed PHPStorm via snap into WSL version of Ubuntu because of this phpstorm/wsl2 defect I cannot use the Windows version of PHPStorm as it freezes frequently. When it works Xdebug works ok ...
1
vote
1
answer
65
views
How to make custom tags valid on PHPStorm?
There are some valid tags <esi:include dca="esi" onerror="continue" src="{{ esi_bottom_url }}"/> in some HTML files but PHPStorm reports them as bugs. How to make ...
0
votes
0
answers
32
views
PhpStorm function name suggestion with variables
How to make PHPStorm code completion to suggest function name with variables, not only it's name?
For example, I have next function:
function sample1($understandable_variable_name1, &$...
0
votes
2
answers
753
views
Indent of array in method in phpStorm
phpStorm is formatting arrays in method calls like this (auto code formatting):
$address = new Address([
'full_name' => $fullname,
]);
I expect it ...
0
votes
0
answers
76
views
phpstorm, import VCS file(local history) from phpstorm2017.2 to phpstorm2019.2
I want import or restore localhistory(VCS) files from phpstorm 2017.2 to phpstorm 2019.2
I have "changes.storageData" file from old phpstorm, last time I changed all directory of this ...
1
vote
1
answer
3k
views
Command 'phpcs' not found
I am trying to install PHPCS (PHPCompatibity) in my PHPStrom. For that I have installed PHPCS using composer with the following command:
$ composer global require "squizlabs/php_codesniffer=*&...
0
votes
1
answer
112
views
Got a few problems with phpstorm
I'm trying out the program the first time and I get errors and warnings that should not be there. because the page loads up just fine. I have screenshots.
categories.php
Undefined variable '$...
0
votes
1
answer
89
views
PhpStorm - Change deployment server for a project
How can I change the deployment server for a certain project? I have two remote servers.
I tried it by setting the default remote server to the other server but the old server is still getting used. I ...
0
votes
0
answers
560
views
Open PHP Storm on bash command-line without output
Since hours I'm trying to run my phpstorm from commandline, without having any output at all.
Reason:
Every day when I come to work, I have multiple tools to start... 2 different vagrant machines, ...
0
votes
2
answers
579
views
How to delete text not matching regex in phpStorm
Having a JSON logfile, I want to extract the product IDs to have a clean list:
{"comment": "comment.", "product":"100"}
{"comment": "comment.", "product":"555"}
{"comment": "comment.", "product":"100"...
2
votes
0
answers
239
views
Can't use XDebug in PHPStorm via a local PuTTY SSH proxy + tunnel even though XDebug log says a connection was successful
Here's a confusing one.
I need to use XDebug for a remotely-hosted PHP project. The remote server is firewalled and only accepts connections from a second remote server, so in order to connect to ...
1
vote
1
answer
281
views
IntelliJ | Make Git Branches Widget stick to corners
I am using PhpStorm and various other JetBrains IDEs. Currently my Git Branches widget floats when I click to bring it up or use the shortcut CTRL + SHIFT + ~. My current monitor setup makes this more ...
1
vote
1
answer
3k
views
PhpStorm database connection error
I get such error when making connection to the database in PhpStorm. I couldn't find a solution.
Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property manually.
0
votes
1
answer
109
views
PHPStorm sintax highlight for .html.twig
I noticed that phpstorm doesn't consider myfile.html.twig file as a twig file type.
If i use myfile.js.twig, it's considered a twig file.
Do you know why ? Is there a solution ?
6
votes
1
answer
8k
views
Where is located .ideavimrc file?
I try to find the .ideavimrc file to configure it. All the documentation I can find on Internet refers to ~/.ideavimrc
I can't find it whether I assume it refers to home/ inside Windows Linux ...
0
votes
1
answer
642
views
Webstorm LiveEdit not updating js files
When I am attempting to change my node server code and view it to live edit, I use the following address: http://localhost:63342/untitled4/app.js
but instead of the code running, I just get a text ...
0
votes
1
answer
376
views
PHPStorm 2018.5.3 - deployment does not auto upload a file changed by a file watcher until the window is refocused
OK, so an odd problem here.
So I have a filewatcher setup to copy a file from it's source directory to another directory in the repo. I have deployment and automatic upload configured. So I change ...
0
votes
0
answers
65
views
Text indentation with HTML Tag in Phpstrom
I want the same indentation for text as the tag has.
Anyone can tell the exact settings for Phpstrom editor
0
votes
1
answer
396
views
Remove auto generated comments in phpstorm
The comment in particular I'm having beef with is added when I tab complete the name of a method I'm overriding. Phpstorm helpfully adds // TODO: Change the autogenerated stub. I know. That's what I'm ...
1
vote
0
answers
125
views
Docker container xdebug with phpstorm issues
I need to debug (with phpstorm + xdebug) some php code inside a docker machine running on a vmware virtual machine.
The IDE is running on another vmware virtual machine.
I have some problems with ...
0
votes
1
answer
392
views
Added an external folder to a project in PHPStorm on MacOS Mojave
I'm working in PHP Storm, on a project that's using a package I'm developing in tandem. I've had a couple of workflows for this, but I'd really like to add an external directory (the package source) ...
3
votes
0
answers
535
views
How to fix this PhpStorm, Docker and PhpUnit issue?
I have three docker containers:
prefix-php-fpm
prefix-mysql
prefix-mysql-test
I have configured Docker, remote PHP interpreter and PhpUnit in PhpStorm.
But when i run tests which requires DB ...
0
votes
1
answer
321
views
PHPStorm not receiving debug connection when accessing the web server from a remote host
For some reason PHPStorm does not receive the debug connection when accessing the web server from a remote host. PHPStorm behaves like it is not listening at all.
If I access the web server from the ...
0
votes
2
answers
2k
views
Less Compiler is not working in PHPStrom 2018.3
I am using PHPstrom 2018.3 (latest Version). I am getting this error while I am using less to compile through file watcher.
Failed to run File Watcher ', Less'.
The watcher has been disabled.
Error: ...
0
votes
1
answer
700
views
What should my file watcher settings be for phpstorm?
I am trying to set up file watcher in Phpstorm for watching a main.scss file and outputting to a style.css file. I am really confused. In order for me to get a macro preview in the macros screen I ...
0
votes
1
answer
3k
views
Virtual File System on Windows 10?
I am a PHP programmer and I am looking for a way to create a virtual folder/file Structure, which means: i can copy only required files from anywhere (which would actually be linked to the original ...
0
votes
0
answers
432
views
Phpstorm constantly freezes up and is left hanging/unresponsive
I’m running Ubuntu 18.04, when I open phpstorm it often takes a very long time to index my files, while it does this it effectively maxes out my CPU (i7). If I try and open another project it’ll quite ...
0
votes
1
answer
2k
views
PHP Storm Interpreter is not specified or invalid
I got this error as mentioned below. I don't understand how to set one as there's no interpreter to choose.
I will appreciate any help,
Eve
0
votes
1
answer
1k
views
PHPStorm + docker + xdebug + db ssh tunnel
Locally I have following docker-compose configuration:
nginx:
build:
context: ./nginx
ports:
- "80:80"
volumes:
- ./../logs:/home/web/logs/
- ./../:/home/web/my-website.com/
...
1
vote
0
answers
135
views
Super+O and Super+Shift+O don't work in Ubuntu 18.04 and PhpStorm
I am using PhpStorm on Ubuntu 18.04.
I would like to use Super+O and Super+Shift+O shortcuts but I can't make PhpStorm register them, it behaves as though these keystrokes don't exist.
Does Ubuntu ...
0
votes
0
answers
44
views
PhpStorm 2017 autopopup completion not working outside <> symbols
If I type < symbol and then continue typing, autopopup completion works just as intended:
But outside of <> tags(either html or php - <a></a> or <?php ?>, for example) ...
1
vote
0
answers
169
views
Unable to make PHPStorm work with Node.js and Docker
Here is my setup:
Here is some of the errors I am getting:
So it seems I have two issues.
Something wrong with the networking.
For some reason it doesn't load my project into the container.
I am ...
0
votes
1
answer
52
views
JetBrains suddenly stopped working on second screen
I've had two screens for a while now (working on windows).
As of this morning, PHPStorm suddenly won't work on the monitor it's been working on for months!
By not working, I mean that when I drag it ...
1
vote
0
answers
110
views
Strange files shows up in my /home when Ubuntu starts
Recently, I've noticed some strange files showing up in my /home directory every time when I turn on/restart my computer.
They just appears and the names means nothing, I can delet them as normal ...
1
vote
0
answers
46
views
Live template for doc style comments in PhpStorm
How to set a live template in PhpStorm so that when I hit enter for a new line, it automatically adds an asterisk? Or maybe there is another way to do it, e.g. wrap with comments action?
/**
* More ...
0
votes
1
answer
1k
views
PHPStorm 2017.1 fails running remoted phpcs: "ERROR: The file ~/.phpstorm_helpers/... does not exist"
QUESTION UPDATE: I had mistakenly used the revision number for PHPStorm. The correct version is 2017.1, not 2017.3 as initially stated.
I recently updated to the latest PHPStorm (2017.1 March) and ...
1
vote
1
answer
221
views
How make fonts render in PhpStorm2017.1 good
In PhpStorm 2016.3 on Ubuntu fonts in IDE rendering perfectly, but in new version 2017.1 it's now again look bad.
How do I make the fonts look good again?
Solution for me:
I copied jre folder from ...
1
vote
0
answers
59
views
How to get ssh information automatically in phpstorm remote server list?
I have to work with lots of remote server for different projects.
It's too much annoying to update the same ssh informations every time for ssh terminal, phpstorm, filezilla, sequel pro and others.
...
0
votes
0
answers
1k
views
Adding and using 'PHP' External Libraries into JetBrains PhpStorm?
I'm having this problematic issue:
Anyone have an idea of whats going on, I have added the path to the folder in the 'Include Path' configuration in 'Settings' and still it's giving me that.
0
votes
1
answer
536
views
FTP upload - Failed to open “C:\Apache24\…\uploads\image2.png” for reading because it is not a file
I would like to upload some files including .php and images to server. I tried it via Filezilla and PhpStorm. All php files has been transferred well, but some images throws me an error with text:
...
0
votes
2
answers
2k
views
Wacom Intuos with touch scrolling not working in PhpStorm
I work with my mac in a doc so the touchpad isn't used most of the time so I use a mouse or my Intuos Pen & Touch pad.
Scrolling works normally in almost all applications except PhpStorm which is ...
0
votes
1
answer
284
views
PhpStorm 2016.2 Change the Debug Panel Font Size
The editor and the console font size can be changed with ctrl+mouse wheel (ref), but how do you change the debug panel font size? I've been all through Colors & Fonts and haven't been able to find ...
0
votes
1
answer
994
views
How do I configure a Less file watcher's output directory?
How do I configure a less file watcher to put the output css file into the same directory as the less file, rather than in a 'css' folder in the parent directory.
I've read the help here: https://www....
0
votes
1
answer
49
views
Redundant repetitive documentation links in PhpStorm quick-documentation when adding them manually
I'm using Php Storm 2016.2.1. To access the quick documentation for the jQuery API inside the IDE, I've got the jquery.d.ts from GitHub. When I introduce the file to the IDE through the form at File / ...
0
votes
1
answer
216
views
How to change the blue foreground color of text in PHPStorm?
How to change the blue foreground color of text in PHPStorm IDE?
I would like to be a Cyan color (#00B0F6).
0
votes
1
answer
81
views
phpStorm: global project favorites
i found out there's a favorites toolbar in phpstorm but it seems like it's only storing the current project's favorites.
is there a way having a global favorites projects/folders list which is ...
0
votes
1
answer
96
views
How can I stop PHPStorm tooltips from blocking the typing view?
This is getting to be rather annoying and has only really started happening recently (or I've only started noticing it recently) but the the documentation tooltip in PHPStorm has been coming in the ...
2
votes
0
answers
712
views
How to access the port of a reverse SSH tunnel on the hosts loopback device from within a Docker container?
I have the Xdebug PHP extension installed in a Docker container that runs the PHP-FPM of my development and testing environment.
A debugging client (the one build-in PhpStorm) listens on port 9000 on ...
0
votes
1
answer
420
views
How do I limit phpStorm to open files just from my defined scope?
I would like to know if it is possible to use this dialog window filtered to just one scope. I find this very useful, but unfortunately frameworks have tons of files I never want to edit, and ...
2
votes
6
answers
2k
views
Phpstorm not starting after memory dump error
I got an error message that not enough memory while pushing code and then I pressed the "Shutdown" button on that error and since that popup phpstorm does not start. Double clicking on the icon does ...