windmill-labs / windmill-labs/windmill
bug: absolute import used in flow cannot be used for autocomplete
@rubenfiszel is already working on this.
Since Jun 20, 2024.
- 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
- Create a script
/f/test/test.ts - Create a flow, create a new inline bun script, write
import {} from "/f/test/test.ts" - 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
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:
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.