Support Prism 2
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- ruby
- Domínio
- backend, developer-experience
Direção de pesquisa
Start by checking the gemspec Prism constraint and the 28 failing tests reported with Prism 2.1.0; compare their results with Prism 1.9.0. Investigate the listed differences in syntax tree nodes, multibyte locations, and typed-file feature checks. Done means Prism 2 can be allowed alongside Prism 1 and the affected tests pass; the development bundle's rbi constraint is identified as a separate blocker.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
I have checked that this feature is not already implemented
- This feature does not exist
Use case
The gemspec has prism >= 1.2, < 2.0, so a bundle with Ruby LSP in it can't move to Prism 2.
That gets in the way for RuboCop. rubocop-ast 1.52 has a parser engine that builds RuboCop's AST straight from the Prism result, without Prism::Translation::Parser, and it needs Prism 2. Most projects that use RuboCop have Ruby LSP in the same bundle, so in practice they can't use it, and RuboCop's own Gemfile has to leave Ruby LSP out to test it.
Description
Allow Prism 2 next to Prism 1, i.e. prism >= 1.2, < 3.0.
Implementation
I tried it on main (ad2996a) with Prism 2.1.0, without Tapioca and Sorbet in the bundle. Of the 18,625 tests, 28 fail that pass with Prism 1.9.0. The ones I looked at:
Prism::MissingNodeisPrism::ErrorRecoveryNodenow (CodeActionResolve, and the expected output of the show syntax tree test)- the lengths and columns for multibyte characters are off in semantic highlighting, and
RubyDocument#locateends up with aProgramNodewhere it expects a named node - the
typed: trueandtyped: strictchecks no longer disable completion, hover, definition and signature help
The development bundle is a separate problem: rbi needs prism ~> 1.0, and the PR that relaxes it (Shopify/rbi#681) fails its tests.
I can send a PR for the Ruby LSP side if that helps.
- Linguagem predominante
- Ruby
- Estrelas
- 2k
- Forks
- 300
- Merge médio
- 2h 54min
- PRs com merge (30d)
- 9
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de Shopify/ruby-lsp
-
Bundler settings containing spaces are rewritten with colons when composing the bundleTalvez já em andamento @efegokdemir assumiu há 5 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
Shopify/ruby-lsp#4275 · 1 comentário · 3 reações ·
Mantenedores costumam responder em até 1 dia
-
Dependencies view: `getParent` loops forever on untitled documents, extension host runs out of memoryTalvez já em andamento @efegokdemir assumiu há 44 dias. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
Mantenedores costumam responder em até 1 dia
-
Linux file system with square brackets in the directory/filename are failing to be indexedTalvez já em andamento @andriytyurnikov assumiu há 249 dias. Abertabug help-wanted pinned
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Shopify/ruby-lsp#3503 · 9 comentários · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
Mantenedores costumam responder em até 1 dia
-
Composed bundle rewrites project binstubs when Bundler bin is setTalvez já em andamento @efegokdemir assumiu há 1 dia. Abertabug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 42/100
Mantenedores costumam responder em até 1 dia
Todas as issues de Shopify/ruby-lsp
Issues semelhantes
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
TarteelAI/quranic-universal-library#1111 ·
Mantenedores costumam responder em até 1 dia
-
Generated cask uses deprecated `postflight` stanza; Homebrew 7 warns on every commandTalvez já em andamento @k4kratik assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
sachincool/cruft#4 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
riscv/riscv-unified-db#2859 ·
Mantenedores costumam responder em até 2 dias
-
agent-driven deployment documentation future releases nice to have
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
changesets
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
openstreetmap/openstreetmap-website#7629 · 1 comentário ·
Mantenedores costumam responder em até 1 dia