-
Notifications
You must be signed in to change notification settings - Fork 63
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
Greater sign does not work in my Windows Sublime installation #106
Comments
Seems like my Key Bindings and User Bindings are empty. So I assume that has to do with it. I really wonder since syntax highlighting works and so the package must have been installed properly. |
Fixed it by installing everything again. Thanks anyway |
This exact issue happens to me periodically as well on my Mac installation. The only solution is to remove the package and re-add it. |
Hey @danwatt Unfortunately I'm going to need more information since, I just haven't been able to replicate this issue. |
I have for sure encountered this in CFMs that have CFScript blocks in them. I have not tried creating a new empty file. Copy and pasting works fine. I will check the keymap file next time it happens, and post a gist of a file that exhibits this behavior. |
If you're having problems with this please let me know the following: Enter console (`ctrl+``) and type:
it should print the character What does the console pane output when you enter
and type the Is the |
Hi Atomi, Just to be clear and sorry if I didn't mention this already – I am using Sublime Text 3 and the dev version. Thanks for the reply here. Unfortunately this didn't work for me. After turning on the logging, I get: Both cfm and cfc files have this problem. ">" doesn't work in any part of file. I hope that helps. Thanks, |
Typing a '>' into a CFM: view.window().run_command('close_cftag') - does nothing Sublime 2.0.1 b 2217 |
Yeah I don't know. It looks like the command Are you guys getting completions? You could try adding a print statements to various parts of the run() method in the CloseCftagCommand class to see if it prints to console. Here is the relevant command source code for Sublime Text 2 If you do see your print statement being executed try to return out of the command by adding # insert the ">" char
for region in self.view.sel():
self.view.insert(edit, region.end(), ">") The If you don't see your print statements being executed check the console log `ctrl+`` for any errors, if you don't see any try introducing bad code in the run() method of the CloseCftagCommand class to check if Sublime is indeed running the command. Post back any relevant console information if you can. I've tried clean installs on both versions in both builds and they are both working for me so I'm having a really hard time figuring out what could possibly be going wrong here. I'm really sorry I can't be more helpful. Correction: region.end() returns the greater of properties a or b of that region which doesn't necessarily translate to the cursor's position. This should be changed to region.b although inconsequential in this case as the region properties are both the same when there is no selection. |
Thanks for all the help with this. I didn't have time to try this I'm afraid and for now, I've just gone back to SBT2. On 7 Feb 2013, at 23:16, atomi [email protected] wrote:
|
WIERD, reinstalling from git developer branch didn't fix, but touching the coldfusion-plugin.py did. (no source changes) All i did was add and remove print statements and it works fine now. I suspect some cache or pyc file somewhere? dunno, just happy it works for me now ;D |
Thanks for the update @jamie-pate |
ok, i think i know what it is... I've noticed this type of issue a lot with migrating plugins to ST3 |
Sorry @atomi the previous error was invalid because it was cf9, here's the error I've been seeing. (I removed the previous comment)
|
Thanks @tollus I'll take a look at it |
Hi @tollus the API for Sublime Text 3 was changed in this most recent build to allow some API calls to populate data prior to plugin_loaded() (like settings calls and version info). This also means that the development branch of the ColdFusion plugin will need to be updated to accommodate the changes. |
@atomi This code change seemed to fix the issue, though I don't know if this makes me miss something? --- a/dictionaries/__init__.py
+++ b/dictionaries/__init__.py
@@ -9,7 +9,7 @@ def _init():
# load dictionary selectors and completions for ST2
-if sublime.version():
+if int(sublime.version()) < 3000:
_init()
# load dictionary selectors and completions for ST3 |
@tollus Yeah that hack is there because before 3013, sublime.version() and sublime.load_settings() would always be null in ST3 so we had to wait to run _init() until after plugin_loaded() |
oh okay, so maybe it's as simple as just combining those two statements for the fix? if sublime.version() and int(sublime.version()) < 3000:
_init() |
I think if sublime.load_settings() is working in 3013 we shouldn't need _init() at all or plugin_loaded(). |
Ah, okay, sounds good to me. Let me know when you make the change and I can test it for you. |
@tollus Your fix
should be fine. |
@atomi what and where do I need to edit to fix this? |
@Critter I haven't been able to reproduce this and I've been using this plugin almost daily. I would try removing the plugin and restarting Sublime then re-installing. |
@Critter I'll take another look through at the close_tag command for you when I get a chance. |
I'll give reinstalling a go in the meantime... Thanks. |
Unfortunately it doesn't happen on my build @redtopia so tell me when it happens. I made some updates right now but I suspect it's being caused by Sublime bailing and not loading the coldfusion-plugin.py file when it encounters something it didn't expect. I just started doing some CF again so I'll try to make some more updates in the coming weeks. |
Not sure, but it might happen after I wake my machine up... sometimes windows reports some sort of funky process error, and I think it might be sublime, but I'm not sure. |
This is my first ever post here so am not sure how much information you will need so here goes. I am running OS X mavericks with ST3 3065 I have package control installed and I manually installed coldfusion via the git instructions, I have tried the uninstall of the plugin option I made sure I removed all record of it, I tried the touching the file suggestion earlier, that didnt work. I have restarted my machine a couple of times. |
using the dev package solved this problem for me...Thanks for having this discussion. I am enjoying Sublime with CF :) |
Oh joy! This works. Thanks for the tip. Finally I can edit these files at work with syntax highlighting. |
I've been struggling with this issue for a couple days. None of the above solutions worked for me. I've removed and reinstalled different versions and builds of Sublime, removed and reinstalled the package via git and zip; checked out different branches, created new branches to test... all without success. By using It turns out, I had been placing the ColdFusion package in the wrong folder. I assumed the "User" folder was where I (the user) was supposed to store my packages so I was putting it here: As soon as I moved the package to tl;dr - make sure package is installed here: %APPDATA%\Packages\ColdFusion edit: Going back through the thread, I see that most have not made the mistake I did. Oh well, hope this helps someone. |
@samwscott THANK YOU |
This has worked for me on the various ST3 dev builds on my Win 7, 8.x, and Mac laptops. Thanks! |
can you have a look at my thread then robred and tell me what I am doing wrong please? :) |
I had this problem (Windows 7, Sublime Text 3 demo) when the package was in a folder named |
As @Lukenickerson said, the folder has to be named ColdFusion or the > key stops working as a side effect of some paths not working anymore. |
This happened to me today and was fixed by re-cloning the Development branch of the git repo. I had noticed that the console had other warnings going on when I tried to run the |
I ran into this issue today after downloading ST3 beta and then installing the ColdFusion plugin from github.com. I used the .zip download, unzipped it and placed the inner directory Coldfusion (renamed from Coldfusion-master) into the Packages directory. I launch ST3 and at first it only exhibited this issue with not being able to type the greater-than symbol. But then it started auto-deleting the plugin directory from the Packages directory after launch of ST3. I would paste it back in there from my Downloads directory where I had unzipped the .zip file and renamed it. But repeatedly I would launch ST3 and watch it vanish. I finally resolved the issue when another developer here said he used the git method of installing and has had no issues. So I installed git (the command line version) and then used the git method to install the plugin. Now it not only doesn't delete itself but I can type the greater-than character! :) |
Did you get a zip of the development branch? |
I don't know... I just grabbed whatever is in the right side bar to Download .zip. |
The read.me says to grab the development branch otherwise in my experience a lot of things, such as this, don't work as expected. -tim
|
And indeed, in this very ticket, I gave a direct link to the development branch zip, in June 2014. Here it is again: https://github.com/SublimeText/ColdFusion/archive/development.zip |
Think I know what's going on with this. It appears there are currently 2 default key maps in the Default.sublime-keymap. I removed the "move" keymap and it's now working again.
|
Actually, it looks like this is the main part of the issue in the first key map.
|
I am also having this issue, but with ST2 (not 3). Got it installe don several machines with same problem on all of them. Doesn't even work in a blank file. If I use the "CFML (do not use)" syntax, then it works. |
nathanstandford2 hit it on the head. I tried all the other methods above with st3 and nothing seemed to work. I commented out that second key mapping block and the > key is working great. |
If you download the .zip file of the development branch (instead of cloning with git) make sure you rename the package from 'ColdFusion-development' to 'ColdFusion' when you install it. This fixed the issue for me. Another symptom that will tell you a rename is needed is if you browse to the plugin default settings through the Preferences menu and the file is blank and prompts you to save it when you close it. |
Using Sublime 3 portable version. |
still have that issue on version 2 On Wed, Aug 26, 2015 at 4:59 PM, zadams125 [email protected] wrote:
Russ Michaels My other sites/projects |
Just wanted to say I resolved by issue by going to preferences > browse packages and deleting everything in the ColdFusion folder and dumping the contents of the development package (https://github.com/SublimeText/ColdFusion/archive/development.zip) in it. I restarted Sublime Text 3 for good measure. Until then I was just copying and pasting the > to get around it. However, I am glad to have the issue resolved. |
I resolved this problem by restarting Sublime Text. |
Funnily enough in the CFML (do not use) syntax it works. Just in the ColdFusion Markup and Coldfusion Component Syntax it does not work.
HELP!
Gert
The text was updated successfully, but these errors were encountered: