idea-nginx icon indicating copy to clipboard operation
idea-nginx copied to clipboard

Plugin treats all files as nginx configuration files

Open mindhaq opened this issue 10 years ago • 4 comments

With the plugin enabled, all files in my project, no matter the file extension (e.g. php files, xml files) are treated as nginx config files. They all have the small green "G" icon next to them, and are parsed in the editor as though they were nginx config files.

IntelliJ 13.1.5, OSX 10.9

mindhaq avatar Oct 25 '14 20:10 mindhaq

Hey @mindhaq to fix this (in webstorm anyways) go to:

preferences -> Editor -> filetypes -> select nginx -> change the pattern to *.conf

michaelBenin avatar Feb 04 '15 17:02 michaelBenin

Note that this will result in changed syntax highlighting for other *.conf files. The default *.conf handler is set to SmartyConfig. Although most of us will not need it, it is still a problem. Many, many different configuration files use the generic *.conf extension.

I started using *.ngx for my nginx configuration files. This fixes the issue forever and does not collide with any known file extension.

Fleshgrinder avatar Apr 22 '15 19:04 Fleshgrinder

I've had limited success with this workaround. It seems to work for a while, but some unknown trigger makes many of the files in the project within a couple folders of root seem like nginx files again.

Love to know how to fix this, and whether this is a nginx plugin problem or a Webstorm 10 problem. I have noticed the plugin sets the default file extension to null (''). Wondering if this is what triggers the unwanted 'reset'.

The only way I've discovered to fix the problem is to change the nginx file type extension again. A bit of a pain.

Is anyone maintaining this plugin, or are we on our own to fork it and fix it?

cognivator avatar May 11 '15 01:05 cognivator

sorry this is not working on the intellij idea 15.0.5 .can you fix it .when I install it .nothing happened.just not installed.

holysky5 avatar Apr 13 '16 14:04 holysky5