-
Notifications
You must be signed in to change notification settings - Fork 64
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
Auto-close problems #149
Comments
I am also finding it impossible to turn off this feature. In my package settings for "Settings - User", I have "auto_close_cfml": false set, but the package still auto-closes. |
Bump... I am finding it incredibly frustrating to work with the constant incorrect auto-close markup insertions. Is there any way to turn this feature off until it works better? |
I don't know I've been busy with devops stuff. Are you using the development branch for ST3? |
I'm using the latest beta... build 3065 |
Any movement on this... there are numerous problems with this feature and all I want to do is turn it off. Here's one that messes me up all day long:
As you can see, autoclose is trying to close cfset. I realize I could modify my coding and close all CF tags, but I would much rather simply turn this feature off. Is there any way for me to do that????? PLEASE HELP! |
You can remove the ">" keybinding in the CF package all together if you don't want autoclose but disabling it via settings works for me. |
Here's my User Settings under: Package Settings -> ColdFusion -> Settings - User
Here are the default package settings: Package Settings -> ColdFusion -> Settings - Default
I just installed the latest release of ST3 (3066), and restarted. With the settings above, I cannot turn off this feature. I've restarted... autoclose continues to happen. Going the other route, by changing the key bindings, I'm assuming I would need to add something in the Key Bindings - User for the ">" key. In the Key Bindings - Default, I see this:
Exactly what should I do to this, and should I edit the Key Bindings - Default file, or add something to the Key Bindings - User file? |
Is this project dead, or will is any work being done to support ST3? I really need a solution to this problem or I need to find a new editor. |
This project is open source, free and hacked on by various people in their free time. The important part is 'in their free time'. There are two things in play here, Sublime Text, which you've indicated you are using the latest version of (3066), and the CF package. Are you using the latest 'develop' branch of the CF package? Installation instructions are outlined at the top of the README.md file of this Github project. |
I'm running a recent version of ST3 and the development branch of this package (on Windows). I turned auto_close_cfml to false and if I now type it no longer automatically creates the closing , so it does appear to work. |
I don't have git installed... can I download the zip folder and unzip it into my packages folder? That's how I originally got it working. |
That should work. Change the branch on Github to "Development" and then when you download the zip it should be 'development.zip'. Then unzip and figure out where your 'Packages' directory is. What OS are you using? |
Thanks... I'll try reinstalling. I'm running Windows 7. |
Still not working. Here's my test case, which demonstrates the problems I'm having with this package. <cfif x EQ 1>
<cfset y = 1>
</cfset> After typing x EQ 1>, the suggestion menu is highlighted to "bitMaskClear", so if I hit the ENTER key, bitMaskClear is inserted into my code. I have to hit ESC first, which is also a huge problem I need to fix. Then, I enter cfset y = 1>, no problems... phew! Then I enter </ and as soon as I enter the forward slash, auto-complete tries to close my cfset tag. Is there anything I can do to make this work better? |
Let's start by trying to get a super-clean repro. Remove or disable all other pugins except this one and make sure your problem still exists. |
For what it's worth, I do see the same
You have to have the XML package installed for this to work. What this does is when I type
I know it's a workaround, but if you give it a shot you might find you like it. Like I said, I never even realized this was a problem because I always use |
OK, I'll give it a try. And because you do it this way, you probably don't see the auto-suggest problem in your work flow either, right? |
I suspect that your particular autosuggest option ("bitMaskClear") is coming from another one of your plugins. |
I temporarily disabled all my packages and the problem still exists. |
Like I said, I see the |
Weird. I'm on 3065, Windows 7. If I type
As soon as I close the closing > the CFIF tag autocompletes the cfif so I end up with:
and puts my cursor between them so I can type the cfset. |
3065, OSX 10.9.5 |
I'm running ST3 3066. I get that behavior (minus the new line) when I have autocomplete turned on. When I turn it off, I get the autosuggest problem, and as I showed you, it still tries to close when I enter </ |
My CF settings:
|
Ok, this is weird. I know I tried exactly what @redtopia outlined above and got the same result. Then I verified my sublime settings matched @jimpriest's (they do), turned on Quicktime and prepared to record a quick screencast, ran through it once quickly to remind myself of the steps, and it worked as @jimpriest described. Very weird.
Then I realized the difference: It works as expected in CFM files, but NOT as expected in CFC files. ... and then I tried to reproduce the issue on video (again) and it misbehaved in the CFM file too. I have no idea what's going on. |
I agree that this is messed up. I have not yet tried @atuttle 's XML plugin yet, but I cannot find any combination of settings that make this plugin work very well. The least offensive setting is to keep auto_close_cfml="true", but this still sucks because it closes everything, even <cfelseif ...> What it would take to turn off auto_close_cfml? |
@atuttle can you post the vids? |
@atuttle nevermind. When you type
So the problem is Sublime Text's own tag closing is set : I'll see if I can re-scope the cfelse tag so that Sublime doesn't consider it an html tag it should close. |
YES! That's it! Thank you SO MUCH! It would be great to rescope CFML because I want autoclose to work for HTML/XML. |
The auto-close feature appears to assume that all CF tags need to be closed. In my codebase, it's common not to close the ones that are not required to be closed (
<cfset>
and<cfmodule>
). Other problems:The text was updated successfully, but these errors were encountered: