Skip to content
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

Cannot read properties of undefined (reading 'name') #1498

Closed
rpxr400 opened this issue Aug 22, 2023 · 10 comments · Fixed by #1499
Closed

Cannot read properties of undefined (reading 'name') #1498

rpxr400 opened this issue Aug 22, 2023 · 10 comments · Fixed by #1499
Assignees
Labels
info-needed More information is requied from the issuer

Comments

@rpxr400
Copy link

rpxr400 commented Aug 22, 2023

Tryin to connect to our Dev box and getting the error in subject line.
Initial error window is:

Not connected to (systemname)! No response from server
Source: Code for IBMi

When I look at Runtime Status of Code for IBMi, I see "Cannot read properties of undefined (reading 'name')" errors.
Activation event: onStartupFinished

Port 22 is open.

I can connect to our production box fine.


Context Version
Code for IBM i version 2.1.0
Visual Studio Code version 1.81.1
Operating System win32_x64
Active extensions
Code for IBM i Walkthroughs (vscode-ibmi-walkthroughs): 0.3.1
Emmet (emmet): 1.0.0
Git (git): 1.0.0
Git Base (git-base): 1.0.0
GitHub (github): 0.0.1
GitHub Authentication (github-authentication): 0.0.2
JSON Language Features (json-language-features): 1.0.0
Merge Conflict (merge-conflict): 1.0.0
Microsoft Account (microsoft-authentication): 0.0.1
Node Debug Auto-attach (debug-auto-launch): 1.0.0
TypeScript and JavaScript Language Features (typescript-language-features): 1.0.0
WSL: Recommender (remote-wsl-recommender): 0.0.19

Not connected 🔌

@worksofliam
Copy link
Contributor

Can you connect through a regular SSH client? For example, ssh from most shells, or putty, etc?

@rpxr400
Copy link
Author

rpxr400 commented Aug 22, 2023

I tried running Windows SSH and Putty, but I need admin rights to install them.

@worksofliam
Copy link
Contributor

@rpxr400 the next step is to find out if the issue is due to SSH or due to Code for IBM i.

This error you're seeing is always shown and isn't unique to you, so I suspect some ssh issues.

Let us know when you manage to connect outside of Code for IBM i, and when you can, ensure your connection settings are correct.

@worksofliam worksofliam added the info-needed More information is requied from the issuer label Aug 23, 2023
@vuxat
Copy link

vuxat commented Aug 23, 2023

Hi,

I have the same issue after Update to the latest version of VS Code (or the Plugin).
image
And on a second machine:
image

ssh connection works perfectly.
When I add a new connection in the Plugin, and name it like Server 2 (because the name is already taken (so it can read it somehow), and connect immediately instead of just save&exit, it connects and I can work like always. It does not show up and on the next try "Server 2" is already taken.

Before the update, machine 2 showed me the server list, since the update both show the empty beginner list:
image

Best regards,
Stefan

@worksofliam
Copy link
Contributor

worksofliam commented Aug 23, 2023

@vuxat what language is your vscode instance configured to use? Looks like it could be related to locales.

@vuxat
Copy link

vuxat commented Aug 23, 2023

@vuxat what language is your vscode instance configured to use? Looks like it could be related to locales.

@worksofliam my VSCode editors either run with english or german settings. de_AT.UTF8 maybe in the background?

@worksofliam
Copy link
Contributor

worksofliam commented Aug 23, 2023

Look what I found!
image

@vuxat
Copy link

vuxat commented Aug 23, 2023

@worksofliam thank you!

@worksofliam
Copy link
Contributor

@vuxat Waiting for the attached PR above to be merged and then we can create a release :)

@worksofliam
Copy link
Contributor

@vuxat 2.1.1 is released with a fix. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
info-needed More information is requied from the issuer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants