Penstock

VS Code / Licence and help

Troubleshooting in VS Code

Fixes for the problems that only happen in VS Code: a file that opens as text, a command that does nothing, and what is not available yet.

Free

Problems that are not about VS Code, such as a failed deployment or a missing template, are in the general troubleshooting page.

A file opens as text, not in the editor

A command is greyed out, or does nothing

The command is greyed out in the paletteThe Penstock commands are enabled while a Penstock editor has focus. Click the diagram first. An action the open diagram has switched off is greyed out too.
"Penstock: open a Penstock editor to use …"The command ran with no Penstock editor open. Open a .bpmn, .dmn or .form file.
"Penstock: … is not available for this diagram."The open diagram does not offer that action.
A key does nothingThe Penstock editor keys are bound only while a Penstock editor has focus, and the project tree keys are bound while the Penstock view has focus. See Shortcuts.

"… is not available in VS Code yet"

The editor asked for something the extension does not do yet, and said so rather than pretending. These are:

Running a test or debugging it from the project tree opens the file at the test and goes through VS Code's testing commands at the cursor. The debugger section in the project tree stays empty.

They need Pro. Open the Penstock view in the Activity Bar. Without Pro it says what the feature gives and offers to buy or sign in. The Problems view stays empty too. With Pro, press the reload button in the toolbar of the Penstock view, and check that the code is in the workspace folder or under linked in penstock.yaml. See Code links in VS Code.

Test cases

The Test Explorer lists no test cases.
Penstock finds the test-cases folder beside the diagram, or src/test/resources/test-cases for a diagram under src/main/resources. A diagram with no test-case file says so, and penstock test-cases --generate writes one next to the diagram.
VS Code asks Run test cases on this engine?
Penstock deploys a test build to the engine of the profile, starts instances, answers the jobs the test case mocks, and removes the build and the instances after each run. To stop being asked, mark the profile with deployment.forTests: true. An engine that is neither marked for tests nor on this machine is not changed.
Where is the trace of a run?
In the Output panel, in the channel Penstock Test Runs, and under .penstock/runs. Open run on the diagram in the menu of a test case shows the path on the diagram.
JUnit tests are not listed.
JUnit and Camunda Process Test classes are run by the Java extension. Penstock runs only the test-case files.

Compare with…

"Open a BPMN diagram to compare, or pick one in the explorer."
Open a .bpmn file, or right-click one in the Explorer or in Source Control.
"… is not in a git repository, so there is no … of it to compare with."
Pick another file to compare with, or put the folder under git.

Deployment

Where else to look

Still stuck

Open an issue on the support tracker. Add the VS Code version, the extension version, the engine, and a .bpmn file that shows the problem.