question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lastest Update (0.2.31) breaks ForceCode menu

See original GitHub issue

Can no longer access the ForceCode menu. I get the error: command 'ForceCode.showMenu' not found.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
GrayChoicommented, Mar 28, 2017

@celador I followed your instructions. But didn’t help me.

I open the developer console, some errors occurred. Please check these logs.

[Extension Host] Here is the error stack:  Error: Cannot find module './providers/ContentProvider'
    at Function.Module._resolveFilename (module.js:455:15)
    at Function.Module._load (module.js:403:25)
    at Function.o._load (/opt/visual-studio-code/resources/app/out/vs/workbench/node/extensionHostProcess.js:15:19227)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/one/.vscode/extensions/JohnAaronNelson.ForceCode-0.5.13/out/src/extension.js:4:27)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)

I don’t know why but module name is unmatched in Linux. Because Linux file system is case-sensitive.

[one@one providers]$ pwd
/home/one/.vscode/extensions/JohnAaronNelson.ForceCode-0.5.13/out/src/providers
[one@one providers]$ ls -al
合計 44
drwxr-xr-x 2 one one  4096  3月 28 23:02 .
drwxr-xr-x 9 one one  4096  3月 28 23:02 ..
-rw-r--r-- 1 one one 13284  3月 28 23:02 ApexCompletion.js
-rw-r--r-- 1 one one  3760  3月 28 23:02 ApexCompletionHelper.js
-rw-r--r-- 1 one one  3068  3月 28 23:02 ApexCompletionUtils.js
-rw-r--r-- 1 one one   176  3月 28 23:02 Metadata.js
-rw-r--r-- 1 one one    49  3月 28 23:02 VisualforceCompletion.js
-rw-r--r-- 1 one one  1556  3月 28 23:02 contentProvider.js

And I Modified file name contentProvider.js to ContentProvider.js. This problem is gone.

0reactions
trentchilderscommented, Aug 30, 2018

I’m still having this issue. So far I have downloaded the Java DK8 and set the user parameters as "salesforcedx-vscode-apex.java.home" : "/Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home". Then I uninstalled ForceCode and wiped the extensions directory of all apex and visualforce folders. Then reinstalled each of those individually then reinstalled ForceCode.

I still get the error. What did I miss here?

edit: Just to be clear. Before I added the "salesforcedx-vscode-apex.java.home", Cmd-Opt-C didn’t do anything. After I added the path to the user profile Cmd-Opt-C, I started getting the error there too.

UPDATE: Wow. So now it works. I don’t really know what I did to make it work. I previously didn’t have the Salesforce CLI installed as I am on a new machine that I am setting up. I installed it and was still getting the error. Then came back later and it seems to be working fine. I’ll leave this comment here in case someone else sees it and doesn’t have the CLI installed. It’s worth a try if you are having this issue to install it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ForceCode - Visual Studio Marketplace
Breaks down coverage by classes with sufficient/insufficient coverage. Shows which classes/methods are covering your class. Click on each to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found