You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mateuszkozako This is an intricate error that I have never seen before. I can see one reason why this error is thrown but I don't understand how it would happen. Could you please verify the following things on your machine?
In VS Code, F1 and enter "Open Extensions Folder"
In the extensions folder, find the directory of our extension (e.g. "ms-azuretools.vscode-azure-github-copilot-0.3.131") and open "dist" > "node_modules" > "microsoft.azure.copilotforazure.aiservice.webapi.localpackage" > ${osStr}-${archStr}. The last part would be something like "linux-x64".
Basically, NodeJS is checking if this path is pointing to a directory and will throw an ENOTDIR error if not. If you can see this directory in your local file browser, you can try to verify if it's a directory from NodeJS perspective.
constfs=require('fs');fs.stat('/path/to/check',(err,stats)=>console.log(err ? `Error: ${err.message}` : stats.isDirectory() ? 'Is a directory' : 'Not a directory'));
Does this occur consistently?
Repro steps:
Action: azextAgent.activate
Error type: ENOTDIR
Error Message: spawn ENOTDIR
Version: 0.3.131
OS: linux
OS Release: 6.13.2-1-cachyos
Product: Visual Studio Code - Insiders
Product Version: 1.98.0-insider
Language: en
Call Stack
The text was updated successfully, but these errors were encountered: