Bug 1452097
| Summary: | Need help info for oc edit about how to use different editor in Windows | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Xingxing Xia <xxia> |
| Component: | oc | Assignee: | Maciej Szulik <maszulik> |
| Status: | CLOSED EOL | QA Contact: | Xingxing Xia <xxia> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.6.0 | CC: | aos-bugs, jokerman, mmccomas |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-08-21 08:51:29 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Xingxing Xia
2017-05-18 10:49:44 UTC
I found another issue related to this BZ. When I'd like to use Visual Studio Code for an editor on Windows, it failed to edit. Is there any limitation for the editor to support this feature? Steps to Reproduce: 1. Install Visual Studio Code and set "code" to the "PATH" environment variable. https://code.visualstudio.com/download 2. Download oc binary. 3. Execute these command. > set OC_EDITOR=code > oc edit bc/<buildconfig> Edit cancelled, no changed made. My Windows didn't install VS. But I tried Word: D:\qe\test\versions\oc-3.5.5.16>set PATH=%PATH%;C:\Program Files (x86)\Microsoft Office\Office12 D:\qe\test\versions\oc-3.5.5.16>winword D:\qe\test\versions\oc-3.5.5.16>set OC_EDITOR=winword D:\qe\test\versions\oc-3.5.5.16>oc edit dc database A copy of your changes has been stored to "C:\\Users\\star\\AppData\\Local\\Temp\\oc-edit-ctvgo.yaml" error: Edit cancelled, no valid changes were saved. It can open Word to edit but the edit would fail due to Word would prompts MS Word specific format problem when saving the edit. Not sure if there is something prompted in your VS opening and/or edit saving? About limitation, the default assignee Fabiano may answer you Closing due to age. |