IBM / zopeneditor-about

IBM Z Open Editor: File issues here!
https://ibm.github.io/zopeneditor-about
Apache License 2.0
47 stars 25 forks source link

bitlang.cobol extension used by Z Open Editor conflicts with that used by vscode-ibmi #352

Closed jwoehr closed 11 months ago

jwoehr commented 11 months ago

The bitlang.cobol extension used by Z Open Editor conflicts with that used by vscode-ibmi

COBOL reports in VSCode "Problems":

VSCode version                              : 1.80.1
 Platform                                   : linux
 Architecture                               : x64
Extension Information:
 Extension path                             : /home/jwoehr/.vscode/extensions/bitlang.cobol-9.7.15
 Version                                    : 9.7.15
 UNC paths disabled                         : false
 Parse copybook for references              : false
 Editor maxTokenizationLineLength           : 20000
 Semantic token provider enabled            : false
 editor.semanticHighlighting.enabled        : configuredByTheme
 [COBOL]editor.semanticHighlighting.enabled : true
 workbench color theme                      : Visual Studio Light - C++
 Is Workspace Trusted                       : true

The extension zopeneditor from IBM has conflicting functionality
 Solution      : Disable or uninstall this extension, eg: use command:
                 code --uninstall-extension IBM.zopeneditor
 Reasons       : contributes conflicting grammar
               : contributes language id
 Id            : IBM.zopeneditor
 Description   : Provides COBOL, PL/I, HLASM, and REXX language servers, as well as tools for IBM Z development.
 Version       : 3.2.0
 Repository    : https://github.com/IBM/zopeneditor-about
 Bug Reporting : https://github.com/IBM/zopeneditor-about/issues

Development environment used

Problem Description

Detailed steps for reproducing the problem:

Load Z Open Editor and IBM Code for i in same VSCode Installation

Observed behavior

image

Expected behavior

These 2 IBM flagship open source projects for enterprise systems co-ordinate on 3rd-party extension strategy.

FYI

See this issue for Code for i

FALLAI-Denis commented 11 months ago

Hi @jwoehr,

Bitlang COBOL and IBM ZOE contributes to the same "cobol" language mode, so it is "normal" for these two extensions to conflict.

Have you considered using VS Code profiles to isolate each of the extensions in a different usage context?

Profiles in Visual Studio Code.

"IBM Z Open Editor" is intended to manage programming languages running on an IBM z/OS system. "Code for IBM i" (and Bitlang COBOL for you) is intended to manage programming languages running on an IBM i system. There is no objective reason to want to use these two extensions in the same context at the same time.

Another solution is to use different startup contexts from VS Code to have completely independent management of extensions and to use the --extensions-dir and --user-data-dir parameters when launching VS Code (through a startup shortcut ). See Advanced CLI options.

jwoehr commented 11 months ago

Thanks, that is probably the best solution.

phaumer commented 11 months ago

Great suggestion @FALLAI-Denis. Thanks.