File length of "" is <size_in_bytes> which exceeds the maximum supported file size of 52428800

I keep hitting a hard limit at **52,428,800 bytes (50MB)** when opening or working with some files. The error says the file exceeds the maximum supported size, but I couldn’t find this limit explained clearly in the official docs.

I’m on **Windows**, Cursor version **[3.4.20]**. My use case is **[large logs / generated files / notebooks]** — I’d like this limit documented, or made configurable if possible.

Is this expected behavior inherited from VS Code? Any recommended workarounds besides `.cursorignore`?

Thanks.

Yep, this is expected behavior. The 50 MB limit is inherited from VS Code (TextModel._MODEL_SYNC_LIMIT) and it isn’t configurable right now. It’s a safety limit to avoid running out of memory and UI freezes on large files.

More specifically, the message File length of "..." is N which exceeds the maximum supported file size of 52428800 comes from Cursor’s fork of Pyright, not from the editor itself. If it happens on .ipynb files or large Python files, you can exclude them from Pyright analysis in settings.json:

"cursorpyright.analysis.exclude": [
    "**/*.ipynb",
    "path/to/large/file.py"
]

It’s better to exclude specific large files instead of a whole pattern, otherwise you’ll lose type checking and IntelliSense for those files. More details in Colin’s reply: File length excess - #3 by Colin

For logs and generated files over 50 MB, there aren’t any settings workarounds, the editor won’t open files that large. Usually the best option is to split them into chunks split -b 40m large.log part_ or view them in an external viewer.