Skip to content

Conversation

@KJ7LNW
Copy link
Contributor

@KJ7LNW KJ7LNW commented May 26, 2025

Context

When doing a fresh clone and running the extension with F5, it currently fails because the types package is not built before the watchers start. This causes errors when trying to import from packages that depend on the built types.

Implementation

This PR adds a new task called build:roo-code-types that builds the types package once. The watch task is then updated to depend on this build task, ensuring the types are properly built before any watchers start.

The solution is minimal and ensures proper initialization sequence when launching the extension.

How to Test

  1. Clone the repository fresh:
git clone https://github.com/RooVetGit/Roo-Cline.git
  1. Change directory:
cd Roo-Cline
  1. Install dependencies:
pnpm install
  1. Press F5 in VS Code to launch the extension - it should now work properly without errors

Fixes #4011

This fixes the issue where F5 fails after a fresh clone because
the types package is not built yet. The fix adds a build:roo-code-types
task that runs before any watchers start.

Adds the build task as a dependency to the watch task, ensuring
the types are properly built at least once before the extension
launches.

Fixes: #4011
Signed-off-by: Eric Wheeler <[email protected]>
@KJ7LNW
Copy link
Contributor Author

KJ7LNW commented May 26, 2025

@mrubens @daniel-lxs @cte this fixes a build problem that will affect our new developers (was probably introduced by monorepo)

Copy link
Collaborator

@cte cte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I add more packages to the monorepo it will become more important to manage task dependencies in a clean way. We're using turborepo which will automatically build the monorepo package dependencies if we configure these watch commands as tasks:

https://turborepo.com/docs/crafting-your-repository/configuring-tasks

I will have some time to fix this broken case you found using turborepo tomorrow unless you want to take a crack at it.

@KJ7LNW
Copy link
Contributor Author

KJ7LNW commented May 27, 2025

As I add more packages to the monorepo it will become more important to manage task dependencies in a clean way. ...
I will have some time to fix this broken case you found using turborepo tomorrow unless you want to take a crack at it.

I not familiar with the new build environment so please do, as you are certainly the expert here.

This does not affect us too much because we can simply run pnpm run build and it works around the problem, but this is going to get in the way for new users that wish to contribute and do not know anything about the project internals.

@daniel-lxs
Copy link
Member

Hi @KJ7LNW , if you are going to let @cte handle the issue then I think you can close this PR.
But feel free to reopen it if necessary.

@KJ7LNW
Copy link
Contributor Author

KJ7LNW commented May 27, 2025

Hi @KJ7LNW , if you are going to let @cte handle the issue then I think you can close this PR. But feel free to reopen it if necessary.

closed

@KJ7LNW KJ7LNW closed this May 27, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap May 27, 2025
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap May 27, 2025
SmartManoj pushed a commit to SmartManoj/Raa-Code that referenced this pull request Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

F5 fails after fresh clone due to missing initial build

3 participants