- Clone the branch alpha of the repository
refact-chat-js
. - Install dependencies and build the project:
npm install && npm run build
- Clone the branch
dev
of the repositoryrefact-intellij
. - Move the generated
dist
directory from therefact-chat-js
repository to thesrc/main/resources/webview
directory of therefact-intellij
repository. - Wait for the files to be indexed.
- Open the IDE and navigate to the Gradle panel, then select Run Configurations with the suffix [runIde].
- In the Environment variables field, insert
REFACT_DEBUG=1
. - Start the project by right-clicking on the command
refact-intellij [runIde]
. - Inside the Refact.ai settings in the new IDE (PyCharm will open), select the field
Secret API Key
and press the key combinationCtrl + Alt + - (minus)
, if using MacOS:Command + Option + - (minus)
. - Scroll down and insert the port value for
xDebug LSP port
, which is the port under which LSP is running locally. By default, LSP's port is8001
. - After that, you can test the chat functionality with latest features.