Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Application Error #1434

Open
Tim-M-83 opened this issue Mar 3, 2025 · 11 comments
Open

Application Error #1434

Tim-M-83 opened this issue Mar 3, 2025 · 11 comments

Comments

@Tim-M-83
Copy link

Tim-M-83 commented Mar 3, 2025

Describe the bug

I try to run Bolt v0.0.7 via Docker.

I installed and started everything strictly according to the instructions.
Bolt also starts normally and I can enter my API key.

When I then create a task in the chat and execute it, I get the following error message:

Application Error
ShikiError: Language python not found, you may need to load it first
at Object.getLanguage (http://localhost:5173/node_modules/.vite/deps/shiki.js?v=8d9e0b9f:11809:13)
at codeToTokensBase (http://localhost:5173/node_modules/.vite/deps/shiki.js?v=8d9e0b9f:10880:29)
at codeToTokens (http://localhost:5173/node_modules/.vite/deps/shiki.js?v=8d9e0b9f:11201:14)
at codeToHast (http://localhost:5173/node_modules/.vite/deps/shiki.js?v=8d9e0b9f:11264:7)
at codeToHtml (http://localhost:5173/node_modules/.vite/deps/shiki.js?v=8d9e0b9f:11493:23)
at Object.codeToHtml (http://localhost:5173/node_modules/.vite/deps/shiki.js?v=8d9e0b9f:11917:37)
at http://localhost:5173/app/components/workbench/DiffView.tsx:495:59
at Array.map ()
at renderContent (http://localhost:5173/app/components/workbench/DiffView.tsx:493:35)
at _c7 (http://localhost:5173/app/components/workbench/DiffView.tsx:548:17)

Is there a ay to fix this error?

Image

Link to the Bolt URL that caused the error

https://github.com/stackblitz-labs/bolt.diy/

Steps to reproduce

Install and run Bold.diy via Docker on a Mac

Expected behavior

Run a comand or task

Screen Recording / Screenshot

Image

Platform

  • OS: macOS
  • Browser: Chrome
  • Version: 0.0.7

Provider Used

No response

Model Used

No response

Additional context

No response

@techminion940118
Copy link

Hey Tim, I am glad to have a chance to commit your issues.

I think this issue is causing from misconfiguring docker images.

At first please check the python is already installed in docker container. You can check it out with running following commands.

  • docker exec -it [CONTAINER_NAME] bash
  • Python --version inside of Docker Container.`

And then let's jump in the issues step by step.

James

@Tim-M-83
Copy link
Author

Tim-M-83 commented Mar 3, 2025

Hey James,
thanks for the reply.
I checked if Python is installed, and it seems to be ok...

Image

@techminion940118
Copy link

Thanks for sharing screenshot.

As you can see, it is only installed Python3 on docker container, not installed Python.
Python3 is different with Python, which is python version 2.

Before you run docker image, please check the which python version is required on your project.

You can check requirements.txt file.

Thank you

@techminion940118
Copy link

Is it working?

@xKevIsDev
Copy link
Collaborator

This was a issue with the python lang being not included in the diffView, which i believe i fixed in one of our most recent commits make sure your local is up to date with the repo.

@kobeumut
Copy link

kobeumut commented Mar 4, 2025

I think there is not relevant about python. I tried install but the error same. Also I upgrade nodejs to latest lts. At the end I tried 0.0.6 version and it's working

@SpartanTech
Copy link

how did you end up getting it working? im getting the exact same issue. i tried using bolt without docker, with docker, updating my local node.js to 22.14, python installed, python3 installed. and im up to date with todays current version

@xKevIsDev
Copy link
Collaborator

@SpartanTech are you getting the same error as above ? Can you give me the steps to reproduce.

@SpartanTech
Copy link

SpartanTech commented Mar 7, 2025

I did. I just solved it -_-

I updated my branch to the main away from stable and its working now. I installed fresh but was using stable. Re-installed 3 times to try to fix it. The updated code has a commit that fixes this issue and is ahead of stable release
Your above comment was key to making me think of this

@xKevIsDev
Copy link
Collaborator

Yeah i pushed this fix to main a couple days ago. glad you got it fixed.

@xKevIsDev
Copy link
Collaborator

@thecodacus we should cherry pick this fix to the stable branch (langs missing in diffView) b018742

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants