Does VS Code IBM i have an outline like RDI does? #1178
-
The developers where I work all use RDI but I'm interested in this editor and trying it out. One of our favorite RDI functions is the Outline window. When I first brought it up there was some very small indistinguishable code on the far right. I closed that. I have the secondary sidebar up instead with outline dragged and dropped into it. I get the error message: “The active editor cannot provide outline information.” The editor is IBM i. Does VS Code IBM i have the outline function that RDI has or something similar to it? If so, how do I bring it up? In viewing the videos on YouTube for IBM i it was not shown. |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 16 replies
-
It does. Ensure you have the RPGLE language tools installed: https://marketplace.visualstudio.com/items?itemName=HalcyonTechLtd.vscode-rpgle |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue, loading the RPGLE language tools extension has not helped. |
Beta Was this translation helpful? Give feedback.
-
Here is a small test program that shows the issue. By the way I am using
PUB400.
[image: image.png]
Console output.
INFO Electron sandbox mode is enabled!
log.ts:431 WARN Via 'product.json#extensionEnabledApiProposals' extension
'ms-vscode.vscode-selfhost-test-provider' wants API proposal
'testContinuousRun' but that proposal DOES NOT EXIST. Likely, the proposal
has been finalized (check 'vscode.d.ts') or was abandoned.
log.ts:431 WARN Via 'product.json#extensionEnabledApiProposals' extension
'ms-vscode.remote-repositories' wants API proposal
'contribEditorGutterMenu' but that proposal DOES NOT EXIST. Likely, the
proposal has been finalized (check 'vscode.d.ts') or was abandoned.
log.ts:431 WARN Via 'product.json#extensionEnabledApiProposals' extension
'github.vscode-pull-request-github' wants API proposal
'contribEditorGutterMenu' but that proposal DOES NOT EXIST. Likely, the
proposal has been finalized (check 'vscode.d.ts') or was abandoned.
log.ts:431 WARN Via 'product.json#extensionEnabledApiProposals' extension
'ms-toolsai.jupyter' wants API proposal 'notebookControllerKind' but that
proposal DOES NOT EXIST. Likely, the proposal has been finalized (check
'vscode.d.ts') or was abandoned.
log.ts:421 INFO [bitlang.cobol]: Command
`workbench.action.closeEditorsToTheLeft` appears multiple times in the
`commands` section.
log.ts:441 ERR [Extension Host] (node:15420) [DEP0005]
DeprecationWarning: Buffer() is deprecated due to security and usability
issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or
Buffer.from() methods instead.
(Use `Code --trace-deprecation ...` to show where the warning was created)
console.ts:137 [Extension Host] (node:15420) [DEP0005] DeprecationWarning:
Buffer() is deprecated due to security and usability issues. Please use the
Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `Code --trace-deprecation ...` to show where the warning was created)
T @ console.ts:137
console.ts:137 [Extension Host] Congratulations, your extension
"vscode-ibmi-walkthroughs" is now active!
log.ts:421 INFO [perf] Render performance baseline is 142ms
console.ts:137 [Extension Host] Congratulations, your extension
"code-for-ibmi" is now active!
console.ts:137 [Extension Host] Congratulations, your extension
"vscode-db2i" is now active!
console.ts:137 [Extension Host] Congratulations, your extension
"vscode-ibmi-notebooks" is now active!
console.ts:137 [Extension Host] CPD0032: Not authorized to command CRTLIB
in library *LIBL.
CPF0006: Errors occurred in command.
console.ts:137 [Extension Host] /QSYS.lib/JJANDREAU1.lib/GENCMDXML.PGM not
found
TMScopeRegistry.ts:45 Overwriting grammar scope name to file mapping for
scope source.sql.
Old grammar file:
file:///c%3A/Users/John/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/extensions/sql/syntaxes/sql.tmLanguage.json.
New grammar file:
file:///c%3A/Users/John/.vscode/extensions/mtxr.sqltools-0.27.1/language/sql.tmLanguage.json
register @ TMScopeRegistry.ts:45
TMScopeRegistry.ts:45 Overwriting grammar scope name to file mapping for
scope source.rpg.
Old grammar file:
file:///c%3A/Users/John/.vscode/extensions/barrettotte.ibmi-languages-0.6.10/syntaxes/rpg.tmLanguage.json.
New grammar file:
file:///c%3A/Users/John/.vscode/extensions/nielsliisberg.rpg-0.2.1/syntaxes/rpg.tmLanguage.json
register @ TMScopeRegistry.ts:45
TMScopeRegistry.ts:45 Overwriting grammar scope name to file mapping for
scope source.rpgle.
Old grammar file:
file:///c%3A/Users/John/.vscode/extensions/barrettotte.ibmi-languages-0.6.10/syntaxes/rpgle.tmLanguage.json.
New grammar file:
file:///c%3A/Users/John/.vscode/extensions/spinenetsystems.rpgle-1.1.16/syntaxes/rpg.tmLanguage.json
register @ TMScopeRegistry.ts:45
languageConfigurationExtensionPoint.ts:165 [rpg]: language configuration:
expected `comments.lineComment` to be a string.
k @ languageConfigurationExtensionPoint.ts:165
languageConfigurationExtensionPoint.ts:173 [rpg]: language configuration:
expected `comments.blockComment` to be an array of two strings.
k @ languageConfigurationExtensionPoint.ts:173
…On Sat, Apr 1, 2023 at 5:42 AM Sébastien Julliand ***@***.***> wrote:
Right, so maybe you can share the Code for IBM i output as well:
[image: image]
<https://user-images.githubusercontent.com/11096890/229278273-632ab984-377c-413a-ac57-b039d47b388f.png>
Open your RPG file and then copy and paste the content of that output.
Maybe there is something useful in there.
You also have a look at the console after the file is opened, to see if
there are any error there:
1. Open the Help menu and choose Toggle Developer Tools
[image: image]
<https://user-images.githubusercontent.com/11096890/229278462-510715f4-503d-4f8d-b3b1-cffe73dd7e3e.png>
2. Then select the Console tab
[image: image]
<https://user-images.githubusercontent.com/11096890/229278498-c17a3875-9b0a-4864-9160-425228402c43.png>
3. In the console, use Ctrl+a then Ctrl+c to copy the whole console
content and paste it here as well.
Thanks!
—
Reply to this email directly, view it on GitHub
<https://github.com/orgs/halcyon-tech/discussions/1178#discussioncomment-5496091>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4SWN4GYQ3X7SBJNZRK6JULW672ANANCNFSM6AAAAAAWHZKBXY>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
It is loaded and enabled.
…On Sat, Apr 1, 2023 at 8:51 AM Sébastien Julliand ***@***.***> wrote:
Seems the image you tried to attach didn't make it through.
That's odd though...I just gave it a try, from a GitHub Codespace, with
the RPGLE extension loaded and connected to PUB400; and even an RPGLE file
opened from the file explorer shows the outline.
Can you check if the extension is both loaded and enabled?
[image: image]
<https://user-images.githubusercontent.com/11096890/229289801-2abaf02c-e542-451e-95f6-09d4aa85751d.png>
—
Reply to this email directly, view it on GitHub
<https://github.com/orgs/halcyon-tech/discussions/1178#discussioncomment-5496839>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4SWN4EWRTMKTVDLDSGESU3W7AQDNANCNFSM6AAAAAAWHZKBXY>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Any RPG file that I open does not show the outline view.
In MiWorkplace the outline view shows up. Hopefully this screen print shows
up.
[image: image.png]
…On Sat, Apr 1, 2023 at 1:54 PM Sébastien Julliand ***@***.***> wrote:
I'd be curious to see the RPG file that causes the outline to remain
empty. Thanks!
—
Reply to this email directly, view it on GitHub
<https://github.com/orgs/halcyon-tech/discussions/1178#discussioncomment-5498164>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4SWN4EAXB5KLUGEEQGOM5LW7BTXBANCNFSM6AAAAAAWHZKBXY>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
I guess I'll remove vscode and do a fresh install. I should be able to get
to that on Monday.
…On Sat, Apr 1, 2023 at 3:20 PM Sébastien Julliand ***@***.***> wrote:
Nope, it seems replying to the e-mail doesn't allow for images to be
attached.
—
Reply to this email directly, view it on GitHub
<https://github.com/orgs/halcyon-tech/discussions/1178#discussioncomment-5498491>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4SWN4DNXFPQGJHQIJ74WG3W7B5YLANCNFSM6AAAAAAWHZKBXY>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Hi
Finally got it working. I had to remove all extensions, remove VS Code, and
then reload everything.
Thanks for your help.
John
…On Sat, Apr 1, 2023 at 3:20 PM Sébastien Julliand ***@***.***> wrote:
Nope, it seems replying to the e-mail doesn't allow for images to be
attached.
—
Reply to this email directly, view it on GitHub
<https://github.com/orgs/halcyon-tech/discussions/1178#discussioncomment-5498491>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4SWN4DNXFPQGJHQIJ74WG3W7B5YLANCNFSM6AAAAAAWHZKBXY>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
I have found an extension that stops the outline view from working. That is
RRPG by SpineNetSystems.
I do have a question about the outline view. Is it supposed to show where
items listed in the view are used? Right now all I get is the definition,
not where used.
Thanks
John
…On Mon, Apr 3, 2023 at 9:47 AM Sébastien Julliand ***@***.***> wrote:
Anytime! I'm glad it finally works.
—
Reply to this email directly, view it on GitHub
<https://github.com/orgs/halcyon-tech/discussions/1178#discussioncomment-5510316>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4SWN4AJKIBOAWURYSAOSYLW7LIHJANCNFSM6AAAAAAWHZKBXY>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
The description doesn't say anything about providing an outline view.
And it seems to me that the outline view should show "where used" for each
item in the view. Maybe it does and my install still has an issue.
…On Wed, Apr 5, 2023 at 1:08 PM barry ***@***.***> wrote:
Sadly I don't know much about that extension, though there should be no
reason they (Code for IBM i and RRPG) can't work together. I imagine RPGLE
(from us) and RRPG can't work together since they probably try to provide
the same thing.
—
Reply to this email directly, view it on GitHub
<https://github.com/orgs/halcyon-tech/discussions/1178#discussioncomment-5534982>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A4SWN4CIV6EHL2K7MWEV5MLW7WRHNANCNFSM6AAAAAAWHZKBXY>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
My outline view worked and now it shows 'No symbols found in document...' on any document I open. Here is a sample RPG: PerformFibonacciSequence(); *InLr = *On; Dcl-Proc PerformFibonacciSequence; Dcl-pi *n; Dcl-s var_1 Uns(3) Inz(0); Dow count <= 11; End-Proc; Here is my console information: |
Beta Was this translation helpful? Give feedback.
It does.
Ensure you have the RPGLE language tools installed: https://marketplace.visualstudio.com/items?itemName=HalcyonTechLtd.vscode-rpgle