Azure-devops-cli-extension: Error when you choose to view or edit the yaml

Created on 17 Jul 2019  路  2Comments  路  Source: Azure/azure-devops-cli-extension

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az pipelines create Extension Name: azure-devops. Version: 0.11.0.

Errors:

[WinError 1155] No application is associated with the specified file for this operation: 'C:\\Users\\risquass\\AppData\\Local\\Temp\\AzurePipelines_vo4buktu\\azure-pipelines.yml'
Traceback (most recent call last):
pip-install-qdpilz60\knack\knack\cli.py, ln 206, in invoke
cli\core\commands\__init__.py, ln 578, in execute
cli\core\commands\__init__.py, ln 636, in _run_jobs_serially
cli\core\commands\__init__.py, ln 627, in _run_job
...
OSError: [WinError 1155] No application is associated with the specified file for this operation: 'C:\\Users\\risquass\\AppData\\Local\\Temp\\AzurePipelines_vo4buktu\\azure-pipelines.yml'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • az pipelines create --name {} --organization {} --project {} --repository {} --branch {}
  • choose to edit yaml file

Expected Behavior

Open yaml file to be viewed/edited

Environment Summary

Windows-10-10.0.18362-SP0
Python 3.6.6
Shell: cmd.exe

azure-cli 2.0.69
azure-cli-iot-ext 0.7.1

Extensions:
azure-cli-iot-ext 0.7.1
azure-devops 0.11.0

Additional Context


bug ProToCol

Most helpful comment

Will add a fallback to open the choose program dialog in case the default editor is not set for the file.

[Update]
The behavior for me was already that it opens a choose program dialog if the default program is not set for the file type. Unsetting the default program is not straight forward so I will check again and update the issue accordingly.

All 2 comments

This can be either closed or the yaml file could be opened in the default text editor.

When I opened the .yml file for the first time in Windows it asked which program I'd like to use to open the file. I selected Visual Studio Code and check the always open with this program. Now the command worked as expected.

Will add a fallback to open the choose program dialog in case the default editor is not set for the file.

[Update]
The behavior for me was already that it opens a choose program dialog if the default program is not set for the file type. Unsetting the default program is not straight forward so I will check again and update the issue accordingly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lzybkr picture lzybkr  路  7Comments

atbagga picture atbagga  路  5Comments

benc-uk picture benc-uk  路  4Comments

willsmythe picture willsmythe  路  5Comments

f00-beerd picture f00-beerd  路  3Comments