当前位置:网站首页>Unity vscode emmylua configuration error resolution

Unity vscode emmylua configuration error resolution

2022-07-04 22:41:00 Rice shrimp

VScode For easy writing Lua A plug-in of code Emmylua When reconfiguring the environment , You may encounter the following Bug

At this time, our environment variable configuration is problematic  

Win+R Open up our cmd Command window , Input java perhaps java-version see  

If the above error occurs after input , There may be two reasons :

reason 1: May be JDK It was installed earlier , Lead to Path( This computer -> Right click properties -> Advanced system setup -> environment variable -> In the system variable Path) Medium %JAVA_HOME%\jre\bin Rank and compare later . Here's the picture :

At this time, we need to put this %JAVA_HOME%\jre\bin Move up to the top , Now let's enter java perhaps java-version see , You can see something similar to the following

Then restart our Emmylua plug-in unit , You can see that our global variable turns red , Press and hold Ctrl At the same time, click the left mouse button to jump to the location of our variables ( Or select the variable and right-click F12 You can also jump )

reason 2: The original JDK Originally installed in C Discoid , Now? Moved to D disc , Lead to cmd newspaper :Error: could not open `C:\Program Files\Java\jre1.8.0_121\lib\amd64\jvm.cfg’ wrong

terms of settlement : Select %JAVA_HOME%\jre\bin Then click move up , Just move to the top . If it's not this interface, you can put %JAVA_HOME%\jre\bin Intercept to the front .

原网站

版权声明
本文为[Rice shrimp]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/185/202207042208072344.html