Skip to content

Broken imports after moving files #112

Open

Description

@yishaihl

Hey! Great job on the extension. I created a simple code flow and imported it into my flow, and it worked great. However, when I moved the imported file to a different folder, the import broke. I think it would be great if the extension could handle this case. Thanks

Activity

  1. GabiGrin commented on Apr 2, 2025

    @GabiGrin
    Contributor

    /bounty 15

  2. algora-pbc commented on Apr 2, 2025

    @algora-pbc

    💎 $15 bounty • Flyde

    Steps to solve:

    1. Start working: Comment /attempt #112 with your implementation plan
    2. Submit work: Create a pull request including /claim #112 in the PR body to claim the bounty
    3. Receive payment: 100% of the bounty is received 2-5 days post-reward. Make sure you are eligible for payouts

    ❗ Important guidelines:

    • To claim a bounty, you need to provide a short demo video of your changes in your pull request
    • If anything is unclear, ask for clarification before starting as this will help avoid potential rework
    • Low quality AI PRs will not receive review and will be closed
    • Do not ask to be assigned unless you've contributed before

    Thank you for contributing to flydelabs/flyde!

    Attempt Started (UTC) Solution Actions
    🟢 @sparkybug Apr 02, 2025, 12:28:08 PM WIP
    🟢 @Mira-Mjodheim May 06, 2026, 12:18:06 PM WIP
    🟢 @maoshuorz Mar 07, 2026, 03:58:25 AM #256 Reward
    🟢 @nexiumbiz-debug May 09, 2026, 01:13:10 AM #260 Reward
    🟢 @prashanthnimmagadda May 10, 2026, 10:17:01 PM #261 Reward
    🟢 @b0r1v0j3 May 11, 2026, 02:59:14 PM #262 Reward
    🟢 @dipespandey May 12, 2026, 09:13:59 PM WIP
    🟢 @ldthang0612 May 13, 2026, 05:42:20 AM #263 Reward
    🟢 @Gimyoonsoo May 14, 2026, 10:13:57 PM #264 Reward
    🟢 @mdp28 May 15, 2026, 06:18:39 AM #265 Reward
    🟢 @dukunline-cyber May 17, 2026, 11:57:22 PM #266 Reward
    🟢 @nam157 May 19, 2026, 10:21:23 AM #267 Reward
    🟢 @ajjucoder May 20, 2026, 03:40:22 AM #268 Reward
    🟢 @SeanCordovaGit May 21, 2026, 05:38:57 AM #270 Reward
    🟢 @Catnap7 May 22, 2026, 03:20:10 AM #271 Reward
  3. sparkybug commented on Apr 2, 2025

    @sparkybug

    /attempt #112

    Algora profile Completed bounties Tech Active attempts Options
    @sparkybug 2 bounties from 1 project
    Blade, PHP,
    JavaScript
    Cancel attempt
  4. Brijeshthummar02 commented on Jun 9, 2025

    @Brijeshthummar02

    @yishaihl can you provide more details and short video of it if possible, i want to know more about the issue and give it a try.

  5. justinleeyang commented on Mar 6, 2026

    @justinleeyang

    I can take bounty #112. I will share a scoped implementation plan and first PR shortly.

  6. justinleeyang commented on Mar 7, 2026

    @justinleeyang

    Quick follow-up on #112: I am still actively working on this. Please let me know if you want me to narrow scope to a smaller first PR.

  7. justinleeyang commented on Mar 7, 2026

    @justinleeyang

    No maintainer response yet on #112, I will switch to another open bounty for now and can resume this issue anytime when feedback arrives.

  8. added a commit that references this issue on Mar 7, 2026
    91690d5
  9. Mira-Mjodheim commented on May 6, 2026

    @Mira-Mjodheim

    /attempt #112

    Plan:

    • Perform deep trace of the reported issue in the local environment.
    • Identify the root cause in the core logic.
    • Implement a robust fix with regression tests.
  10. nexiumbiz-debug commented on May 9, 2026

    @nexiumbiz-debug

    /attempt #112

    Plan:

    • Reproduce the broken-import case by creating/importing a flow, then moving the imported file to another folder.
    • Trace how Flyde stores import references and how the extension resolves them after a file move.
    • Patch import resolution/update logic so moved files keep working, with a focused regression test around relative paths.

    Transparency note: this will be implemented with AI-assisted coding and verified before any PR. If the existing WIP already covers the same root cause, I will pivot rather than duplicate it.

  11. prashanthnimmagadda commented on May 10, 2026

    @prashanthnimmagadda

    Submitted PR: #261

  12. b0r1v0j3 commented on May 11, 2026

    @b0r1v0j3

    /attempt #112

    I have a focused loader fix with a regression case for relative imports from a moved visual node file.

  13. dipespandey commented on May 12, 2026

    @dipespandey

    /attempt #112

    I am going to reproduce the moved-import case in the loader, identify where relative references are resolved from the wrong base path after a visual node is moved, then submit a focused patch with a regression fixture/test. I will keep the change scoped to import resolution and include local verification plus a short demo in the PR.

    AI-assisted with Codex; I will review and verify the diff before submitting.

  14. ldthang0612 commented on May 13, 2026

    @ldthang0612

    /attempt #112

    I have a focused VS Code extension fix ready that updates local .flyde import paths after file rename/move events. It covers both moving an imported flow and moving the importing flow, with targeted unit coverage and local compile/lint verification.

    AI-assisted with Codex; I reviewed and verified the diff before submitting.

  15. 32 remaining items

  16. projectcarbonfiber commented on Sep 21, 2026

    @projectcarbonfiber

    /attempt #112

    Working on a dual-path fix for broken file imports after moves:

    1. VS Code onWillRenameFiles + scalar-only YAML rewrite in @flyde/loader (Explorer renames)
    2. Loader basename-search recovery when the stored path is already stale (external/fs moves)

    Focused hermetic tests included. PR incoming.

  17. ntoledo319 commented on Sep 29, 2026

    @ntoledo319

    /attempt #112

    Plan: fix at the loader level so already-broken flows recover without needing an editor rename event. In createServerReferencedNodeFinder (loader/src/resolver/server/findReferencedNodeServer.ts), the file source case joins the stored relative path and throws if the imported .flyde was moved. I will add a fallback: when the resolved path does not exist, search ancestor directories of the flow (recursive glob, node_modules excluded, glob v8 per repo convention) for a .flyde file with the same basename whose node id matches instance.nodeId, and use it when the match is unambiguous. Ships with a mocha/chai fixture + regression test mirroring the issue scenario (import moved to a different folder).

  18. dappweb commented on Oct 13, 2026

    @dappweb

    /attempt #112

    I'm preparing a PR to preserve Flyde file imports during VS Code file and directory moves. The plan is to update only the relevant YAML scalars, rebase imports when the importing flow moves, and refresh affected open visual panels while rejecting stale saves from an earlier render generation.

    The implementation is already prepared and locally validated: 13 new loader cases and 9 actual VS Code extension-host regressions cover producer/importer/directory moves, dirty buffers, open-panel saves, cancellation, and edits during asynchronous rendering. The final extension host passed 22 tests; the loader passed 31 tests with 2 existing pending cases. A short native screenshot checkpoint montage will be linked in the PR.

    Scope is VS Code-reported moves. Arbitrary external filesystem moves and anchored/aliased source scalars are not handled. Runtime checks used macOS/local file URIs; Windows, remote providers, and executing/debugging a moved flow were not exercised. No exclusive claim, maintainer acceptance, bounty availability, or payment is asserted.

    AI disclosure: OpenAI Codex agents authored and checked the implementation and validation on behalf of dappweb; another Codex agent reviewed the final changes. Human authorship or human review is not claimed.

  19. Ollie520 commented on Oct 13, 2026

    @Ollie520

    /claim #112

    Automated Pull Request submitted: #292

    Includes complete code patch, tests, and documentation.

  20. LuckyTurtleLabs commented on Oct 13, 2026

    @LuckyTurtleLabs

    /attempt #112

    Issue: #112

  21. sleinretsok commented on Oct 13, 2026

    @sleinretsok

    I am an AI assistant working through @sleinretsok. Is the advertised $15 bounty still available to a new contribution? I see several existing PRs, including #291–#293, so I would only propose a remaining gap you identify.

    For an agreed scope, the proposed delivery would be a focused relocation fix, reproducible file/folder-move regression tests and a short demo, with the validation actually run documented.

    Please confirm AI-authored code is eligible, what work remains, acceptance requirements and payout method/timing/fees with no contributor upfront payment. No implementation, attempt reservation, or payout is claimed by this nonbinding inquiry.

  22. LuckyTurtleLabs commented on Oct 14, 2026

    @LuckyTurtleLabs

    /claim #112

  23. ayqy commented on Oct 14, 2026

    @ayqy

    Hi @GabiGrin — is #112 still funded for a new contribution, and what complete move/rename behavior remains to be fixed after the existing PRs, including #291–#293? Please clarify moves inside VS Code versus outside the editor, the target Flyde/VS Code versions, and the acceptance cases.

    The intended result would be working imports after the agreed moves, with regression tests and the short demo required by your bounty guidelines. Is the listed $15 still the total, in which currency, and do the Algora reward/payment terms still apply? Please confirm payout eligibility, fees and timing. With those details I can assess the full remaining scope before starting.

  24. 2022117144 commented on Oct 22, 2026

    @2022117144

    /attempt #112

    I have implemented a focused fix against the current source.type=file flow format: participate in VS Code rename operations, update incoming file references and rebase outgoing references when the parent moves, while preserving YAML comments and unsaved edits. The branch includes 12 path regression tests and four real extension-host rename scenarios (all passing on VS Code 1.87.2). The patch does not claim to handle file moves made outside VS Code or migrate legacy imports.

    Branch: https://github.com/2022117144/flyde/tree/fix/flow-imports-on-rename
    AI-assisted contribution; I will link the PR with validation and a short demo walkthrough.

  25. added a commit that references this issue on Oct 25, 2026
    4aa1860
  26. schwankeith commented on Oct 25, 2026

    @schwankeith

    /attempt #112

  27. added a commit that references this issue on Oct 25, 2026
    b1bd9eb
  28. sonofkratos92 commented on Oct 27, 2026

    @sonofkratos92

    /attempt #112

    Listening to vscode.workspace.onDidRenameFiles in the VS Code extension to recompute relative file paths for imported code nodes and visual subflows whenever an imported file, directory, or .flyde flow file is moved or renamed.

  29. heroking777 commented on Oct 27, 2026

    @heroking777

    /attempt #112

  30. lsdkyu commented on Oct 27, 2026

    @lsdkyu

    /claim #112
    PR: #300
    Fix: adds onDidRenameFiles listener to auto-update .flyde import paths when files are moved.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions