-
Notifications
You must be signed in to change notification settings - Fork 798
TypeError: Cannot read property 'lt' of undefined #1251
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
Comments
Thanks for the report. @chalbardier
Extension log channel: Cmd+Shift+P (command pallette) -> "View: Toggle Output" -> Select "Log (Extension Host)" channel Developer console: Cmd+Shift+P (command pallette) -> "Delveloper: Toggle Developer Tools" -> Console |
Hello, Thank you for responding! Yes I did install the compiler and made sure it was installed by checking in Command Prompt. This is what is in the extension log channel: [2021-02-25 15:13:46.434] [exthost] [info] extension host started |
@chalbardier I don't see any exception stack trace. Is the developer tool console or other channels from the Output pane clean? The exception trace should include the same error message "TypeError: Cannot read property 'lt' of undefined" |
@hyangah I do see it talking about the error in the Developer Console. This is the information it is giving me: |
Thanks! The log was helpful and found the place we are missing additional checks (code But, the root cause here is that the extension couldn't find The Path the extension sees are C:\Program Files (x86)\Google\Chrome\Application;C:\Program Files\Amazon Corretto\jdk1.8.0_265\bin;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files (x86)\Gpg4win..\GnuPG\bin;C:\Users\Corinne Halbardier\AppData\Local\Microsoft\WindowsApps; I don't see Go installation path there yet. Did you install Go using the official Go installer and try to restart VSCode? I also filed #1252 which will be fixed in the next release and help users who didn't configure the Path yet. Please check the Path and verify the directory for Go exists in the Path. Then, restart VS Code. If that doesn't work, a temporary workaround is to add this in the settings.
|
Thank you for looking it over! There was not a notification that said anything about missing Go. I did install the official Go installer and I have tried restarting VSCode. However, when I installed Go it did not give me the option to assign it directly in the Path. I have already tried deleting it and reinstalling it. I am not too familiar with programming so I'm not sure where to put the code you gave me but I will reach out to some of my associates tomorrow to see if they are able to show me how to fix it with your advice. Thank you so much for all your time and help! |
Change https://golang.org/cl/297132 mentions this issue: |
Issue Type: Bug
After typing in the code:
package main
import "fmt"
func main() {
fmt.Println("Hello World!")
}
I try saving it to the folder I have opened and it keeps giving me an error even though an error isn't present. The error I am getting is "Error: TypeError: Cannot read property 'lt' of undefined. I have already tried uninstalling and reinstalling the extension Go but the error remains.
Extension version: 0.22.1
VS Code version: Code 1.53.2 (622cb03f7e070a9670c94bae1a45d78d7181fbd4, 2021-02-11T11:48:04.245Z)
OS version: Windows_NT x64 10.0.19041
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: enabled
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: