Closed
Description
Sublime Text Version
Sublime Text 3 (Build 3126)
Rust Enhanced Version
2.4.0
Operating system
Windows 7 Ultimate
The Issue
When I set "rust_phantom_style": "none"
in settings it does not show the messages inline as it is supposed to (works with no problem), but that leaves no option to actually see the error/warning messages.
Recommended Solution
It would be great to have a third option (as oppesed to "normal" and "none") that lets us see the errors/warnings when hovered over the outlined part of the code with the mouse (like a tooltip). I think this is the way big IDEs work (at least Eclipse and Visual Studio).
Activity
Add "popup" option to "rust_phantom_style".
Add "popup" option to "rust_phantom_style".
ehuss commentedon Dec 10, 2017
Seems like a good idea. I opened PR #230 with an implementation. Can you check it out and give it a try and let me know what you think?
serhat359 commentedon Dec 10, 2017
Could not get it to work on my computer, nothing show up when I hover. Also the gutter images on the left appear black. Could that be related to the problem? It is possible that I messed up with my settings.
ehuss commentedon Dec 10, 2017
That is strange. Did you uninstall the Package from Package Control before you cloned the git repo? Did you try restarting Sublime? Are there any interesting messages in the Sublime console when it starts?
ehuss commentedon Dec 10, 2017
Just had another thought. It might be sensitive to the name of the directory when you check it out. Currently it should be "Rust Enhanced" with a space. I'll push a fix in a while that fixes that.
serhat359 commentedon Dec 11, 2017
I just figured out that gutter images appearing black was because of the Color Scheme. Just to make sure, I need to hover over the outlined part of the code, right?
ehuss commentedon Dec 11, 2017
Yea, either hover over the outline, or the gutter icon.
Add "popup" option to "rust_phantom_style". (#230)
jasonwilliams commentedon Dec 19, 2017
@serhat359 this should be fixed in the latest release https://github.com/rust-lang/rust-enhanced/releases/tag/v2.5.0
ysimonson commentedon Jan 25, 2018
Is this working? I'm on v2.6.0, and have this in my user settings:
"rust_phantom_style": "popup",
, yet phantoms are still showing in line:ehuss commentedon Jan 25, 2018
@ysimonson It should be working. Make sure you set
rust_phantom_style
inRustEnhanced.sublime-settings
(not your Sublime settings). You can open it via Preferences > Package Settings > Rust Enhanced > Settings (or the Right Mouse > Rust > ... menu).2 remaining items