You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even after keeping allowRedirects: true (under terminals > panels) and watch: true (under filesystem), we are not able to create new files from terminal. Example: echo hello > world.txt. Observe that file is created in webcontainer fs, but not getting reflected in editor's file-tree.
Link to a StackBlitz project which shows the error
To include new added files into watch, you need pass glob patterns that match these files. It's recommended to be as specific as possible with these patterns. So based on your reproduction something like below should work:
filesystem:
watch: ['/hello.txt']
Watching whole file system for new files is expensive for performance - that's why filesystem.watch: true won't consider newly added files, it only watches existing files.
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Even after keeping
allowRedirects: true
(under terminals > panels) andwatch: true
(under filesystem), we are not able to create new files from terminal. Example:echo hello > world.txt
. Observe that file is created in webcontainer fs, but not getting reflected in editor's file-tree.Link to a StackBlitz project which shows the error
https://stackblitz.com/edit/tutorialkit-api-use-helpbutton-yfxyqb?file=src%2Fcontent%2Ftutorial%2F1-basics%2F1-introduction%2F1-welcome%2Fcontent.mdx
Steps to reproduce
echo hello > world.txt
ls
Expected behavior
If we keep
allowRedirects: true
, it should show newly created file in editor's file-treeFor example, if we write
echo hello > world.txt
in interactive terminal, it should create file named "world.txt" in editor's file-tree.Screenshots
Screen.Recording.2024-11-16.144557.mp4
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: