windmill-labs / windmill-labs/windmill

bug: absolute import used in flow cannot be used for autocomplete

Open
#3,937 5 comments 0 reactions 1 assignee View on GitHub

@rubenfiszel is already working on this.

Since Jun 20, 2024.

bug
Dominant language
Rust
Stars
18k
Forks
1.1k
Avg merge
1d 1h
Merged PRs (30d)
328

Description

Describe the bug

When using import {} from "/f/xx/xx.ts", the autocomplete features won't work.

To reproduce
  1. Create a script /f/test/test.ts
  2. Create a flow, create a new inline bun script, write import {} from "/f/test/test.ts"
  3. The editor will show Cannot find module '/f/test/test.ts' or its corresponding type declarations.(2307)
Expected behavior

The editor shouldn't report any errors

Screenshots
image
Browser information

Arc Version 1.47.1 (50893) Chromium Engine Version 126.0.6478.57

Application version

Cloud Version (EE v1.349.0-3-ga82184beb)

Additional Context

In the console, the editor downloads the script successfully:
image

The bug is only for the editor. The script can be executed successfully.

The bug is only for flow; it doesn't exist in the script.

I create a dedicated windmill cloud workspace for this bug report, you can view and test it directly in bryan-test workspace.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.