cline icon indicating copy to clipboard operation
cline copied to clipboard

Project IDX can't use headless browser for screenshots/`@url` context mention

Open lazmo88 opened this issue 1 year ago • 2 comments

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

  1. Start idx.dev enviroment
  2. Install Cline, config Cline.
  3. Try to reference URL in the chat with @URL command.

Relevant API REQUEST output

No response

Additional context

No response

lazmo88 avatar Oct 10 '24 11:10 lazmo88

Thanks for reporting, will look into this!

saoudrizwan avatar Oct 11 '24 00:10 saoudrizwan

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.

existentialstudios avatar Oct 14 '24 15:10 existentialstudios

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

leobaldoneto avatar Feb 13 '25 11:02 leobaldoneto