-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
Better Error Message If No Backend Installed #1042
Comments
can i work on this issue? |
Sure. This error happens when you haven't installed any of the built-in backends. For example, if you only run So really, all we need here is a more detailed message that suggests a solution to the problem rather then just saying that we couldn't find an installed backend. The message in question can be found here. |
Okay so in the error message should it suggest possible fixes or should it suggest the exact fix for the problem? for instance possible fix could be to suggest a list of commands that might help them fix the problem |
Given that the user, having only installed |
If you're able to get this done in the next day or two we can put this out in a 1.0.1 release. |
Got it! i am already on it |
* Better Error message if no backend installed #1042 * change the error message as requested * Update src/py/reactpy/reactpy/backend/default.py Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com> * fix linting issues * Update src/py/reactpy/reactpy/backend/default.py Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com> * Improve readability * Update src/py/reactpy/reactpy/backend/default.py * make text bold --------- Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
Current Situation
I think a lot of people get confused by this error message:
![image](https://private-user-images.githubusercontent.com/4041990/245057321-6e94b007-d628-40ae-9a8c-6681fa707a25.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMzU2MjIsIm5iZiI6MTcyNDEzNTMyMiwicGF0aCI6Ii80MDQxOTkwLzI0NTA1NzMyMS02ZTk0YjAwNy1kNjI4LTQwYWUtOWE4Yy02NjgxZmE3MDdhMjUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjBUMDYyODQyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NGRkYjc2Mjg2M2RkNTA2NjZhMTM1YTUwNjBiZWM4ZGI0ZjBkNDUzODQ0OWM3Mzc4OWRkODkxMTk5ODVmNzE2YyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.xeNVzdVa-o4BOno6wCl0H2aSZb7sCJGqdWeEWaA7zLs)
Proposed Actions
We should suggest installing a particular backend in the error message (e.g.
pip install reactpy[starlette]
).The text was updated successfully, but these errors were encountered: