Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix for daprd proc bug #169 #185

Merged
merged 14 commits into from
Jul 15, 2021
Merged

Conversation

sk593
Copy link
Contributor

@sk593 sk593 commented Jun 18, 2021

Bug fix for #169. Updated application finder to locate all daprd processes (run by either the dapr cli or through daprd directly).

@philliphoff @philkedy

@@ -99,12 +100,23 @@ export default class ProcessBasedDaprApplicationProvider extends vscode.Disposab
}

private async onRefresh(): Promise<void> {
const processes = await this.processProvider.listProcesses('daprd');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any fix probably ought to be incorporated within the ProcessProvider, if anything, because the ps-list library doesn't generate a cmd property on Windows so this fix wouldn't work on that platform. To a certain extent, ProcessProvider exists to hide the switching between ps-list on Linux/Mac and wmic on Windows.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seemed to work when I tested it on Windows, but it's possible I was using a Linux subsystem and that's why it worked. But I'll move the changes to the ProcessProvider to keep the implementation wrapped in that class

Copy link
Collaborator

@philliphoff philliphoff Jun 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, using VS Code with WSL would end up using the Linux codepaths. I use Parallels on my Mac in order to setup both a Windows and Linux VM, so that I can easily test across the different platforms. It's amazing how many quirks one runs into between Mac and Linux, for example, despite the similarities.

@sk593 sk593 marked this pull request as ready for review July 1, 2021 21:32
package.json Outdated Show resolved Hide resolved
Copy link
Collaborator

@philliphoff philliphoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of last comments, then it looks ok.

@sk593 sk593 merged commit 8a607ad into microsoft:main Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants