What does the error in the title mean and how do I fix it?
I am following a tutorial online to install some plugins for Neovim, but I just noticed this error.
That directory does exist, and when I open the init.vim file there is stuff in there that I didn't add.
This is what is in the init.vim file when I open it with nvim:
" ==============================================================================
" Netrw Directory Listing (netrw v165)
" /home/myname/.config/nvim/init.vim
" Sorted by name
" Sort sequence: [\/]$,\<core\%(\.\d\+\)\=\>,\.h$,\.c$,\.cpp$,\~\=\*$,*,\.o$,\
" Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by x:special
" ==============================================================================
Related
I am trying to setup Vundle on Windows 10 (Version 20H2 OS Build 19042.630) and, after following these steps exactly (install git and curl from chocolatey, install gVim from here, clone Vundle) I am unable to use PluginInstall and instead get the following error: Not an editor command: PluginInstall. I can run vim and can confirm that a _vimrc exists at C:\Users\myusername\_vimrc and the `_vimrc currently contains (straight from the docs):
filetype off
set shellslash
set rtp+=~/vimfiles/bundle/Vundle.vim
call vundle#begin('~/vimfiles/bundle')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
I'm trying to develop an Word-AddIn where I can upload a file, or where I could make changes to the file itself. I can do that with any File on the Local NTFS Windows Filesystem. But when a File is located to any "OneDrive"-Folder it won't work, as the file-Document path starts with:
https://companyname-my.sharepoint.com/personal/name_whatever/Documents
according to the return values of:
var doc = Globals.ThisAddIn.Application.ActiveDocument;
MessageBox.Show("Document Name : " + doc.Name);
MessageBox.Show("Document Full Name : " + doc.FullName);
MessageBox.Show("Document Path : " + doc.Path);
rather than expected to be:
C:\Users\myname\OneDrive-My_Company_Name\Documents
So basically the local folder is not callable. So does anybody has already faced this kind of issue?
You can use the Save or SaveAs methods of the Document to save the document on the local folder.
(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.
While trying to install a package I noticed that my Emacs setup seems to have a 'Recursive load' problem. I uninstalled that package but the problem remains. I'm not sure when it exactly started and I don't understand how this can happen at all. From what I understand the recursive load is between packages that come with emacs:
cl--generic-get-dispatcher: Recursive load: "/usr/local/Cellar/emacs/HEAD/share/emacs/25.0.50/lisp/emacs-lisp/bytecomp.elc",
"/Users/spaceinvader/.emacs.d/elpa/seq-2.20/seq-25.elc",
" /Users/spaceinvader/.emacs.d/elpa/seq-2.20/seq.elc",
" /usr/local/Cellar/emacs/HEAD/share/emacs/25.0.50/lisp/emacs-lisp/cl-extra.elc",
" /usr/local/Cellar/emacs/HEAD/share/emacs/25.0.50/lisp/emacs-lisp/bytecomp.elc",
" /Users/spaceinvader/.emacs.d/elpa/seq-2.20/seq-25.elc",
" /Users/spaceinvader/.emacs.d/elpa/seq-2.20/seq.elc",
" /usr/local/Cellar/emacs/HEAD/share/emacs/25.0.50/lisp/emacs-lisp/cl-extra.elc",
" /usr/local/Cellar/emacs/HEAD/share/emacs/25.0.50/lisp/emacs-lisp/bytecomp.elc",
" /Users/spaceinvader/.emacs.d/elpa/seq-2.20/seq-25.elc",
" /Users/spaceinvader/.emacs.d/elpa/seq-2.20/seq.elc",
" /usr/local/Cellar/emacs/HEAD/share/emacs/25.0.50/lisp/emacs-lisp/cl-extra.elc",
" /usr/local/Cellar/emacs/HEAD/share/emacs/25.0.50/lisp/emacs-lisp/bytecomp.elc",
" /Users/spaceinvader/.emacs.d/elpa/seq-2.20/seq-25.elc",
" /Users/spaceinvader/.emacs.d/elpa/seq-2.20/seq.elc",
" /usr/local/Cellar/emacs/HEAD/share/emacs/25.0.50/lisp/emacs-lisp/cl-extra.elc",
" /usr/local/Cellar/emacs/HEAD/share/emacs/25.0.50/lisp/emacs-lisp/bytecomp.elc",
" /usr/local/Cellar/emacs/HEAD/share/emacs/25.0.50/lisp/emacs-lisp/eieio.elc",
" /usr/local/Cellar/emacs/HEAD/share/emacs/25.0.50/lisp/gnus/auth-source.elc",
" /usr/local/Cellar/emacs/HEAD/share/emacs/25.0.50/lisp/url/url-parse.elc",
" /usr/local/Cellar/emacs/HEAD/share/emacs/25.0.50/lisp/url/url-util.elc",
" /usr/local/Cellar/emacs/HEAD/share/emacs/25.0.50/lisp/url/url-cookie.elc",
"/usr/local/Cellar/emacs/HEAD/share/emacs/25.0.50/lisp/url/url.elc"
Not sure how to solve this...
Doing a fresh installation of the suggested 25.3 version fixed my problems, thanks phils.
I install (by Git) Moodle on hosted site and succesfully run php /path/to/moodle/admin/cli/install.php (which created dataroot directory as /home/my_user/moodledata and set it in config.php)
But when I try to open web, error appears:
$CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.
Rights for folder are 777.
Any help?
Edit: -------------------------------------------------------------
$d = dir(getcwd());
echo "Handle: " . $d->handle . "<br>";
echo "Path: " . $d->path . "<br>";
$d->close();
I put these lines above in config.php and discover, that real path is not /home/my_user/moodledata but /nfsmnt/hosting1_1/c/6/c69f848b-e898-4268-be47-11de7fa8e5ac/my_user/moodledata/
So I do a little hack to dataroot definition:
$CFG->dataroot = getcwd().'/../../moodledata';
And home page is open (but no css). Unfortunatelly any other page (like login) do not work.
I fixed it by regexp replacing:
$CFG->dataroot = preg_replace("/(.*)(\/web\/moodle\/.*)/", "$1/moodledata", getcwd());