Databricks Extension Fails for Visual Studio Code - visual-studio-code

I try to install extension below on VS Code, but nothing happens when I click "Configure Databricks"
Extension:
https://marketplace.visualstudio.com/items?itemName=databricks.databricks&ssr=false#qna
Details from Developer: Toggle Developer Tools
ERR Command failed:
c:\Users\user.name.vscode\extensions\databricks.databricks-0.2.3-win32-x64\bin\bricks
auth profiles --skip-validate Error: cannot parse config file: open
C:\Test" /M: The filename, directory name, or volume label syntax is
incorrect. : Error: Command failed:
c:\Users\user.name.vscode\extensions\databricks.databricks-0.2.3-win32-x64\bin\bricks
auth profiles --skip-validate Error: cannot parse config file: open
C:\Test" /M: The filename, directory name, or volume label syntax is
incorrect.
at ChildProcess.exithandler (node:child_process:408:12) at
ChildProcess.emit (node:events:526:28) at maybeClose
(node:internal/child_process:1092:16) at Socket.
(node:internal/child_process:451:11) at Socket.emit
(node:events:526:28) at Pipe. (node:net:687:12)
How can I fix it? Does anyone else had any issues?

It seems like the extension can't read your Databricks profile (~/.databrickscfg). Check if the file exists and if it contains potentially problematic contents.
I've create a ticket to track this issue https://github.com/databricks/databricks-vscode/issues/462

Related

Can't access containers in vscode showing message "shell server terminated code 255" after doing nothing

I normaly access remote containers of host via remote explorer in vscode installed in my local computer.
After I generated ssh-key "other host" that I've used, VScode started to show error message below.. and now I can't open folders both of "this host" and "other host".
Errormesage when connect open folder in container
Shell server terminated (code: 255, signal: null) XSL ���� �Ǵ� ���� �̸��� �߸��Ǿ����ϴ�. node:child_process:925 throw err; ^ Error: Command failed: wmic process where (commandline like "%ssh-askpass.bat%") get processid,parentprocessid /format:"%WINDIR%\System32\wbem\en-us\csv" XSL ���� �Ǵ� ���� �̸��� �߸��Ǿ����ϴ�. at checkExecSyncError (node:child_process:848:11) at Object.execSync (node:child_process:922:15) at Object. (node:electron/js2c/asar_bundle:5:12704) at Object. (c:\Users\USER.vscode\extensions\ms-vscode-remote.remote-containers-0.266.1\dist\common\sshAskpass.js:5:808) at Module._compile (node:internal/modules/cjs/loader:1165:14) at Module._extensions..js (node:internal/modules/cjs/loader:1220:10) at Module.load (node:internal/modules/cjs/loader:1035:32) at Module._load (node:internal/modules/cjs/loader:876:12) at c._load (node:electron/js2c/asar_bundle:5:13343) at Function.executeUserE...
I've (1) removed ssh-key from host and (2) re-installed vscode from my local computer, but that is not the solution. Thankfully, docker attach command is still working, but which means I have to use vi editor like SW development several decades ago!
How can I solve this problem?
Thank you- future responder for saving my life
It Worked for me by updating the Dev Container extension from v0.266.1 to v0.268.0, pre-release version.
In my case, it was solved by replacing en-us with ko-KR in the sshAskpass.js file.
There was no csv file in %WINDIR%\System32\wbem\en-us and there was a csv file in %WINDIR%\System32\wbem\ko-KR
It Worked for me by copying the content of fr-FR file of WINDIR C:\Windows\System32\wbem\ in the en-US file

Unable to use pgmail

Does anyone use pgmail?
In order to use it, I need to first install postgresql-tcl. However, even after installing it on postgresql-12 - while running below command:
CREATE EXTENSION pltcl;
I'm getting below error:
ERROR: could not open extension control file "/usr/pgsql-12/share/extension/pltcl.control": No
such file or directory
What I have tried:
I followed https://tunnelix.com/messing-around-pltcl-on-postgresql/ and instead of CREATE EXTENSION , I used CREATE LANGUAGE. However, I again I got below error:
shiwangini1=# CREATE language pltcl;
ERROR: could not access file "$libdir/pltcl": No such file or directory
What else can I do to make it working?
Thanks in advance!

"liveSass.command.watchMySass not found" and "Extension host terminated unexpectedly” in vs code on windows 10

Problem
"liveSass.command.watchMySass not found" and "Extension host terminated unexpectedly” in vs code on windows 10 while using live-sass-compiler extension.
Failed attempts:
manually deleted the extension from the .vscode folder and reinstalled it as per #219
[Antivirus/defender] tried excluding the extensionHostProcess.js file at C:\Users\ (user file name e.g- hp...etc) \AppData\Local\Programs\Microsoft VSCode\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js as per #94858
Disabled all extensions and tried running as per #94807
Tried restoring quarantined files from antivirus/defender
Tried all the aforementioned steps again after reinstalling vs code.
downloaded vscode - January 2020 (version 1.42) build as per https://stackoverflow.com/a/61133333/11045279
Error log
c:\Users\ADITYA\.vscode\extensions\ritwickdey.live-sass-3.0.0\node_modules\sasslib\sass.sync.js:61
var Module=typeof Module!=="undefined"?Module:{};var moduleOverrides={};var key;
for(key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}
Module["arguments"]=[];
Module["thisProgram"]="./this.program";
Module["quit"]=(function(status,toThrow){throw toThrow});Module["preRun"]=[];Module["postRun"]=[];
var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;
var ENVIRONMENT_IS_SHELL=false;
if(Module["ENVIRONMENT"]){if(Module["ENVIRONMENT"]==="WEB"){ENVIRONMENT_IS_WEB=true}
else if(Module["ENVIRONMENT"]==="WORKER"){ENVIRONMENT_IS_WORKER=true}
else if(Module["ENVIRONMENT"]==="NODE"){ENVIRONMENT_IS_NODE=true}
else if(Module["ENVIRONMENT"]==="SHELL"){ENVIRONMENT_IS_SHELL=true}
else{throw new Error("Module['ENVIRONMENT'] value is not valid. must be one
of: WEB|WORKER|NODE|SHELL.")}}else{ENVIRONMENT_IS_WEB=typeof
window==="object";ENVIRONMENT_IS_WORKER=typeof importSc
Error: Import "node_modules/bootstrap/scss/bootstrap" could not be resolved.
at File.load (D:\Projects\vscode-ext-color-highlight\node_modules\file-importer\index.js:130:1)
at D:\Projects\vscode-ext-color-highlight\node_modules\file-importer\index.js:136:1
at FSReqCallback.oncomplete (fs.js:165:21)
abstractExtensionService.ts:155 Extension host terminated unexpectedly. Code: 7 Signal: null
Thanks.
Here's the fix so you don't have the nightmare I've been having.
Uninstall live sass and close VScode.
For Windows, type the following into file explorer:
%USERPROFILE%.vscode\extensions
Then delete the folder for live sass. Should be called something like:
ritwickdey.live-sass-3.0.0
Open VScode, reinstall live sass.
Done
The problem that's not about installation problem, that's need to open VS Code editor and then create new file with SCSS format. For example, style.scss, and please wait for second and then you see watch sass in below of vscode.

info: Trying to load file 'OEMFMFileList.xml' as a FM file list ... fatal error : Error: Missing package - Creating basic IoT Core Image Powershell

I am just trying to create a basic IoT core image by following this guide.
But I am always getting the below errors, whenever I run buildimage <product name> Test after building the BSP (Import-IoTBSP RPi2 C:\Downloads\RPi_BSP.zip (or) importbsp RPi2 C:\Downloads\RPi_BSP.zip
buildpkg RPi2)
info: Trying to load file 'C:\OEEWorkspace\Build\arm\InputFMs\OEMFMFileList.xml' as a FM file list ... fatal error : Error: Missing package: C:\OEEWorkspace\Build\arm\pkgs\test.OEM.Sample.cab
info: Trying to load file 'C:\OEEWorkspace\Build\arm\InputFMs\RPi2FMFileList.xml' as a FM file list ... fatal error : Error: Missing package:
I also followed this issue in GitHub, but couldn't find the exact issue. Have you ever faced any error something similar?
Huh!. It was a silly mistake. I didn't run the New-IoTCabPackage All (or) buildpkg all after building the BSP (Import-IoTBSP RPi2 C:\Downloads\RPi_BSP.zip (or) importbsp RPi2 C:\Downloads\RPi_BSP.zip
buildpkg RPi2). Hence the cab files were not pushed into the Build\arm\pkgs folder.
After running the buildpkg all I am able to see all the required cab files in the pkgs folder, thus no error. You must do the commands in the below order.
PS C:\OEE>importbsp RPi2 "C:\Users\SibeeshVenu\Downloads\RPi_BSP.zip"
PS C:\OEE>buildpkg all
PS C:\OEE>newproduct OEEIoTCore RPi2
PS C:\OEE>buildimage OEEIoTCore Test
Once that is done, you should be able to see an output as below.

VSTS-Agent cannot chmod

(target machines : RedHat 7)
I use the "Copy File" task, which works fine when using the "Overwrite" option
but when not using that option , I receive a EPERM permission denied when the vstsagent tries to chmod some files already there
there is an obvious security policy that forbids anything else but root (and sudo commands) to do chmod's on the file system
how can we adress this issue without compromising our system security ?
thanks
2018-06-19T13:03:59.9255736Z ##[section]Starting: Copy Files to: /data/apache/var/www/html/******
2018-06-19T13:03:59.9380638Z ==============================================================================
2018-06-19T13:03:59.9408913Z Task : Copy Files
2018-06-19T13:03:59.9437816Z Description : Copy files from source folder to target folder using match patterns (The match patterns will only match file paths, not folder paths)
2018-06-19T13:03:59.9466225Z Version : 2.117.0
2018-06-19T13:03:59.9494054Z Author : Microsoft Corporation
2018-06-19T13:03:59.9522338Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=708389)
2018-06-19T13:03:59.9550616Z ==============================================================================
2018-06-19T13:04:00.5528521Z found 7 files
2018-06-19T13:04:00.5585656Z Copying /home/saehqvsts/vstsagent2/_work/r3/a/artifact/drop/delete_files.sh to /data/apache/var/www/html/******/delete_files.sh
2018-06-19T13:04:00.5743041Z Copying /home/saehqvsts/vstsagent2/_work/r3/a/artifact/drop/images/home/blog-image01.png to /data/apache/var/www/html/******/images/home/blog-image01.png
2018-06-19T13:04:00.5773633Z Copying /home/saehqvsts/vstsagent2/_work/r3/a/artifact/drop/images/home/blog-image02.png to /data/apache/var/www/html/******/images/home/blog-image02.png
2018-06-19T13:04:00.5803794Z Copying /home/saehqvsts/vstsagent2/_work/r3/a/artifact/drop/images/home/blog-image03.png to /data/apache/var/www/html/******/images/home/blog-image03.png
2018-06-19T13:04:00.5833235Z Copying /home/saehqvsts/vstsagent2/_work/r3/a/artifact/drop/index.php to /data/apache/var/www/html/******/index.php
2018-06-19T13:04:00.5861627Z shell.js: internal error
2018-06-19T13:04:00.5890403Z Error: EPERM: operation not permitted, chmod '/data/apache/var/www/html/******/index.php'
2018-06-19T13:04:00.5918532Z at Error (native)
2018-06-19T13:04:00.5946236Z at Object.fs.chmodSync (fs.js:1168:18)
2018-06-19T13:04:00.5975560Z at copyFileSync (/home/saehqvsts/vstsagent2/_work/_tasks/CopyFiles_5bfb729a-a7c8-4a78-a7c3-8d717bb7c13c/2.117.0/node_modules/shelljs/src/cp.js:41:6)
2018-06-19T13:04:00.6005484Z at /home/saehqvsts/vstsagent2/_work/_tasks/CopyFiles_5bfb729a-a7c8-4a78-a7c3-8d717bb7c13c/2.117.0/node_modules/shelljs/src/cp.js:198:5
2018-06-19T13:04:00.6034026Z at Array.forEach (native)
2018-06-19T13:04:00.6063516Z at Object._cp (/home/saehqvsts/vstsagent2/_work/_tasks/CopyFiles_5bfb729a-a7c8-4a78-a7c3-8d717bb7c13c/2.117.0/node_modules/shelljs/src/cp.js:157:11)
2018-06-19T13:04:00.6094451Z at Object.cp (/home/saehqvsts/vstsagent2/_work/_tasks/CopyFiles_5bfb729a-a7c8-4a78-a7c3-8d717bb7c13c/2.117.0/node_modules/shelljs/src/common.js:186:23)
2018-06-19T13:04:00.6124783Z at Object.cp (/home/saehqvsts/vstsagent2/_work/_tasks/CopyFiles_5bfb729a-a7c8-4a78-a7c3-8d717bb7c13c/2.117.0/node_modules/vsts-task-lib/task.js:827:15)
2018-06-19T13:04:00.6154870Z at matchedFiles.forEach.err (/home/saehqvsts/vstsagent2/_work/_tasks/CopyFiles_5bfb729a-a7c8-4a78-a7c3-8d717bb7c13c/2.117.0/copyfiles.js:119:20)
2018-06-19T13:04:00.6183521Z at Array.forEach (native)
2018-06-19T13:04:00.6774571Z ##[error]Exit code 1 returned from process: file name '/home/saehqvsts/vstsagent2/externals/node/bin/node', arguments '"/home/saehqvsts/vstsagent2/_work/_tasks/CopyFiles_5bfb729a-a7c8-4a78-a7c3-8d717bb7c13c/2.117.0/copyfiles.js"'.
2018-06-19T13:04:00.6890413Z ##[section]Finishing: Copy Files to: /data/apache/var/www/html/******
That's because the files are existing there, you just need to clean up the existing files in that path or using the "Overwrite" option to overwrite them.