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

Error executing watch #272

Open
AnnieChris opened this issue Sep 22, 2024 · 2 comments
Open

Error executing watch #272

AnnieChris opened this issue Sep 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@AnnieChris
Copy link

Describe the bug
Unable to execute watch from the remote file system

Error running command hubspot.remoteFs.watch: path should be a `path.relative()`d string, but got "g:\My_Projects\hubspot_work\growth copy\child.css". This is likely caused by the extension that contributes hubspot.remoteFs.watch.

To Reproduce
Execute watch from the Remote File System

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
image

** Environment Versions: **

  • VSCode Version: [e.g. 1.93.1]
  • HubSpot VSCode Extension version: 1.1.2, 1.2.2
  • OS: [Windows 11]

Additional context
New to hubspot. First time setting up. Latest 1.3.0 version does not even fetch the files. So tried with earlier versions. Fetch works but upload does not work (although no error). Watch fails with the above error. Able to run fetch, watch command from node cli without any issue.

@AnnieChris AnnieChris added the bug Something isn't working label Sep 22, 2024
@jsines jsines mentioned this issue Sep 26, 2024
@jsines
Copy link
Contributor

jsines commented Sep 26, 2024

Thanks for reporting! Got a fix in for your issue with the fetch command that should be going out within a few days. I was unable to reproduce your issue with the watch command in my Windows 11 virtual machine - do you have any additional info on the setup that's causing this error? What path are you providing as a dest when it prompts for one?

@AnnieChris
Copy link
Author

I updated to the latest 1.3.1 version. Fetch is working again. But still watch doesn't work. I looked at the logs in VS code and this is what's logged

2024-09-28 21:54:25.727 [error] RangeError: path should be a `path.relative()`d string, but got "e:\annie\hubspot\sandbox\XXXXXX\CSS_JS\Color_Shifting.js"
	at _ (c:\Users\annie\.vscode\extensions\hubspot.hubl-1.3.1\dist\extension.js:2:238346)
	at v (c:\Users\annie\.vscode\extensions\hubspot.hubl-1.3.1\dist\extension.js:2:238395)
	at y._test (c:\Users\annie\.vscode\extensions\hubspot.hubl-1.3.1\dist\extension.js:2:239769)
	at y.ignores (c:\Users\annie\.vscode\extensions\hubspot.hubl-1.3.1\dist\extension.js:2:240033)
	at u (c:\Users\annie\.vscode\extensions\hubspot.hubl-1.3.1\dist\extension.js:2:77050)
	at c:\Users\annie\.vscode\extensions\hubspot.hubl-1.3.1\dist\extension.js:2:77131
	at Array.filter (<anonymous>)
	at b (c:\Users\annie\.vscode\extensions\hubspot.hubl-1.3.1\dist\extension.js:2:638782)
	at async c:\Users\annie\.vscode\extensions\hubspot.hubl-1.3.1\dist\extension.js:2:638612
	at async h (c:\Users\annie\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\api\node\extensionHostProcess.js:161:210546) hubspot.remoteFs.watch {"value":"HubSpot.hubl","_lower":"hubspot.hubl"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants