-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong characters in object browser using QCCSID 37 #2088
Comments
@SanjulaGanepola Good finds! I've seen this as well and it is a regression from when the CCSID handling was changed. About the cached server settings being used for a manually deleted connection: I think we should include a checksum of the connection values in the cached server settings and remove it from cache if the checksums doesn't match. |
In theory, the block that is run only needs to happen when the QCCSID is invalid. When QCCSID is valid, then really the system should return the correct characters, though perhaps there might be a case (like when an old SSHD is running) where this might not be the case. Perhaps a test case we can run on two systems to determine this would be good. I created a PR with the fix for the connection issue and cached data. |
@worksofliam In terms of manually testing, with the branch for #2089, you can consistently reproduce the issue on every connect now as long as you make sure to
@chrjorgensen An idea I had in mind was to simply setup a configuration listener on |
@worksofliam I just took a look at the query that gets run after the change in your branch and in ACS I can see that the result it gets back is not correct.
|
@SanjulaGanepola I didn't know about the configuration listeners - but this is an excellent idea. Go ahead - I'll be looking forward to see your solution. 😃 |
@SanjulaGanepola good idea! 👍🏻 You may want to use this method: vscode-ibmi/src/api/Configuration.ts Line 13 in 47b7627
And check if these listeners here should be extended or if you'll need to add a call in a new place: Line 82 in 47b7627
Line 83 in 47b7627
|
This must be related to profile or system CCSID setup. I ran this with Just for reference, check out this page which mentions about how object names are stored:
|
@worksofliam I tested on 3 different machines and I am still not getting back the right symbols. I tried with the following:
|
@SanjulaGanepola So, we've got the SQL statement to get a list of objects, but can also share an SQL statement (or CL command) to create those objects with the expected name and text? |
@SanjulaGanepola I guess your test cases in #2068 can create those objects. |
Yes I used the test cases to create those objects. Here are also the commands I used:
|
After creating a new connection for the first time and connecting, I noticed that the NL symbols are not rendering correctly in the object browser. However, after disconnecting and reconnecting, they appear fine. I was able to reproduce this on a system where the QCCSID was 37, but not reproducible if the QCCSID was 65535 (explained further below as to why this may be the case).
Result after first connect:
Result after disconnecting and reconnecting:
After trying to debug this issue, I noticed a few things:
Active extensions
Remote system
Enabled features
Shell env
Variants
Errors
The text was updated successfully, but these errors were encountered: