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

App error #162

Open
mateuszkozako opened this issue Feb 16, 2025 · 2 comments
Open

App error #162

mateuszkozako opened this issue Feb 16, 2025 · 2 comments

Comments

@mateuszkozako
Copy link

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
extension.bundle.js:2:1836908
fulfilled extension.bundle.js:2:1833204
@JasonYeMSFT
Copy link
Contributor

@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.

const fs = require('fs');
fs.stat('/path/to/check', (err, stats) => console.log(err ? `Error: ${err.message}` : stats.isDirectory() ? 'Is a directory' : 'Not a directory'));

@msalaman
Copy link

@mateuszkozako Please share update if there is any. Our bot will auto-close the issue in two weeks if there is no new response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants