Error while setuping CodeSniffer in PhpStorm with remote interpreter - phpstorm

I have setup remote interpreter with php7.2. Now I want to setup remote CodeSniffer. I have setup it remotely with pear. However now I PhpStorm does not allow me to select remote interpreter. It shows the following:
CodeSniffer is saved in IDE settings, but selected interpreter is defined in Project settings. Please, select another interpreter or change visibility for this one.
I wonder how I can change visibility for CodeSniffer. Is it possible to use remote remote CodeSniffer at all?

Code Sniffer settings and bound remote interpreter settings should be stored on the same level of settings (project or application) in order to keep PhpStorm settings in consistent state.
Unfortunately, till PhpStorm 182.2371 there was a limitation which doesn't allow to store PHP Code Sniffer/Mess Detector settings on project level (please see details in corresponding issue WI-19525), so there was no way to bind PHP Code Sniffer/Mess Detector to interpreter defined on project level settings and this error message appeared.
Please update your PhpStorm version, it should work fine starting from PhpStorm 182.2371

Related

Pulling remote changes from a development server in PhpStorm

For most projects, I work in a local Dockerized setup, but once in awhile, I have to work on a project that lives on a remote development server. Using tools > deployment > configuration, I have set up sftp access to the server.
Now I can't seem to find a way to download the relevant files from that server.
I could swear that there used to be a menu option under Tools > Deployment to do this. Something like pull files from server.
Did this option go away with a recent update? Is there another way to do this from within the IDE (preferably without pushing to version control every time I want to test a change)?
===
Edit: I am using PhpStorm 2019.2. The contents of the Deployment submenu are:
Configuration
Options
Automatic Upload
Browse Remote Host
I have tested the sftp connection from within the configuration screen in PhpStorm, and it is working. Browse Remote Host also appears to work.

How do you work with remote projects and PhpStorm?

My setup is like this:
The project runs on a LAMP server. I cant run the project on my working machines, they are Windows based and the project needs Linux.
My IDEs are on different Windows machines (work, home, other_work).
#work I have PhpStorm #other_work I use a SSH client and edit files with nano or vim and #home I use PhpEd.
How can I keep my project in sync with PhpStorm?
In PhpEd I had never such problems every change is instantly visible in the IDE. I know that I can use the remote Host to see the actual files and change them, but I want to use the project features from the IDE like go to definition.
Has anyone solved this problem?

How to simulate remote host deployment with PhpStorm?

Some FTP clients, such as Transmit, offer an option to simulate the synchronisation between a local and a remote directory. Basically what it means is, that you get a list of files that would be changed, instead of actually moving the files.
I was hoping to find such an option in PhpStorm's Remote Host Plugin, but I searched for it to no avail. Did I overlook something, or does this not exist (yet)?
PHPStorm can sync with the deployed version if the remote host has been configured. It shows the difference and you can select what to do with each file. See PHPStorm Documentation

PhpStorm - working on a remote server

I have never used PhpStorm before for remote development because I used to work locally.
I am wondering if there is a method to set PhpStorm to work in such a way so it will be identical, in terms of functionality, to local development?
At least, debugging and jumping to functions/variables declaration across the whole project?
Tried to google it but found nothing. Maybe someone knows?
There are two ways to work with remote server development :
With a physically server
With a Virtual Machine locally
Those 2 ways are identical workflow parameters for working with this.
In PHPStorm the main area for parameters workflow deployement on remote server is : PHPStorm > Settings > Build, Execution, Deployement > Deployement
In this area you config the connection on your remote server (you before must config access on your remote server). SFTP is the best way to use this connection.
Most important to select where you want to send/push your modified code with Root path. Upload manually or use the sync auto functionality of PHPStorm use this parameter.
Mappings tabs is not very important you can keep this without change except for 'Deployement path on server' which just type '/' character if you have selected the good 'Root Path' in tab before.
For starting you can forget the Excluded Paths tab. after if you work on symfony framework you use this to exclude the vendor directory.
Don't forget to set the options 'use as Default' if you want to upload or sync auto more fastly and friendly.
Now you must parameters and config correctly your remote server for server be able to run the code which send it with PHPStorm. Dependly on your framework or other technologies you use.
Finally you have :
PHPStorm config OK for send correctly your modification code (auto or manually)
remote server config OK for executing and running correctly the code you are before sending from PHPStorm to your server remote
WARNING : you never run your website into your local OS.
IMPORTANT : config a web server on your remote server and don't forget to install layer for PHP executing script.

SSRS 2012 configuration error when trying to use a custom authentication extension

I am attempting to implement a custom security extension for an instance of SQL Reporting Server 2012, and am having some trouble. This extension is to hook into an existing application that uses Forms authentication.
I've implemented the appropriate required interfaces (IAuthenticationExtension and IAuthorizationExtension) and, as far as I know, have changed the configuration files appropriately (as per MSDN's instructions). Also, I've copied the assemblies over to the report server (to both the ReportServer and ReportManager's bin directories).
The error I'm getting is:
library!ReportServer_0-4!44c!11/20/2015-15:41:12:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: Could not load Authentication extension, Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error. ;
I've verified that reverting back to the report server's default settings (and thus changing the authentication mode back to Windows) works, so there is nothing wrong with the installation of the software. I've also read this question over at ServerFault, but I don't really want to have to rebuild SSRS if I don't have to.
At this point, I'm not trying to do anything fancy--I'm just trying to make sure my extension is loading properly.
Thanks for any help.
I in fact found the problem. Make sure when you're setting up your custom extension in rsreportserver.config that you specify Forms for the Name attribute for the Extension element (if you are doing Forms authentication). This is under the Extensions parent element
For example,
<Authentication>
<Extension Name="Forms" Type="<TypeName>,<AssemblyName>"/>
</Authentication>
I'm guessing since SSRS loads specific HTTP modules to handle various forms of authentication (e.g. Windows, Forms, Passport, etc.), it is looking for the name of one of those modules when adding a custom extension.
From MSDN:
In practice, deploying a custom authentication extension requires multiple steps that include copying assemblies and application files, modifying configuration files, and testing.
It sounds like you have modified the report server configuration, but the error seems to indicate that the custom authentication assembly is not available on the report server - has this been installed on the server?