Open SanSiren opened 5 years ago
Hi Britta, I had the same problem, you have to create a workspace, save it, and try again to run "Cassandra Workbench: Generate configuration" command. Good luck. David
I tried to create a workspace as well (even though I did in the past), but get command 'cassandraWorkbench.generateConfiguration' not found. Perhaps something changed in vs code version 1.32.3?
I Even tried uninstalling and reinstalling the extension.
I'm facing the same issue. I have an active workbench but get the same error. Has anyone solved this?
I've just been able to generate a new configuration by right clicking in the workbench and selecting generate new configuration. From there you can edit the cluster info and attempt to connect.
Same here. None of the extension's commands can be found.
From the developer console:
notificationsAlerts.ts:38 Error: command 'cassandraWorkbench.editConfiguration' not found
at Proxy._tryExecuteCommand (commandService.ts:77)
at r.then.i (commandService.ts:70)
at process._tickCallback (internal/process/next_tick.js:68)
onDidNotificationChange @ notificationsAlerts.ts:38
_register.model.onDidNotificationChange.e @ notificationsAlerts.ts:26
fire @ event.ts:558
addNotification @ notifications.ts:156
error @ notificationService.ts:51
telemetryActionsListener.value.toolBar.actionRunner.onDidRun.e @ compositePart.ts:257
fire @ event.ts:558
(anonymous) @ actions.ts:201
a @ errors.ts:184
_tickCallback @ internal/process/next_tick.js:68
Promise.then (async)
l @ errors.ts:184
(anonymous) @ errors.ts:184
n @ errors.ts:184
run @ actions.ts:190
onClick @ menuEntryActionViewItem.ts:267
options.options.isMenu.i.setImmediate @ actionbar.ts:138
runCallback @ timers.js:694
tryOnImmediate @ timers.js:665
processImmediate @ timers.js:647
Just installed on Windows and has same errors. I guess this isn't compatible with newer versions of VS Code.
abstractExtensionService.ts:390 Activating extension 'kdcro101.vscode-cassandra' failed: Cannot read property '0' of undefined.
_logMessageInConsole @ abstractExtensionService.ts:390
console.ts:134 [Extension Host] Activating extension kdcro101.vscode-cassandra
failed: Cannot read property '0' of undefined
t.log @ console.ts:134
console.ts:134 [Extension Host] Here is the error stack: TypeError: Cannot read property '0' of undefined
at module.exports.e.Workspace.getConfigurationRoot (c:\Users\xxx.vscode\extensions\kdcro101.vscode-cassandra-0.3.6\packed\index.js:285:544123)
at new module.exports.e.ConfigurationManager (c:\Users\xxx.vscode\extensions\kdcro101.vscode-cassandra-0.3.6\packed\index.js:461:1025)
at module.exports.e.activate (c:\Users\xxx.vscode\extensions\kdcro101.vscode-cassandra-0.3.6\packed\index.js:468:4605)
at Function._callActivateOptional (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:748:518)
at Function._callActivate (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:748:207)
at define._doActivateExtension.Promise.all.then.e (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:747:245)
After updating to a newer version of VSCode this extension seems to not be working at all.
command 'cassandraWorkbench.refresh' not found
command 'cassandraWorkbench.revealPanel' not found
command 'cassandraWorkbench.editConfiguration' not found
Note that:
curl
9042 and reach cassandra from terminal.Same issue:
command 'cassandraWorkbench.editConfiguration' not found
Same issue:
After installation Cassandra Workbench I had the same problem. I needed to do:
Open workspace (workspace path is needed for configuration to generate), activate extension by running command from palette Cassandra Workbench: Generate configuration. This will generate .cassandraWorkbench.jsonc configuration file.
It is resolve for my issues
I also had the same issue The problem: There was no Cassandra Workbench configuration file so to generate the file 1) Open the workspace (any will do) 2) Go to command Palette(Ctrl+Shift+P) and then Generate the Cassandra Workbench [You will see a .cassandraWorkbench folder and a .cassandraWorkbench.jsonc file being created] 3) Then go to the extension, open the CQL and run your queries.
Hi,
Cassandra Workbench needs a folder in which the .cassandraWorkbench.jsonc file can be created and placed. There are two approaches to resolve the issue:
a.open a code folder / any working folder where the .cassandraWorkbench.jsonc file can be placed (note - this file is created in the main folder itself)
[ // AllowAllAuthenticator { "name": "Cluster AllowAllAuthenticator", "contactPoints": ["127.0.0.1"] } // , //PasswordAuthenticator // { // "name": "Cluster PasswordAuthenticator", // "contactPoints": ["127.0.0.1"], // "authProvider": { // "class": "PasswordAuthenticator", // "username": "yourUsername", // "password": "yourPassword" // } // } ]
PS: I've commented authentication based connection properties as it's not applicable in my case
When you place this file in any folder and open it in vscode, you can see that the Cassandra workbench loads automatically and lists the keyspaces
Hey. I use Visual Studio Code on Mac and installed your extension according to your documentation. Unfortunately it is not usable at all, since no command can be found (see screenshot). I tried all the normal things, restarting VSC, reinstalling, ... Is there anything I am missing? Is the extension usable on Mac at all? Best, Britta