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

Failed to change default editor for Windows #2005

Open
Som-Kesharwani opened this issue Jul 30, 2023 · 1 comment
Open

Failed to change default editor for Windows #2005

Som-Kesharwani opened this issue Jul 30, 2023 · 1 comment

Comments

@Som-Kesharwani
Copy link

Som-Kesharwani commented Jul 30, 2023

Description

I tried to set up the workspace for Opsdroid on my Windows machine using a Python virtual environment. But I'm not able to change or set the default editor and failed to create or edit the configuration file.

Steps to Reproduce

Step to reproduce the issue
python -m venv venv
activate the environment
./venv/scritps/activate
install the opsdroid using pip
pip install opsdroid[ALL]
opsdroid config edit

Expected Functionality

Expected to open the configuration file in Notepad++

Experienced Functionality

Throw an error
FileNotFoundError: [WinError 2] The system cannot find the file specified

Versions

  • opsdroid 0.28.0
  • Python 3.9.13
  • Windows 11

Additional Details

There should be an option to put one more parameter to set the editor

@jacobtomlinson
Copy link
Member

You need to set the environment variable EDITOR to the path to Notepad++.

We should probably handle things better on Windows and try to open the system default editor instead of defaulting to vim.

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

2 participants