Skip to content

rust_phantom_style addition #229

Closed
Closed
@serhat359

Description

@serhat359

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

added 2 commits that reference this issue on Dec 10, 2017
e6d821f
cbca11e
ehuss

ehuss commented on Dec 10, 2017

@ehuss

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

serhat359 commented on Dec 10, 2017

@serhat359
Author

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.

sublime-ss

ehuss

ehuss commented on Dec 10, 2017

@ehuss

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

ehuss commented on Dec 10, 2017

@ehuss

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

serhat359 commented on Dec 11, 2017

@serhat359
Author

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

ehuss commented on Dec 11, 2017

@ehuss

Yea, either hover over the outline, or the gutter icon.

added a commit that references this issue on Dec 19, 2017
30445d4
jasonwilliams

jasonwilliams commented on Dec 19, 2017

@jasonwilliams
Member
ysimonson

ysimonson commented on Jan 25, 2018

@ysimonson

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:

screen shot 2018-01-25 at 4 34 51 pm

ehuss

ehuss commented on Jan 25, 2018

@ehuss

Is this working?

@ysimonson It should be working. Make sure you set rust_phantom_style in RustEnhanced.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

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ehuss@ysimonson@jasonwilliams@serhat359

        Issue actions

          rust_phantom_style addition · Issue #229 · rust-lang/rust-enhanced