How to enable atom-racer documentation in popup list? - rust

The popup list works, but doesn't display the documentation of the selected item.
In package settings the "Show Documentation" and "Include Signature in Documentation" options are enabled.
How to make it look like this?
I'm using:
autocomplete-racer 0.1.3
Racer 2.0.6
Atom 1.13.1
Rust 1.16.0
Gentoo x86_64

If you still haven't figured this out, simply try disabling or uninstalling the racer package.
The autocomplete-racer package implements its own autocomplete provider which includes the documentation you're after. Based on what you're reporting, the racer package is probably taking precedence and as such you'd be limited to its autocomplete provider. Use one or the other, not both.

Related

How do I tell VS code what toolchain I want to use?

After installing extensions for Rust, I get this error:
To properly function, the extension needs to know what toolchain you
want to use.
Press Close to select toolchain :)
The extension will provide a prompt after you close that prompt, which allows you to select the toolchain you want. You can see the toolchain that you selected in your preferences file.
As the message says, you must choose a toolchain (documentation here):
$ rustup default stable
for the stable Rust, or
$ rustup default nightly
for the newest development version.
If you only want to play with Rust, I advise you to use nightly Rust because there are more new things in it.
Add this to your configuration with toolchain you want to use to enforce it in VS Code:
"rust.rustup": {
"toolchain": "stable-x86_64-apple-darwin"
}

Intellij - Disable "whole project searching"

When I want to find usage of accessors in my Java class IntelliJ perform searching in whole project which hangs whole IDE. Can I disable or narrow this "deep" searching?
I am currently using the latest version of IDEA Ultimate--(2017.3)
In the menu for accessor usage, there should be a filter icon that you can use to narrow the search to a group as you define it. See the below link for more info:
https://www.jetbrains.com/help/idea/finding-usages-in-project.html
hope this helps!

I do not know how to get sublimelinter-html-tidy to work

I have sublime text 3, but after I installed sublimelinter-html-tidy through the 'Package Control: Install Package', nothing changed. I also have Emmit, Bracket Highlighter, Side Bar, and a few others installed on my Sublime 3, and they all do what they are meant to do. They work. Only sublimelinter-html-tidy doesn't do anything, even though it is in my instaled packages.
Any help, or if someone could point me in the right direction, would be great.
When installing new packages, I strongly suggest reading the documentation on packagecontrol.io. In the case of SublimeLinter-html-tidy, you will notice that there are two prerequisites: SublimeLinter3 and tidy. First, though, please read through the SublimeLinter docs to get an idea of what the plugin is, how it works, and how to set up specific linters. Make sure you read the installation instructions. Next, install and set up SublimeLinter via Package Control.
In order for SublimeLinter-html-tidy to work, you need to have tidy installed on your system. The instructions are in the docs I linked above. Once it is installed and you have verified your PATH as described in the SublimeLinter docs, you'll need to configure tidy. Documentation is here.

"Jump to definition" in Rust

After years of coding in modern IDEs (Visual Studio, Xcode, JetBrain's products) I'm quite used to invaluable Jump to definition feature. It is especially invaluable for system libraries and frameworks when you yet learning the core features of the new language.
Is there any way to achieve the same functionality for the Rust combined with any modern IDE or text editor? Any vim, sublime text plugin?
IDE support for Rust is not there yet. There exists at least the Racer project, that provides a jump-to-definition feature among other things.
Racer is intended to be integrated into any IDE/text editor, and ships with an emacs integration.
In Vim and emacs you can use ctags to get you a lot of the way there; the language definitions are in src/etc/ctags.rust and you can produce tags for the Rust distribution with make TAGS.vi (or make TAGS.emacs for emacs’ format). See mk/ctags.mk for more information.
For setting them up and using them in Vim, see :help tags.
There is a project called rusty-tags generating ctags for Rust. At the time of this post, it is still actively maintained.
The RustDT IDE now supports Open Definition functionality, using the Racer tool.
Sublime's RustAutoComplete has a working Go to Definition using a separately installed Racer.
I'm using it and it works.
That being said, in 2014 the language is still in a flux and the Racer functionality is still limited.
I currenly have "auto_complete": false and only use the completion manually (with a keyboard shortcut) in order to avoid some Racer crashes.
Emacs can be integrated with rust-analyzer via lsp-mode. This will allow you to navigate the source code using Rust's type system. I describe a detailed setup in the code navigation section of my Rust with Emacs guide.
dumb-jump works well for rust.

Is there syntax highlighting for assembly in Sublime Text 2?

I'm unable to highlight my assembly.
No, but since Sublime Text 2 can read Textmate language definition files (.tmLanguage files), you could easily add support to Assembly by copying something like https://github.com/foxostro/x86-assembly-textmate-bundle to your "Packages" directory (C:\Users\hugo\AppData\Roaming\Sublime Text 2\Packages on my Win7).
There is now a much better answer to this:
In Sublime Text, just go to Preferences > Package Control > install packages. Once there search for "mips-syntax" and hit enter on the result.
Once it installs you should be able to select MIPS as the syntax highlighting for whatever file you're editing.
Edit: Of course, this does assume that your Sublime has Package Control. You can get package control to do this and more at: http://wbond.net/sublime_packages/package_control
I've found another one Assembly x86 syntax definition.
It seems that this guy had done a huge amount of work, and keeps the syntax updated. At least at the time of writing the last change was 9 days ago.
He has also this post on Sublime forum.
GNU Assembler (GAS) x86(-64) syntax:
I know there's a chosen answer, but for anyone else who comes here in the future, you have to specify which syntax/machine you want. Assembly comes in a lot of different flavors for a lot of different machines. Other answers have given Intel x86, NASM, SPARC, and MIPS. When I visited this page back in 2014, I was looking for a good GAS/AT&T syntax def for x86, which I never found.
So naturally, I made my own. It's really an x64 highlighter, but of course that includes x86 too.
It's also on Package Control. To find it, type "gasx" into the search field.
I also ported it over to Atom (available from Atom packages), Vim, and Gedit.
Like others, I noticed a distinct lack of SPARC syntax highlighting in Sublime Text 2, so I rolled my own. It's fully functional, and has its very own entry in Will Bond's Package Control. With Package Control installed, you can install my package in Sublime via Ctrl+Shift+P -> Package Control: Install Package -> SPARC Assembly Syntax.
Complete install instructions and usage tips are available on the Github project page.
Old question, but there is this one: https://packagecontrol.io/packages/NASM%20x86%20Assembly
I know the question was for Sublime 2, but if you want a nice highlighter
I'm using the MasmAssembly on Sublime 3 and found that its quite good. It highlights even ZMMs registers and the lastests SSE instructions.
You can install it using the package control plugin, nevetheless here is the repository:
https://packagecontrol.io/packages/MasmAssembly
AVR-ASM is also available!
See answer by Bitwise but search for AVR-ASM.
I had to install Package Control first:
Win/Linux: <Ctrl + Shift + P>
Mac: <Cmd + Shift + P>
...then type "Install Package Control" and press <Enter>

Resources