vscode-ibmi: Error when attempting source search
Type: Bug
From a filtered list of source files I request a search from the context menu.
Complete the prompt for the search string.
The “Everything is wonderful” dialog quickly pops up and is then replaced by an error dialog which states:
Error searching source members: Error: grep: 001-2113 Error found getting information for object /QSYS.LIB/PARTNER400.LIB/answersrc.FILE/.MBR. No such path or directory.
Sometimes search works - other times it doesn’t. Can’t see any commonality between those source files where is works and those where it doesn’t.
Extension version: 1.7.4 VS Code version: Code 1.76.0 (92da9481c0904c6adfe372c12da3b7748d74bdcb, 2023-03-01T10:23:45.993Z) OS version: Darwin x64 21.6.0 Modes: Sandboxed: No
System Info
Item | Value |
---|---|
CPUs | Intel® Core™ i7-8850H CPU @ 2.60GHz (12 x 2600) |
GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled metal: disabled_off multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_renderer: enabled_on video_decode: enabled video_encode: enabled vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off |
Load (avg) | 1, 1, 2 |
Memory (System) | 16.00GB (0.15GB free) |
Process Argv | –crash-reporter-id f1b2e480-027a-4ea4-83b7-42b011bbc501 |
Screen Reader | no |
VM | 0% |
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
azure-dev_surveyone:30548225
vscccc:30610679
pyindex848:30662994
nodejswelcome1:30587005
282f8724:30602487
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
6233i204:30672705
funwalk2cf:30676044
pythonms35cf:30676801
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 25 (6 by maintainers)
Interesting - all of the incorrect filters had the name of the filter duplicated at the end and the memberType was missing. In some cases, there was also an additional “undefined” entry as you noted. Since I have never edited that file it must have somehow become corrupted over time but I have no idea how.
Anyway … I have manually added the “memberType”: “*” entry to each and e3very filter and as far as I can see they now all work.
Thanks much all for the help - it was really bugging me that it seemed so inconsistent. Will let you all know if it goes haywire again!
@JonFP Glad we got it solved and working again.
The error I get when searching the HTTPAPI source is:
Error searching source members: TypeError: Cannot read properties of undefined (reading ‘extension’)
This appears after the normal progress dialogue “Searching - fetching member list” has been active for a while.
I will post the reconnect output in a few minutes.
@worksofliam You are as always 5 minutes in front of me…! 😆
@sebjulliand Based on Jon’s comments, let’s do a release anyway and see if it will make a fix for him.
Ok, I think I found out. @JonFP , could you click on “Maintain filter” on the filter used for the search, and confirm that the “Member” field is empty for you?
According to the log you sent, this must be the case and this is what causes the error. Putting a
*
in the field will fix the problem. I could reproduce the issue on my side by emptying this field.@worksofliam : do you want me to handle this case in a PR?
Hi @JonFP and @sebjulliand
Another valuable piece of information is the output from the Code for IBM i task, to see what’s going on behind the scenes and what data is returned from the server:
Go to Output and select
Code for IBM i
in the dropdown box - it is at the top of the list. Clear the output before starting the test by clicking on the button to the right ofCode for IBM i
, run the test and send the output.FWIW I tried to replicate the situation - same extension version 1.7.4, same sources - but I did not get the errors that @JonFP see…
Hi @JonFP , would you mind opening an SSH or a QSH session and list the content of one of your source file causing this issue? Run
ls -l /QSYS.LIB/PARTNER400.LIB/answersrc.FILE > /tmp/list.txt
, then download/tmp/list.txt
from the IFS and paste the result here, please 🙂 If you can do the same with/QSYS.LIB/HTTPAPI.LIB/QRPGLESRC.FILE
that may help too, since it gave another lind of error. Thanks!