maddouri / vscode-cmake-tools-helper

VSCode extension that enables cpptools to automatically know the information parsed by CMake Tools (e.g. include directories and defines)
https://marketplace.visualstudio.com/items?itemName=maddouri.cmake-tools-helper
BSD 3-Clause "New" or "Revised" License
16 stars 6 forks source link

Extension fails to activate #13

Open Gnurfos opened 6 years ago

Gnurfos commented 6 years ago

I'm seeing this error in the console:

[Extension Host] Activating extension 'maddouri.cmake-tools-helper' failed: Cannot read property 'reconfigured' of undefined.

It looks different from #12 despite the similar error: my symptoms are all command failing with for example:

command 'cmake.update_cpptools' not found

It could come from some changes in the way cmake-tools expose their API, but I found nothing recent and obvious, after a very quick look.

Tested with cmaketools version 1.1.1 and cmaketools helper 0.2.1

metorm commented 5 years ago

I am faced with this problem, too.

vs-code: 1.32.2

Electron: 3.1.6
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Linux x64 4.19.30-1-MANJARO

CMake Tools
id: vector-of-bool.cmake-tools
version : 1.1.3

CMake Tools Helper
id: maddouri.cmake-tools-helper
version: 0.2.1

When I execute the CMake: Update cpptools command, a pop-up message says command 'cmake.update_cpptools' not found

7kbird commented 5 years ago

same here.

cmake-tools-helper never generate any c_cpp_properties.json, so I try reinstall this extension.

When try to install cmake-tools-helper, the developer console said:

workbench.main.js:238 [Extension Host] Activating extension maddouri.cmake-tools-helper failed: Cannot read property 'reconfigured' of undefined

[Extension Host] Here is the error stack:  TypeError: Cannot read property 'reconfigured' of undefined
    at new CMakeToolsHelper (/Users/kevin/.vscode/extensions/maddouri.cmake-tools-helper-0.2.1/out/src/state.js:13:33)
    at activate (/Users/kevin/.vscode/extensions/maddouri.cmake-tools-helper-0.2.1/out/src/extension.js:10:28)
    at Function._callActivateOptional (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:738:936)
    at Function._callActivate (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:738:625)
    at define._doActivateExtension.Promise.all.then.e (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:737:635)

Env: