Add support for runtimepath adjustment

Offen
#48 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

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
Veraltet
Tech-Stack
vim
Bereich
tooling

Rechercherichtung

Start by examining how vimlparser handles the paths py/pycompiler.vim and js/jscompiler.vim, then compare that behavior with the runtimepath setup in vimlint.sh. Define the expected runtimepath adjustment for files such as foo/autoload/bar/baz.vim and verify that both affected compiler files are parsed correctly.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

vint cannot lint py/pycompiler.vim / js/jscompiler.vim properly, because they are using a hack to import the s: scope of another file (call extend(s:, vimlparser#import())).

vimlint is able to parse this, since it adds $PWD to the runtimepath (https://github.com/syngan/vim-vimlint/blob/c8b9cd9d8a0fb6dc69667d32819aeef503cff55c/bin/vimlint.sh#L33).

I think this should somehow get supported / done automatically by vimlparser instead - probably based on the file's path, i.e. it should add foo to &rtp in case foo/autoload/bar/baz.vim is parsed.

Vorherrschende Sprache
Vim Script
Sterne
173
Forks
29
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

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

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus vim-jp/vim-vimlparser

Alle Issues in vim-jp/vim-vimlparser

Ähnliche Issues

Weitere Issues zu DevTools

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.