Skip to content

Conversation

@kaste
Copy link
Member

@kaste kaste commented Feb 17, 2018

This is on top of #195

@kaste
Copy link
Member Author

kaste commented Feb 17, 2018

Enables something like this; multi-column errors

image

But also: simple indentation errors

image

@kaste
Copy link
Member Author

kaste commented Feb 17, 2018

Old look is this:

image

The 'if' gets marked instead of the block for the constant condition (!) error (selecting 'true' would be the minimum correct behavior here). On the last line, the first char gets selected for the indentation error.

@braver
Copy link
Member

braver commented Feb 17, 2018

If we do this it increases the need for de-highlighting during editing. Before we start having region highlighting everywhere we need to have a design discussion about this because we’re not on the same page.

@kaste
Copy link
Member Author

kaste commented Feb 17, 2018

Okay, but there is correct and broken. The old behavior just highlights the wrong things. Highlighting the 'if' is wrong, you could highlight 'true' of course. And the indentation is not the first space, but 5 spaces.

I actually hoped that eslint would come in the org to fix some stuff here.

'De-highlighting during edit' and 'reducing noise during problem-solving' are actually my own topics. I'm the only one writing about these. EDIT: E.g. SublimeLinter/SublimeLinter#244 (comment)

@kaste
Copy link
Member Author

kaste commented Feb 17, 2018

FWIW that the same code in VSCode. And I just think my thing looks better.

image

And BTW they don't have any de-emphasizing during edit.

@braver
Copy link
Member

braver commented Feb 17, 2018

Yeah VS Code is shit, your stuff is way better.

I think we agree on the noise thing. I may not write about it much but I think it’s so important I find it hard to trust anyone else with it. I should trust you more.

@kaste
Copy link
Member Author

kaste commented Feb 22, 2018

This should be a v2 rc release, I think. It is likely that I did not handle every possible json response. (Some errors may have missing keys, or whatever.)

@kaste kaste mentioned this pull request Feb 22, 2018
@braver
Copy link
Member

braver commented Feb 23, 2018

The tooltip and status bar message only show at the start of the region. I'd expect to be able to hover over the entire region to get details about the problem.

screen shot 2018-02-23 at 13 03 25

@kaste kaste mentioned this pull request Feb 23, 2018
@kaste
Copy link
Member Author

kaste commented Feb 23, 2018

This is not an issue here, but in core SL.

@braver
Copy link
Member

braver commented Feb 23, 2018

Ok, awesome. Then this is really LGTM for me.

@kaste
Copy link
Member Author

kaste commented Feb 23, 2018

And, do we merge into master (bc we never update this for SL3 anyway?) and then release a 'rc' version? We should still wait for #1007 though, so users can actually change the 'selector'. (I removed all the special 'syntax'es here!)

@braver
Copy link
Member

braver commented Feb 23, 2018

I think the best approach would be to not release an rc but release it directly with a version 3/4 switch in linter.py. That's the easiest on end users. With flake8 we broke compatibility before we had that version to switch on, but on all other linters I prefer to use the switch over pre-releases.

@kaste kaste mentioned this pull request Feb 28, 2018
@braver
Copy link
Member

braver commented Mar 3, 2018

@kaste I guess we can merge and release this now.

@kaste
Copy link
Member Author

kaste commented Mar 3, 2018

I'm running this PR since then. (So it will not break before we merge.)

@kaste kaste merged commit a86fe6b into master Mar 3, 2018
@kaste kaste deleted the format-json branch October 16, 2018 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants