VEX Extension Can't Find Non-Existent File

Hi,

The VEX Extension version 0.6.1 seems to have a problem with finding a package.json file? I’m not quite sure how the extension works, but the update from 3 months ago attempts to repeatedly find a non-existent file along the path inside a .DS_Store “directory”. The problem is that .DS_Store is a file used by MacOS and not a directory of any sort. Here is the full log:

2025-00-00 00:00:00.224 [info] ExtensionService#_doActivateExtension VEXRobotics.vexcode, startup: false, activationEvent: 'onView:vex-sidebar-home-webview'
2025-00-00 00:00:00.265 [error] Activating extension VEXRobotics.vexcode failed due to an error:
2025-00-00 00:00:00.265 [error] Error: ENOTDIR: not a directory, open '/Users/USERNAME_REDACTED/.vscode/extensions/vexrobotics.vexcode-0.6.1/resources/extensions/.DS_Store/package.json'
	at Object.openSync (node:fs:575:18)
	at Object.func [as openSync] (node:electron/js2c/node_init:2:2559)
	at Object.readFileSync (node:fs:454:35)
	at t.readFileSync (node:electron/js2c/node_init:2:10175)
	at /Users/USERNAME_REDACTED/.vscode/extensions/vexrobotics.vexcode-0.6.1/dist/extension.js:15:44311
	at Array.forEach (<anonymous>)
	at p (/Users/USERNAME_REDACTED/.vscode/extensions/vexrobotics.vexcode-0.6.1/dist/extension.js:15:44232)
	at /Users/USERNAME_REDACTED/.vscode/extensions/vexrobotics.vexcode-0.6.1/dist/extension.js:15:44550
	at /Users/USERNAME_REDACTED/.vscode/extensions/vexrobotics.vexcode-0.6.1/dist/extension.js:15:44646
	at /Users/USERNAME_REDACTED/.vscode/extensions/vexrobotics.vexcode-0.6.1/dist/extension.js:15:44683
	at Object.<anonymous> (/Users/USERNAME_REDACTED/.vscode/extensions/vexrobotics.vexcode-0.6.1/dist/extension.js:25:6319)
	at Module._compile (node:internal/modules/cjs/loader:1484:14)
	at Module._extensions..js (node:internal/modules/cjs/loader:1564:10)
	at Module.load (node:internal/modules/cjs/loader:1295:32)
	at Module._load (node:internal/modules/cjs/loader:1111:12)
	at c._load (node:electron/js2c/node_init:2:16955)
	at e._load (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:190:10924)
	at t._load (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:182:22404)
	at i._load (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:174:21729)
	at Module.require (node:internal/modules/cjs/loader:1318:19)
	at require (node:internal/modules/helpers:179:18)
	at zz.xb (file:///Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:182:23724)
	at async Promise.all (index 0)

I hope this helps with fixing this error. If it helps, this error doesn’t exist in version 0.6.0.

Peter.

We had a previous report of this and could not duplicate.

usually .DS_Store directories only get created if the finder has navigated to that folder. Opening and looking at the extension’s contents may have caused it.

@hphillips

I’ve attempted to reinstall the extension just to face the same error. Downgrading to the prior version (0.6.0) worked. It might be because, as you said, I opened the folder and accessed it causing Finder to create that file; although I have no recollection of opening the extension folder after reinstalling.

I’ll continue trying to resolve this on my side too.

@peter89530

I’ll take a look at this, and try to reproduce.
Thanks for bringing this to our attention!

1 Like