Skip to content

Commit

Permalink
add instructions to exclude files in search (#12550)
Browse files Browse the repository at this point in the history
* add instructions to exclude files in search

* Add screenshot

* fix path

* Update screenshot

* Add missing step
  • Loading branch information
girarda committed May 4, 2022
1 parent 9789ffd commit 92affbe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Binary file added docs/.gitbook/assets/monorepo-exclude-files.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion docs/contributing-to-airbyte/monorepo-python-development.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,16 @@ The following setup steps are written for PyCharm but should have similar equiva

You should now have access to code completion and proper syntax highlighting for python projects.

If you need to work on another connector you can quickly change the current virtual environment in the bottom toolbar.
If you need to work on another connector you can quickly change the current virtual environment in the bottom toolbar.

### Excluding files from venv

By default, the find function in IntelliJ is not scoped and will include all files in the monorepo, including all the libraries installed as part of a connector's virtual environment. This huge volume of files makes indexing and search very slow. You can ignore files from the connectors' virtual environment with the following steps:

1. Open the project structure using `cmd-;`
2. Navigate to the "Project Settings / Modules" section in the right-side of the menu
3. Select the top level `airbyte` module so the change is applied to all submodules
4. Add the following filter to the `Exclude files` option: `connectors/**/.venv`
5. Press OK to confirm your options.

![](../.gitbook/assets/monorepo-exclude-files.png)

0 comments on commit 92affbe

Please sign in to comment.