Skip to content
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] Make better vscode experience for ruby #314

Merged
merged 7 commits into from
Jan 22, 2023

Conversation

kachick
Copy link
Owner

@kachick kachick commented Jan 17, 2023

https://github.com/rubyide/vscode-ruby

rubyide/vscode-ruby@dc81c80

https://github.com/Shopify/vscode-shopify-ruby

opinionated

https://github.com/LoranKloeze/vscode-ruby-rubocop-revived

https://marketplace.visualstudio.com/items?itemName=LoranKloeze.ruby-rubocop-revived

This extension may have problems when using a rvm or chruby environment. We recommend vscode-ruby. It can also lint ruby code.
When autoCorrect is enabled, the history of changing file is broken.

https://github.com/r7kamura/vscode-ruby-light

This does not work with many messages as below

[Error - 2:47:02 AM] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Cannot read properties of undefined (reading correctable)
  Code: -32603

It looks reported in r7kamura/vscode-ruby-light#30

https://github.com/r7kamura/vscode-rucoa

Looks need other LSP dependencies into gem layer

Steep / RBS

Needs tweaks. soutaro/steep-vscode#227

https://github.com/fables-tales/rubyfmt

I can't accept forced double quotes in my repository.

https://github.com/pucelle/vscode-run-on-save

Bit slow from rubocop. However the feature is simple and enough for formatters. The way will fit for rubocop, because rubocop does not accept STDIN and STDOUT formatting pattern. https://stackoverflow.com/questions/58779791/programmatically-integrate-rubocop-formatter-with-stdin-stdout

This does not work with many messages as below

```
[Error - 2:47:02 AM] Request textDocument/codeAction failed.
  Message: Request textDocument/codeAction failed with message: Cannot read properties of undefined (reading correctable)
  Code: -32603
```

It looks reported in r7kamura/vscode-ruby-light#30
@kachick kachick changed the title [Experimental] Trying to https://github.com/r7kamura/vscode-ruby-light [Experimental] Make better vscode experience for ruby Jan 17, 2023
@kachick kachick marked this pull request as ready for review January 22, 2023 14:42
@kachick kachick merged commit e0445b3 into main Jan 22, 2023
@kachick kachick deleted the better-vscode-with-ruby branch January 22, 2023 14:59
kachick added a commit to kachick/ruby-gem-template that referenced this pull request Feb 7, 2023
kachick added a commit to kachick/ruby-gem-template that referenced this pull request Feb 7, 2023
kachick added a commit that referenced this pull request Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant