zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
49.59k stars 3.04k forks source link

It freezes when I run nodejs code #17498

Open bek-shoyatbek opened 2 months ago

bek-shoyatbek commented 2 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

I'm new in zed code editor but after installing node_modules and run nestjs app it freezed and I couldn't do anything. This is happening constantly....

Environment

OS: linux ( ubuntu 24.04 ) properties: 8/128 memory

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log


CharlesChen0823 commented 2 months ago

this is might because, zed watch all of files in node_modules, which cause CPU hang, but i don't known if there is config, can ignore watch node_modules directory, might using .gitignore?

bek-shoyatbek commented 2 months ago

How can I ignore it? and I think .gitignore doesn't work...

On Fri, Sep 6, 2024 at 6:48 PM CharlesChen0823 @.***> wrote:

this is might because, zed watch all of files in node_modules, which cause CPU hang, but i don't known if there is config, can ignore watch node_modules directory.

— Reply to this email directly, view it on GitHub https://github.com/zed-industries/zed/issues/17498#issuecomment-2334099497, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWCBVDM4DHXP6LCWLWI3J7TZVGXCPAVCNFSM6AAAAABNYTBMZ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZUGA4TSNBZG4 . You are receiving this because you authored the thread.Message ID: @.***>

CharlesChen0823 commented 2 months ago

do you have an repository in public, I will try reproduce it

bek-shoyatbek commented 2 months ago

It's just a boilerplate of nestjs you can try after install and creating new nestjs project....

kcalvinroy commented 2 months ago

Same thing here with svelte Arch linux

bek-shoyatbek commented 2 months ago

image it's memory usage of simple just initialized nestjs app while the numbers for vscode are much less

CharlesChen0823 commented 2 months ago

i using npx create-next-app@latest create an new project, don't reproduce?