-
Notifications
You must be signed in to change notification settings - Fork 105
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
Experimental support for the new error format #87
Conversation
I'm trying to try this out but where is expecting |
|
||
view_filename = view.file_name() | ||
|
||
for line in output[1].split(os.linesep): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hard to change this line to the below to make it work. i'm using windows 10 + rustup installed rust windows-gnu nightly
for line in output[1].split('\n'):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, thanks
@dten I have a // Enable the syntax checking plugin, which will highlight any errors during build
"rust_syntax_checking": true
} in it. |
it's pretty sweet 👍 only thing is I currently get the cargo errors in-line and your errors |
bit of poking around shows a file called
|
Seems like something that should be its own PR instead of adding it to this one. (Unless someone thinks it's a good idea) |
I don't really have any understanding of sublime text, but I'll happily merge if someone says it's the right thing to do. |
cc @petrochenkov @Jayflux looks like you two have contributed recently. Maybe have opinions. |
@Thinkofname I don't think thats a problem, using the API you can detect 3 or above, and run it if its 3, and don't run it if its not. See version checking example here:
I never got that far, thanks for adding it though! @Thinkofname It looks like you've built of my first PR, which got merged. I would actually prefer this to go in, instead of my PR, as this seems more complete. |
Added the package settings menu item using @dten's suggestion and added the version checking from @Jayflux, thanks. I also cleaned things up a bit. |
@Thinkofname just tested this branch, its working nicely! @dten can we switch this feature on by default? or would you rather users add a setting to have it. |
@dten could you walk me through step by step how you got that to happen so i can re-create the problem? |
@dten Guessing thats using the build system feature of sublime (Ctrl + B)? Thats a plugin built-in to sublime (seperate from this) which uses the |
it was using Ctrl+B |
@Thinkofname could you push a commit on this PR setting rust_syntax_checking to true? |
@Jayflux sorry about the delay, done |
@brson @steveklabnik @dten |
Thanks @Thinkofname and @Jayflux. |
This is mostly a result of me playing around with the new json formatted error messages but I decided to PR it to see what was thought of it.
It requires the latest dev build of Sublime Text 3 so I don't really expect this to be pulled as it stands.
This uses the phantom system to display error messages and hints inline with the code, i'm not sure how much I like this system but it seemed to be the nicest way I could think of displaying them.
I don't really do python so i'm sorry about the code