Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvim: Precise jumps on each save #53

Open
alopatindev opened this issue Nov 17, 2023 · 0 comments · May be fixed by #54
Open

nvim: Precise jumps on each save #53

alopatindev opened this issue Nov 17, 2023 · 0 comments · May be fixed by #54

Comments

@alopatindev
Copy link
Member

alopatindev commented Nov 17, 2023

  • based on diff against files which were unmodified since last cargo ll*?
    • if we rerun cargo ll* during working on compiler messages — still we need to do precise jumps
      • make snapshot of affected files from g:CargoLimitOpen?
        • nope, we may continue editing files while cargo ll* hasn't finished yet
      • make copy of all opened nvim buffers just before starting cargo ll*?
        • requires additional API
        • still we may modify something that hasn't been processed by compiler yet
        • ideally we need exact files that were processed by compiler
          • wrap rustc with "copy the source + run rustc" script?
            • RUSTC_WRAPPER? CARGO_BUILD_RUSTC_WORKSPACE_WRAPPER?
              • user may want to overwrite it with something like sccache, we need to wrap what they wrapped
  • seems to be working, still needs some debugging/testing
  • quickfix list supports such lines positions tracking?
    • reimplement based on the quickfix list?

https://github.com/alopatindev/cargo-limit/projects/1#card-85693740

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant