Support Prism 2
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- ruby
- Bereich
- backend, developer-experience
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Ruby
- Sterne
- 2k
- Forks
- 300
- Ø Merge
- 2 Std. 54 Min.
- Gemergte PRs (30 T.)
- 9
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus Shopify/ruby-lsp
-
Bundler settings containing spaces are rewritten with colons when composing the bundleEvtl. vergeben @efegokdemir hat das vor 5 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
Shopify/ruby-lsp#4275 · 1 Kommentar · 3 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag
-
Dependencies view: `getParent` loops forever on untitled documents, extension host runs out of memoryEvtl. vergeben @efegokdemir hat das vor 44 Tagen übernommen. Offenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 1 Tag
-
Linux file system with square brackets in the directory/filename are failing to be indexedEvtl. vergeben @andriytyurnikov hat das vor 249 Tagen übernommen. Offenbug help-wanted pinned
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Shopify/ruby-lsp#3503 · 9 Kommentare · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
Maintainer antworten meist innerhalb von 1 Tag
-
Composed bundle rewrites project binstubs when Bundler bin is setEvtl. vergeben @efegokdemir hat das vor 1 Tag übernommen. Offenbug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 42/100
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in Shopify/ruby-lsp
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
TarteelAI/quranic-universal-library#1111 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Generated cask uses deprecated `postflight` stanza; Homebrew 7 warns on every commandEvtl. vergeben @k4kratik hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
sachincool/cruft#4 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
riscv/riscv-unified-db#2859 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
agent-driven deployment documentation future releases nice to have
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
changesets
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
openstreetmap/openstreetmap-website#7629 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag