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

Apex Code Editor Extension stopped working #583

Closed
Alex-Dinu opened this issue Aug 21, 2018 · 11 comments
Closed

Apex Code Editor Extension stopped working #583

Alex-Dinu opened this issue Aug 21, 2018 · 11 comments

Comments

@Alex-Dinu
Copy link

Summary

I had this working with your help from a previous Issue(535)

But for some reason it stopped working. Not sure if the following affected this:
I

  1. I installed JDK 10
  2. Updated Environment settings and User Settings to point to 10
  3. Found out that it's not compatible with these extensions
  4. I uninstalled JDK 10
  5. Reverted back to JDK 8 settings:
    image
    image
    image

I also have the sfdx-project file in the root:
image

Expected result

See some additional menu items such as F12, etc...

Actual result

This is what I see:
image

I'm also not seeing any Apex items in the output list:
image

Additional information

Feel free to attach a screenshot.

VS Code Version: 1.26.0

OS and version: Windows 10

Thank you
Alex

@vazexqi
Copy link
Contributor

vazexqi commented Aug 21, 2018

@ad1969 - Could you do "If you've checked all of the above and nothing is working, check for errors in VS Code itself. In the VS Code menu bar, select Help > Toggle Developer Tools, click Console, and search for relevant messages." from https://github.com/forcedotcom/salesforcedx-vscode/wiki/Apex-Language-Server#is-the-apex-language-server-active

I want to see the errors.

@Alex-Dinu
Copy link
Author

No seeing any glaring issues:
image

@vazexqi
Copy link
Contributor

vazexqi commented Aug 21, 2018

@ad1969 - Could you show me the output of typing process.env in the Chrome Developer Tools for VS Code? I'm interested in seeing what process.env shows for JAVA_HOME or JDK_HOME.

Sorry, I'm traveling and don't have my windows laptop with me. I don't know if this issue is specific to Windows where you need to reboot/restart to get the environment variables to be picked up.

@Alex-Dinu
Copy link
Author

Alex-Dinu commented Aug 21, 2018

I appreciate the quick responses taking into account that you are traveling.

I re-started my computer before submitting the issue. Anyway, here is the process.env:

I guess what you are looking for is: JAVA_HOME: "C:\Program Files\Java\jdk1.8.0_172"

{ALLUSERSPROFILE: "C:\ProgramData", ANT_HOME: "c:\ant", APPDATA: "C:\Users\dinua\AppData\Roaming", CommonProgramFiles: "C:\Program Files\Common Files", CommonProgramFiles(x86): "C:\Program Files (x86)\Common Files", …}
ALLUSERSPROFILE
:
"C:\ProgramData"
ANT_HOME
:
"c:\ant"
APPDATA
:
"C:\Users\dinua\AppData\Roaming"
COMPUTERNAME
:
"HOF-DINUA-L"
ComSpec
:
"C:\windows\system32\cmd.exe"
CommonProgramFiles
:
"C:\Program Files\Common Files"
CommonProgramFiles(x86)
:
"C:\Program Files (x86)\Common Files"
CommonProgramW6432
:
"C:\Program Files\Common Files"
FPS_BROWSER_APP_PROFILE_STRING
:
"Internet Explorer"
FPS_BROWSER_USER_PROFILE_STRING
:
"Default"
FSHARPINSTALLDIR
:
"C:\Program Files (x86)\Microsoft SDKs\F#\10.1\Framework\v4.0\"
GC_LANG
:
"English_UnitedStates.windows-1252@Default"
GOOGLE_API_KEY
:
"AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q"
HOMEDRIVE
:
"C:"
HOMEPATH
:
"\Users\dinua"
JAVA_HOME
:
"C:\Program Files\Java\jdk1.8.0_172"
LOCALAPPDATA
:
"C:\Users\dinua\AppData\Local"
LOGONSERVER
:
"\\DSDC3HE"
NUMBER_OF_PROCESSORS
:
"8"
OS
:
"Windows_NT"
OneDrive
:
"C:\Users\Administrator\OneDrive"
PATHEXT
:
".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC"
PROCESSOR_ARCHITECTURE
:
"AMD64"
PROCESSOR_IDENTIFIER
:
"Intel64 Family 6 Model 60 Stepping 3, GenuineIntel"
PROCESSOR_LEVEL
:
"6"
PROCESSOR_REVISION
:
"3c03"
PSModulePath
:
"C:\Program Files\WindowsPowerShell\Modules;C:\windows\system32\WindowsPowerShell\v1.0\Modules;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\PowerShell\Modules\"
PUBLIC
:
"C:\Users\Public"
Path
:
"C:\Program Files (x86)\RSA SecurID Token Common;C:\ClarifyCRM12.5.1.41\Configurator\Common Files\CCAutomation;C:\ClarifyCRM12.5.1.41\ClarifyClient;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Sennheiser\SoftphoneSDK\;C:\Program Files (x86)\WebEx\Productivity Tools;C:\ClfyFTS;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\windows\system32\config\systemprofile\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files\PuTTY\;C:\Program Files (x86)\GitExtensions\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Windows Kits\10\bin;C:\Program Files\Java\jdk1.8.0_172\bin;c:\ant;c:\ant\bin;C:\Users\dinua\AppData\Local\Microsoft\WindowsApps;"
ProgramData
:
"C:\ProgramData"
ProgramFiles
:
"C:\Program Files"
ProgramFiles(x86)
:
"C:\Program Files (x86)"
ProgramW6432
:
"C:\Program Files"
QT_DEVICE_PIXEL_RATIO
:
"auto"
SESSIONNAME
:
"Console"
SystemDrive
:
"C:"
SystemRoot
:
"C:\windows"
TEMP
:
"C:\Users\dinua\AppData\Local\Temp"
TMP
:
"C:\Users\dinua\AppData\Local\Temp"
UATDATA
:
"C:\windows\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77"
USERDNSDOMAIN
:
"DS.AD.ADP.COM"
USERDOMAIN
:
"DS"
USERDOMAIN_ROAMINGPROFILE
:
"DS"
USERNAME
:
"dinua"
USERPROFILE
:
"C:\Users\dinua"
VS100COMNTOOLS
:
"c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\"
VS110COMNTOOLS
:
"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\"
VS120COMNTOOLS
:
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\"
VS140COMNTOOLS
:
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\"
VSCODE_CWD
:
"C:\Program Files\Microsoft VS Code"
VSCODE_IPC_HOOK
:
"\\.\pipe\8f60062537e53e956ea45a39b82c8784-1.26.0-main-sock"
VSCODE_LOGS
:
"C:\Users\dinua\AppData\Roaming\Code\logs\20180821T080551"
VSCODE_NLS_CONFIG
:
"{"locale":"en-us","availableLanguages":{}}"
VSCODE_NODE_CACHED_DATA_DIR_8060
:
"C:\Users\dinua\AppData\Roaming\Code\CachedData\4e9361845dc28659923a300945f84731393e210d"
VSCODE_PID
:
"8060"
windir
:
"C:\windows"

@Alex-Dinu
Copy link
Author

@ntotten - Thanks. Could you please explain what it means? We're in the middle to researching, training and preparing for new developments and need to understand what this bug is and how long will it take to resolve since this is an integral part of our plan.

@Alex-Dinu
Copy link
Author

I noticed that this works in lightning, but not in apex classes:
image

@Alex-Dinu
Copy link
Author

Final update: I re-installed the CLI, all extensions and started CS Code as admin - now it works. Not sure for how long....

@vazexqi
Copy link
Contributor

vazexqi commented Aug 24, 2018

@ad1969 - Do you see any NullPointerException as with #581 and #587?

@frigger
Copy link

frigger commented Aug 31, 2018

I also have the same issue. It was working fine two days ago but now It isn't working.
Here is my vscode log for extension. As you can see the Apex Language Server is gone for some reasons.
image
ps. I noticed that the salesforcedx-vscode-apex is not activated in this extensions but I'm sure that I didn't do anything to it.
Here is my process.env
screenshot

VS Code Version: 1.26.1

OS and version: Windows 10

@vazexqi
Copy link
Contributor

vazexqi commented Aug 31, 2018

@frigger - I suspect your case is a different issue. None of the extensions are firing for you, not just the Apex one. I'm saying that because a typical output should also contain "Salesforce CLI" and "Salesforce SLDS Language Server".

This bug is tracking the fact that the Apex extensions started but encountered an error.

Please open a separate issue so that we can ask for more information there. You might also try Troubleshooting Common Issues

@no-response no-response bot closed this as completed Sep 3, 2018
@no-response
Copy link

no-response bot commented Sep 3, 2018

This issue has been automatically closed because there has been no response to our request for more information from the original author. Currently, there is not enough information provided for us to take action. Please reply and reopen this issue if you need additional assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants