This commit is contained in:
Mukundan Sundararajan 2021-02-11 15:06:51 -08:00
parent cec451a422
commit 79890ad565
1 changed files with 6 additions and 9 deletions

View File

@ -23,14 +23,15 @@ Let's get started!
## Add Dapr as an 'External Tool' ## Add Dapr as an 'External Tool'
First, quit IntelliJ. First, quit IntelliJ before modifying the configurations file directly.
### IntelliJ configuration file location ### IntelliJ configuration file location
For versions [2020.1](https://www.jetbrains.com/help/idea/2020.1/tuning-the-ide.html#config-directory) and above the configuration files for tools should be located in:
{{< tabs Windows Linux MacOS >}} {{< tabs Windows Linux MacOS >}}
{{% codetab %}} {{% codetab %}}
For versions [2020.1](https://www.jetbrains.com/help/idea/2020.1/tuning-the-ide.html#config-directory) and above the configuration files for tools should be located in:
```powershell ```powershell
%USERPROFILE%\AppData\Roaming\JetBrains\IntelliJIdea2020.1\tools\ %USERPROFILE%\AppData\Roaming\JetBrains\IntelliJIdea2020.1\tools\
``` ```
@ -38,7 +39,6 @@ For versions [2020.1](https://www.jetbrains.com/help/idea/2020.1/tuning-the-ide.
{{% codetab %}} {{% codetab %}}
For versions [2020.1](https://www.jetbrains.com/help/idea/2020.1/tuning-the-ide.html#config-directory) and above the configuration files for tools should be located in:
```shell ```shell
$HOME/.config/JetBrains/IntelliJIdea2020.1/tools/ $HOME/.config/JetBrains/IntelliJIdea2020.1/tools/
``` ```
@ -46,8 +46,6 @@ For versions [2020.1](https://www.jetbrains.com/help/idea/2020.1/tuning-the-ide.
{{% codetab %}} {{% codetab %}}
For versions [2020.1](https://www.jetbrains.com/help/idea/2020.1/tuning-the-ide.html#config-directory) and above the configuration files for tools should be located in:
```shell ```shell
~/Library/Application Support/JetBrains/IntelliJIdea2020.1/tools/ ~/Library/Application Support/JetBrains/IntelliJIdea2020.1/tools/
``` ```
@ -58,7 +56,7 @@ For versions [2020.1](https://www.jetbrains.com/help/idea/2020.1/tuning-the-ide.
> The configuration file location is different for version 2019.3 or prior. See [here](https://www.jetbrains.com/help/idea/2019.3/tuning-the-ide.html#config-directory) for more details. > The configuration file location is different for version 2019.3 or prior. See [here](https://www.jetbrains.com/help/idea/2019.3/tuning-the-ide.html#config-directory) for more details.
Change the version in the path if needed. Change the version of IntelliJ in the path if needed.
Create or edit the file in `<CONFIG PATH>/tools/External\ Tools.xml` (change IntelliJ version in path if needed). The `<CONFIG PATH>` is OS dependennt as seen above. Create or edit the file in `<CONFIG PATH>/tools/External\ Tools.xml` (change IntelliJ version in path if needed). The `<CONFIG PATH>` is OS dependennt as seen above.
@ -70,9 +68,8 @@ Add a new `<tool></tool>` entry:
<!-- 1. Each tool has its own app-id, so create one per application to be debugged --> <!-- 1. Each tool has its own app-id, so create one per application to be debugged -->
<tool name="dapr for DemoService in examples" description="Dapr sidecar" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="true" showConsoleOnStdErr="true" synchronizeAfterRun="true"> <tool name="dapr for DemoService in examples" description="Dapr sidecar" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="true" showConsoleOnStdOut="true" showConsoleOnStdErr="true" synchronizeAfterRun="true">
<exec> <exec>
<!-- 2. For Linux or MacOS use: /usr/local/bin/daprd --> <!-- 2. For Linux or MacOS use: /usr/local/bin/dapr -->
<!-- 2.1 Replace %USERPROFILE% with the full path --> <option name="COMMAND" value="C:\dapr\dapr.exe" />
<option name="COMMAND" value="%USERPROFILE%\dapr\daprd.exe" />
<!-- 3. Choose app, http and grpc ports that do not conflict with other daprd command entries (placement address should not change). --> <!-- 3. Choose app, http and grpc ports that do not conflict with other daprd command entries (placement address should not change). -->
<option name="PARAMETERS" value="-app-id demoservice -app-port 3000 -dapr-http-port 3005 -dapr-grpc-port 52000 -placement-host-address localhost:50005" /> <option name="PARAMETERS" value="-app-id demoservice -app-port 3000 -dapr-http-port 3005 -dapr-grpc-port 52000 -placement-host-address localhost:50005" />
<!-- 4. Use the folder where the `components` folder is located --> <!-- 4. Use the folder where the `components` folder is located -->