Project IDX can't use headless browser for screenshots/`@url` context mention
Which API Provider are you using?
OpenRouter
Which Model are you using?
Claude 3.5 Sonnet
What happened?
Unable to reference URL's on idx.dev enviroment. Following error is thrown:
Error fetching content for https://github.com/X/X/blob/main/custom_components/X/config_flow.py: Failed to launch the browser process! /home/user/.codeoss-cloudworkstations/data/User/globalStorage/saoudrizwan.claude-dev/puppeteer/.chromium-browser-snapshots/chromium/linux-1366715/chrome-linux/chrome: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory TROUBLESHOOTING: https://pptr.dev/troubleshooting
Steps to reproduce
- Start idx.dev enviroment
- Install Cline, config Cline.
- Try to reference URL in the chat with @URL command.
Relevant API REQUEST output
No response
Additional context
No response
Thanks for reporting, will look into this!
This started happening to me today, however, everything was working fine yesterday. Using Gemini-flash-002. At first it couldn't access anything for context including local files. After reopening the project in idx, it was able to see the project/local files, but still can't access URL's.
Install dependencies. It solved my problem:
sudo apt install libx11-xcb1 libxcomposite1 libasound2 libatk1.0-0 libatk-bridge2.0-0 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6
Source: https://ploi.io/documentation/server/how-to-install-puppeteer-on-ubuntu