Support Prism 2
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- ruby
- Ambito
- backend, developer-experience
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Ruby
- Stelle
- 2k
- Fork
- 300
- Merge medio
- 2h 54m
- PR unite (30g)
- 9
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Shopify/ruby-lsp
-
Bundler settings containing spaces are rewritten with colons when composing the bundleForse già presa @efegokdemir l’ha presa 5 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
Shopify/ruby-lsp#4275 · 1 commento · 3 reazioni ·
I maintainer di solito rispondono entro 1 giorno
-
Dependencies view: `getParent` loops forever on untitled documents, extension host runs out of memoryForse già presa @efegokdemir l’ha presa 44 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Linux file system with square brackets in the directory/filename are failing to be indexedForse già presa @andriytyurnikov l’ha presa 249 giorni fa. Apertabug help-wanted pinned
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Shopify/ruby-lsp#3503 · 9 commenti · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
-
Composed bundle rewrites project binstubs when Bundler bin is setForse già presa @efegokdemir l’ha presa 1 giorno fa. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Shopify/ruby-lsp
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
TarteelAI/quranic-universal-library#1111 ·
I maintainer di solito rispondono entro 1 giorno
-
Generated cask uses deprecated `postflight` stanza; Homebrew 7 warns on every commandForse già presa @k4kratik l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
sachincool/cruft#4 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
riscv/riscv-unified-db#2859 ·
I maintainer di solito rispondono entro 2 giorni
-
agent-driven deployment documentation future releases nice to have
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
changesets
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
openstreetmap/openstreetmap-website#7629 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno