vscode + perlnavigator + koha-testing-docker
To get this working, hereâs what weâll need
- vscode w/
- Microsoftâs Dev Containers extension
- bscanâs perlnavigator extension
- Optionally: Microsoftâs docker extension
- koha-testing-docker
- koha
Got koha-testing-docker already up and running? Great! If not, follow the docs.
Using the dev containers extension
Itâs actually super straightforward.
The clicky way
- Open VSCode
- Open the dev containers tab
- Right click the
koha-koha-1
container - Choose Attach in Current Window or Attach in New Window from the context menu
- Click on Open Folder
- Enter
/kohadevbox/koha
The right way ;)
- Open VSCode
- Hit the shortcut
Ctrl/Cmd + Shift + P
- Type Dev Containers and choose the entry Dev Containers: Attach to Running ContainerâŠ
- Choose the
koha-koha-1
container - Hit
Ctrl/Cmd + O
and enter/kohadevbox/koha
Thereâs one more thing
The last thing youâll need to do is to install the perlnavigator extension into the container. Just open the extensions tab and click Install in Container koha/ko..
Youâre good to go
You can now configure perlnavigators settings to your liking and find all the definitions you want! Formatting and Linting is already working using the .perlcriticrc and .perltidyrc files in the project root.
Please tidy your code before submitting patches :D
PS: If you got the docker extension installed as well, you can get an overview of your running containers in the docker tab and just attach from there.
Cheerio
Written by Paul Derscheid on 27 Jul 2023