hqjs / vscode-hq-live-server

Visual studio code extension for HQ Live server
MIT License
10 stars 1 forks source link

Does not work for windows #3

Closed hqjs closed 4 years ago

hqjs commented 4 years ago

Could not locate active project in windows.

mmcintyre123 commented 4 years ago

Yes, please note this in the project readme until it can be enabled on Windows. Also tried it in VSCode's WSL: Ubuntu mode and it doesn't work on that either, though the Go Live button at least appears.

hqjs commented 4 years ago

There should be an easy to fix problem with vscode project structure on windows, but I don't have any windows machine to reproduce and fix it. Some help would be appreciated.

mopsek commented 4 years ago

@hqjs I have VirtualBox with Windows 10 on board. Could possibly help you guys with it.

hqjs commented 4 years ago

That would be great! PRs are welcome or even just some debugging will be extremely helpful.

On Tue, Jan 21, 2020 at 11:58 PM Maxim notifications@github.com wrote:

@hqjs https://github.com/hqjs I have VirtualBox with Window 10 on board. Could possibly help you guys with it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/hqjs/vscode-hq-live-server/issues/3?email_source=notifications&email_token=AKNUIQLJYIMNOOTAP6T4LEDQ65VYVA5CNFSM4I2BU6E2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJRNKSI#issuecomment-576902473, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKNUIQI6KZ5SNOZUNUBX7R3Q65VYVANCNFSM4I2BU6EQ .

shba007 commented 4 years ago

I have a windows machine I am looking forward to use the extension.

hqjs commented 4 years ago

@mopsek can you please assist with debugging?

shba007 commented 4 years ago

@hqjs if you need any help i will be happy to help

hqjs commented 4 years ago

@Shirsendu-Bairagi thanks a lot! I guess there are two problems here:

  1. hq server itself is not very accurate while working with paths (using / instead of path.separator)
  2. seems like vscode on windows might have a bit different project organization

I would be glad to fix all problems if only I know where to look so any debuggin information would be really helpful.

shba007 commented 4 years ago

Ok i try to clone and debug your project....when i complete i will directly send it to @hqjs email.

hqjs commented 4 years ago

@mopsek the problem seems to be here https://github.com/hqjs/vscode-hq-live-server/blob/ac466cf739b3b4f8f6d8c7c2be31b22f67f3b1ca/project-resolver.js#L8

Can you please provide some debug values for

workspaceFolders.map(project => `${project.uri.fsPath}/`);
activeFileName;
mopsek commented 4 years ago

@mopsek the problem seems to be here

https://github.com/hqjs/vscode-hq-live-server/blob/ac466cf739b3b4f8f6d8c7c2be31b22f67f3b1ca/project-resolver.js#L8

Can you please provide some debug values for

workspaceFolders.map(project => `${project.uri.fsPath}/`);
activeFileName;

Sure.

mopsek commented 4 years ago

Fixed here: https://github.com/hqjs/vscode-hq-live-server/pull/4

hqjs commented 4 years ago

Published as v0.0.7