Failed to save ‘main.py’: Unable to write file ‘vscode-remote://idx-projectname-1723990303475.cluster-y34ecccqenfhcuavp7vbnxv7zk.cloudworkstations.dev/home/user/project-name/src/main.py’ (Unknown (FileSystemError): Error: ENOSPC: no space left on device, write)
My main.py file has 556 lines.
2 other yaml files, 150 lines and 220 lines.
Do you have any dependencies installed with pip, poetry, or some manager? If there are any, could you show the packages you’ve added in the dev.nix file?
import os
import yaml
import string
from flask import Flask, request, jsonify, send_from_directory
from pathlib import Path
from huggingface_hub import InferenceClient
from anthropic import AnthropicClient
from crewai import Agent, Task, Crew, Process
from crewai.memory.short_term.short_term_memory import ShortTermMemory
from crewai_tools import DirectoryReadTool, FileReadTool
from src.tools.custom_tool import ESLintTool, ElectronBuilderTool
import logging
Can you also show the dev.nix file located at .idx/dev.nix? It looks like you might be loading in some heavy duty dependencies that are going over the workspace limit.
From what I see, the workspace home disk has around 10GB storage. It looks like you have env vars for a number of LLMs. The Llama model alone seems like it’s 5+GB. Assuming those are all getting downloaded locally, that might be where all your storage is going.
You could run du -a /home/user | sort -nr | head to find the largest dirs/files.
It looks like roughly half your space is going to /home/user/project-name/.venv/lib/python3.11/site-packages (4086300 KB ~= 4 GB), and half to /home/user/.cache (4023612 KB ~= 4 GB).
site-packages is where your installed Python packages go. I don’t think we can say whether it’s safe to remove nvidia. Even if you did not install it yourself, you might have some other dependency that did. You could try something like pip show nvidia and see if that shows what it’s required by, assuming it was installed via pip.
The .cache folder is generally considered safe to remove, programs will recreate the contents if needed.