Perl: cross-file method resolution and accessor typing (Moose, Mojo::Base)
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Bereich
- backend-api-design, developer-experience
Rechercherichtung
Start with internal/cbm/lsp/perl_lsp.c and the reference work in #2171, then review the shared cross-file registry used by other language resolvers. Check #2846 for possible tree-sitter-perl node changes. Pick one behavior and add a before/after regression test; done means that behavior resolves correctly from current main with signed-off commits.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Perl call resolution is currently file-local. The Perl semantic pass (internal/cbm/lsp/perl_lsp.c) builds its type registry from the current file's definitions plus the stdlib tables, and there is no cross-file pass for Perl. On current main that leaves these gaps:
- Inheritance across files. A method inherited through
use parent,use baseor@ISAresolves through the semantic pass only when the parent package is defined in the same file. - Accessor typing. Moose and Mojo::Base
hasattributes are not modelled, so a chain such as$self->ua->get(...)loses its receiver type after the accessor. requireimports. Only top-levelusestatements produce import rows;require Foo::Bar;(often conditional, or written asrequire 'Foo/Bar.pm') produces none.- Perl 5.38 class syntax.
class/method/field(Corinna) is not handled by the semantic pass.
Reference work: #2171 (thank you, @turtacn) implemented all of these on a September base, with a regression test for each step, and is the best reference for the shape of the work. It could not be merged as it stood (opened from a fork's main, conflicting with current main, unsigned commits), so it was closed; focused slices of it are welcome.
How we would like to land it:
- One behaviour per PR, cut from current
main, with a before/after regression test and signed-off commits (git commit -s). - Cross-file resolution should build on the shared cross-file registry the other language resolvers use, rather than a per-file scan of the whole project, so indexing stays linear on large Perl codebases.
- Related: #2846 (tree-sitter-perl grammar refresh) may change node names this work depends on.
No timeline is implied; this issue keeps the gap visible so it is not lost.
- Vorherrschende Sprache
- C
- Sterne
- 45.8k
- Forks
- 3.8k
- Ø Merge
- 2 T. 18 Std.
- Gemergte PRs (30 T.)
- 108
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
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 DeusData/codebase-memory-mcp
-
bug ux/behavior
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
DeusData/codebase-memory-mcp#3191 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation enhancement parsing/quality ux/behavior
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 82/100
DeusData/codebase-memory-mcp#3131 · 1 Kommentar · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
hook-augment: the five-row cap keeps the first five search_graph rows, so variables and modules displace function definitions (v0.12.1)Evtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offenbug editor/integration parsing/quality ux/behavior
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
DeusData/codebase-memory-mcp#3062 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug documentation editor/integration parsing/quality
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
DeusData/codebase-memory-mcp#3050 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
editor/integration parsing/quality
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
DeusData/codebase-memory-mcp#2286 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in DeusData/codebase-memory-mcp
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
NVIDIA/open-gpu-kernel-modules#1635 ·
Maintainer antworten meist innerhalb von 1 Tag
-
iOS: the "Edit controls" button never hides, even with a controller connected, and covers the gameOffengame: 010065A014024000 ios
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
seedds/nxnative#3714 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen