Skip to content

Commit ff532b3

Browse files
committed
sr.robot3 is installed differently for the real kits
1 parent e712ee3 commit ff532b3

File tree

1 file changed

+4
-30
lines changed

1 file changed

+4
-30
lines changed

programming/editors/vscode.md

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -27,40 +27,14 @@ here.
2727

2828
## Code Completions
2929

30-
In order for VSCode to pick up the `sr.robot` library and offer [completions][code-completion]
31-
you'll need to tell it where to find the library files:
30+
In order for VSCode to pick up the `sr.robot3` library and offer [completions][code-completion]
31+
you'll need to make the library available within the Python environment that you're using.
3232

3333
1. Open the workspace containing your code.
34-
2. Open your [workspace settings][workspace-settings] file:
35-
* On Windows/Linux - **File** > **Preferences** > **Settings**.
36-
* On macOS - **Code** > **Preferences** > **Settings**.
37-
38-
3. Select **Workspace** (rather then **User**).
39-
4. Search for `python.autoComplete.extraPaths`.
40-
5. Click "Edit in settings.json".
41-
6. Add the path to the directory which contains the `sr` directory, within
42-
double quotes. The path can be either relative to your project or absolute.
43-
44-
For example if developing code for the simulator and you have extracted the
45-
simulator directory next to your code:
46-
47-
```
48-
.
49-
├── competition-simulator-<version>
50-
│ ├── ...
51-
│ ├─ modules
52-
│ │ └── sr
53-
│ │ └── robot
54-
│ │ └── ...
55-
│ └─ worlds
56-
│ └── Arena.wbt
57-
└── robot.py
58-
```
59-
60-
then the path you should add is `"competition-simulator-<version>/modules/"`.
34+
2. Open a terminal via **Terminal** > **New Terminal**.
35+
3. Run `pip install sr.robot3`.
6136

6237
[code-completion]: https://en.wikipedia.org/wiki/Autocomplete#In_source_code_editors
63-
[workspace-settings]: https://code.visualstudio.com/docs/getstarted/settings#_creating-user-and-workspace-settings
6438

6539
## Interactive Debugging
6640

0 commit comments

Comments
 (0)