versotile-org / verso

A web browser that plays old world blues to build new world hope
Apache License 2.0
4.68k stars 156 forks source link

chore: update winit to 0.30 #150

Closed wusyong closed 3 months ago

wusyong commented 3 months ago

Is it a known issue that it crashes when closing a window on macOS?

[2024-08-14T09:11:43Z ERROR winit::platform_impl::macos::event_handler] tried to run event handler, but no handler was set

This is caused by surfman issue I think which is merged this week. I'll update the dep in follow up PR.

rohankokkulabito commented 3 months ago

Code Review Agent Run #90ad3f

  • AI Based Review: ✔️ Successful
  • Static Analysis: ✔️ Successful

High-level Feedback

Ensure that all dependencies are specified with exact versions to avoid compatibility issues. Replace 'expect' with proper error handling to prevent ungraceful crashes. Introduce error handling for operations within 'handle_winit_window_event' to manage potential errors gracefully. Ensure consistency between Cargo.toml and Cargo.lock to avoid dependency management issues.

Actionable Issues

:page_facing_up: src/window.rs
Issues: Total - 1, High importance - 1
Line 100-100 🔴 High importance - 1   
:page_facing_up: Cargo.lock
Issues: Total - 2, High importance - 2
Line 1336-1341 🔴 High importance - 1   
Line 3785-3785 🔴 High importance - 1   
:page_facing_up: src/verso.rs
Issues: Total - 1, High importance - 1
Line 394-394 🔴 High importance - 1   
AI Code Review powered by Bito Logo
rohankokkulabito commented 3 months ago

Heya @wusyong & @pewsheen , Sorry to jump into your conversation, but I’ve got a little favor to ask! 😄

I’m Rohan, the Developer Community Manager at Bito. I’d like to run our AI Code Review Agent on your PRs. Think of it as letting AI take the “first pass” on your code reviews—covering security, performance, scalability, and optimization.

You don’t need to do anything for this initial setup. I’ll handle running the Agent and will share any potential fixes and suggestions it comes up with.

Later on, if you’re up for it, you can try it on your other PRs as well. I see that you have many PRs getting merged recently and having another set of eyes for the review would be very beneficial!

Looking forward to seeing what the Agent can uncover and hoping it helps make your code even better.

rohankokkulabito commented 3 months ago

Based on the above Code Suggestions, I can't wait to hear what you think?! We will help you set up this tool in your workflow, and yes it will be free for open-source projects like yours.

denjell-crabnebula commented 3 months ago

Hey there @rohankokkulabito - while your HUMAN interest is gratifying, AI tooling such as the one you represent is not appropriate for this organization or repo at its current stage of very early development, and it is very unlikely that we would ever adopt such a distraction.

As someone who has been involved in many open source projects, a better approach would have been to file an issue and gauge the response from the team before letting loose your LLM that tries to AI-SPLAIN us how to modify Cargo.lock

tensor-programming commented 3 months ago

Is this thing going to eventually suggest that we start using the chromium engine instead of servo? I get that feeling... Say Hi to Devan for us...

rohankokkulabito commented 3 months ago

I appreciate the thoughtful feedback @denjell-crabnebula! 😅

You share a good idea about filing an issue first vs. plowing into an open PR. I'm new to open source and so is Bito's AI code reviewer, so I'm experimenting in (hopefully) non-invasive "human" ways to contribute, while letting our robot pal's work try to speak for itself.

Have you seen a tool like Bito's insert itself in a healthy, helpful way to an open source community before? Maybe I could learn from it. THANK YOU! 🙏