Update "Executing R2R locally" with how to do so using Cursor. #36

Closed
opened 2025-05-22 00:08:15 +00:00 by brent.edwards · 1 comment
Member

Right now, https://docs.cleverthis.com/en/CleverBRAG/local-R2R only has complete instructions on how to execute R2R under PyCharm.

But there is a note at the end:

The Dev Containers extension is only available in the PyCharm Professional edition. If you happen to run the Community edition, then a possible alternative is Visual Studio Code, for which there is a free Dev Containers extension.

In Visual Studio Code with the Dev Containers extension installed, open the cleverbrag-core project, and from the command palette run these two commands:

Dev Containers: Open Container Configuration File. (VSC should open the json file)
Dev Containers: Rebuild Containers
After the open the terminal to watch the command output ('view log'). When containers are built, you may continue the same way as if you'd connected to the server with PyCharm, see below.

Cursor is based on Visual Studio, so similar instructions should work. But these instructions don't have enough information. Here are some questions:

  1. Which dev containers extension should be installed? I found multiple extensions.
  2. Where do we find the "dev containers" command?
  3. Are there any indications of whether the user is in a dev container or on their Nix machine? Does opening a new terminal run that terminal inside the dev container or inside the Nix machine?

Sorry for being dumb; I have rarely used Visual Studio Code.

Right now, https://docs.cleverthis.com/en/CleverBRAG/local-R2R only has complete instructions on how to execute R2R under PyCharm. But there is a note at the end: > The Dev Containers extension is only available in the PyCharm Professional edition. If you happen to run the Community edition, then a possible alternative is Visual Studio Code, for which there is a free Dev Containers extension. > In Visual Studio Code with the Dev Containers extension installed, open the cleverbrag-core project, and from the command palette run these two commands: > Dev Containers: Open Container Configuration File. (VSC should open the json file) > Dev Containers: Rebuild Containers > After the open the terminal to watch the command output ('view log'). When containers are built, you may continue the same way as if you'd connected to the server with PyCharm, see below. Cursor is based on Visual Studio, so similar instructions should work. But these instructions don't have enough information. Here are some questions: 1. Which dev containers extension should be installed? I found multiple extensions. 2. Where do we find the "dev containers" command? 3. Are there any indications of whether the user is in a dev container or on their Nix machine? Does opening a new terminal run that terminal inside the dev container or inside the Nix machine? Sorry for being dumb; I have rarely used Visual Studio Code.
mngrif self-assigned this 2025-05-22 16:16:55 +00:00
Member

@brent.edwards we're maintaining a dev container because of our weird NixOS setup. it requires in-house builds of the extensions mentioned in this ticket due to a group ID conflict (a silly problem to have, indeed). we genuinely don't have the manpower to spare on figuring out how to tell vscode to use our builds.

also this is a function of vscode and not the OS so it's kindasorta out of our wheelhouse but is otherwise something that will be answered by careful perusal of vscode's documentation.

@brent.edwards we're maintaining __a__ dev container because of our weird NixOS setup. it requires in-house builds of the extensions mentioned in this ticket due to a group ID conflict (a silly problem to have, indeed). we genuinely don't have the manpower to spare on figuring out how to tell vscode to use our builds. also this is a function of vscode and not the OS so it's kindasorta out of our wheelhouse but is otherwise something that will be answered by careful perusal of vscode's documentation.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
infrastructure/nixos-config#36
No description provided.