I'm using IDEA 14 and have installed Ruby support to get syntax colouring for Vagrantfiles. Unfortunately it now complains about missing properties. From my very limited understanding of Ruby I think need to import some sort of dependency (Gem?) that would let IDEA know all the properties available, but I don't know how. In Javascript you could just list libraries for project and it would recognise and offer autocomplete. I tried looking for similar configuration option for Ruby but came up empty.
I could just switch Inspections off, but I'd rather get it to help me than fight it.
Related
(this is on a OSX latest 10.9.x)
Some of the shortcuts work with the tab, others not..
for example:
.class>ul>li*5>a
when tabbing gives
.class>ul>li*5>
while
div.class
gives correctly
<div class="class"></div>
Also html:5, input:radio expansion doesn't work (only on CTRL+E).
Should I look my key mappings? Could something from OSX be interfering? (I use OPTION+TAB to switch windows with the help of Karabiner...
Glad that helped.
Rather than looking at all plugins installed, you may want to first try entering sublime.log_commands(True) in the ST console. Then try inserting as normal. If it's another ST plugin performing an action, the command name will be listed. If you don't recognize the name of the command, you can use something like FindKeyConflicts to see what package it's associated with. The above is a plugin I wrote, but I'm sure there are other plugins that do the same thing. In most cases, the name of the command is enough to find the offending plugin.
Also adding your solution here to make it a bit more clear.
I found my answer there: https://github.com/sergeche/emmet-sublime/issues/363. Conflict with ST's autocomplete. Commented it out, and we're good. I guess now I'm missing some out of the box snippets but well.
If you would like to see the default snippets, without having to search/extract them manually, you can try using https://sublime.wbond.net/packages/PackageResourceViewer. Another plugin I wrote to help with viewing those packaged files/plugins.
All,
I have been working with vim for some time now, and love everything about it - there is only one thing I really miss from IDEs like RubyMine, and that is advanced autocompletion.
For reference, here is my standard VIM setup: https://github.com/wrwright/.vim
I have tried ctags with omnicomplete + supertab, and the one major element I miss is the ability to bring up a context sensitive list of attributes/constants/methods. For example, as I learn RubyMotion, I'd love to have some help remembering iOS SDK constants/attributes/methods, but my VIM autocomplete stops with suggesting class names..or if it does suggest methods/attributes, it lists a ton of methods/attributes that don't even apply to the class I'm working with.
I'd like to (simple example) be able to type UIColor.bl and have it autocomplete with UIColor.blueColor (or suggest if there are multiple options that start with "bl" that are properties of UIColor.
RubyMine does this very well, and if I can get VIM to be similarly smart with autocomplete it would be heavenly (and a great boon while learning RubyMotion/iOS Development.
I have also tried SnipMate (and even a RubyMotion tailored variation at https://github.com/rcyrus/snipmate-snippets-rubymotion), but that doesn't seem to offer the features I'm looking for either.
Relatively satisfied with stock Vim's omnicomplete + vim-ruby and vim-rails having completion abilities on par with NetBeans but with all the bells&whistles of Vim and much lower resource requirements, of course.
From my .vimrc concerning completion options :
autocmd FileType ruby,eruby let g:rubycomplete_buffer_loading = 1
autocmd FileType ruby,eruby let g:rubycomplete_classes_in_global = 1
autocmd FileType ruby,eruby let g:rubycomplete_rails = 1
One thing that I have had a bit of luck with Rubymotion is YouCompleteMe and enabling tag Support. you will need a lot of ram(YCM uses ~2GB when indexing a large tag file) because the tags that rubymotion uses are about 40k tags.
The downside is that the rubymotion people don't seem to want to review pull requests and provide any feedback so I am not sure if they will add the needed things to the rake task that creates the tag files for ycm to work correctly out of the box.
To get it to work you need to set the tags files correct
set tags=./tags;,tags;
and then you need to setup ycm to complete off tags.
let g:ycm_collect_identifiers_from_tags_files = 1
you need to make the ctags file compatible with ycm as well. This pull request does that. You need to add a language field to the ctags creation and then change bridgesupport to ruby.
pull request for that
after that you need to run rake ctags in the root of your project.
If you don't want to modify the project.rb file you could probably create your own rake task that does pretty much the same thing.
Yes, Vim is an awesome... text editor.
As such, it can't be expected to match any IDE's "code awareness". Furthermore, it completely relies on the community for providing more than default support for a given language. If google or the rubymotion site didn't help you to find a serious "autocompletion" solution I doubt you'll find it here.
The process explained in the blog post below sounds ok, if not very precise on the vim configuration front.
http://rayhightower.com/blog/2013/02/12/automatic-ctags-with-rubymotion-and-vim/
I am very new to Flex/Adobe FlashBuilder and I am running into an "import not found" error. Coming from a Java background, I understand this is more of a question of importing the equivalent of *.jar files in Flex/Flash. But how exactly I should go about resolving this, I am unaware.
Anybody want to help and get some points :) ?
If you're a beginner probably everything you import is included is Flex framework or is made by you. If you import your own classes remember to preserve package in their names (if the come from different package). Check classes names for spelling errors.
When using class in code you can use content assist (Ctrl+Space), then imports will be added automatically.
You can also check what quickfix lightbulb says (it's the same as in Eclipse as FBuilder is based on it).
You can make your question much better by including the code that causes the error.
I've been looking around the web for an hour and I'm just giving up to ask it here...
I've got to work under Ada. I managed to make gnat work as a command line to compile my files.
But I want to be able to have proper projects in Xcode. My problem is that I've found some templates on the to make ada default templates, I've copy pasted them a bit everywhere (/library/developer/ application support etc) but they never appear in the list when I want to create a project.
My other problem is that when I create an empty project and add a .adb file to it I can't compile at all... How do I specify that I should use gnat with it?
I'm sorry for all these questions if they are stupid but I can't find the answer...
Two alternatives that may be of interest: the Ada plugin modules for NetBeans and the Ada 05 Language Module for BBEdit 9.x and TextWrangler 2.x .
FWIW, templates live in /Developer/Library/Xcode in Xcode 3.1.4.
If you are using the XCode Ada Plugin from here, it looks like it was made to work with Xcode 3.0. You might try downgrading to that and see if you have any better luck.
Personally, my IDE of choice is Emacs, so I can't go into any real detail about XCode past that. I'd suggest talking to the MacAda mailing list if you don't get a good answer here.
I am wondering if it is possible to set VisualStudio IDE so it highlights private/protected/public variables of the class differently as well as change formatting on locals (i.e. variables that are either passed in or declared inside a function, like this).
I did not find any such options in the normal Fonts and Colors menu of VS. Also a search on SO reveals that (at least as of 2 years ago) only add-ons provide such features. But is there a way to manually edit some file? Just because we don't get a nice UI to edit, doesn't mean underlying framework automatically doesn't support it. I mean add-ons have to plug into something to do their magic in the editor. Any insights into this issue?
Thanks!
EDIT: I have found the following information on MSDN Syntax Highlighting (Managed Package Framework). But the explanation/examples given are woefully inadequate. Does anyone know of a more extensive docs/tutorials/etc. for MPF?
I could be wrong (probably am) but I think plugins that do what you want replace the default highlighter in Visual Studio, so I don't think there is a file you can edit. As far as I know, you need a plugin. ReSharper might do this...I'm not sure though (I don't use it)