some thing wrong with my mvim. when I type mvim or mvim in my terminal it shows up like this - vim

when I type mvim in my terminal it shows up something like this:
/usr/local/bin/mvim: line 31: import: command not found
/usr/local/bin/mvim: line 32: import: command not found
/usr/local/bin/mvim: line 37: flags: command not found
/usr/local/bin/mvim: line 38: -Wall,: command not found
/usr/local/bin/mvim: line 39: -Wextra,: command not found
/usr/local/bin/mvim: line 40: -Werror,: command not found
/usr/local/bin/mvim: line 41: -Wno-long-long,: command not found
/usr/local/bin/mvim: line 42: -Wno-variadic-macros,: command not found
/usr/local/bin/mvim: line 43: -fexceptions,: command not found
/usr/local/bin/mvim: line 44: -DNDEBUG,: command not found
/usr/local/bin/mvim: line 47: -DUSE_CLANG_COMPLETER,: command not found
/usr/local/bin/mvim: line 54: -std=c++11,: command not found
/usr/local/bin/mvim: line 59: -x,: command not found
/usr/local/bin/mvim: line 60: c++,: command not found
/usr/local/bin/mvim: line 61: -isystem,: command not found
/usr/local/bin/mvim: line 62: ../BoostParts,: No such file or directory
/usr/local/bin/mvim: line 63: -isystem,: command not found
/usr/local/bin/mvim: line 66:/System/Library/Frameworks/Python.framework/Headers,: No such file or directory
/usr/local/bin/mvim: line 67: -isystem,: command not found
/usr/local/bin/mvim: line 68: ../llvm/include,: No such file or directory
/usr/local/bin/mvim: line 69: -isystem,: command not found
/usr/local/bin/mvim: line 70: ../llvm/tools/clang/include,: No such file or directory
/usr/local/bin/mvim: line 71: -I,: command not found
/usr/local/bin/mvim: line 72: .,: command not found
/usr/local/bin/mvim: line 73: -I,: command not found
/usr/local/bin/mvim: line 74: ./ClangCompleter,: No such file or directory
/usr/local/bin/mvim: line 75: -isystem,: command not found
/usr/local/bin/mvim: line 76: ./tests/gmock/gtest,: No such file or directory
/usr/local/bin/mvim: line 77: -isystem,: command not found
/usr/local/bin/mvim: line 78: ./tests/gmock/gtest/include,: No such file or directory
/usr/local/bin/mvim: line 79: -isystem,: command not found
/usr/local/bin/mvim: line 80: ./tests/gmock,: No such file or directory
/usr/local/bin/mvim: line 81: -isystem,: command not found
/usr/local/bin/mvim: line 82: ./tests/gmock/include,: No such file or directory
/usr/local/bin/mvim: line 83: ]: command not found
/usr/local/bin/mvim: line 96: compilation_database_folder: command not found
/usr/local/bin/mvim: line 98: syntax error near unexpected token `compilation_database_folder'
/usr/local/bin/mvim: line 98: `if os.path.exists( compilation_database_folder ):'
thanks alot!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Related

Cannot clone box64

I want to install box64 on my raspberry pi 4b but i always get this "not found" message although this repo is available. Anyone knows why? (OS: 64 Bit Raspberry Lite)
pi#raspberry:~ $ git clone https://github.com/ptitSeb/box64.git
Cloning into 'box64'...
/usr/lib/git-core/git-remote-https: 1: 2526fc26bdbcb46c18435ed08: not found
/usr/lib/git-core/git-remote-https: 2: Description-en:: not found
/usr/lib/git-core/git-remote-https: 3: library: not found
/usr/lib/git-core/git-remote-https: 4: be: not found
/usr/lib/git-core/git-remote-https: 6: Package:: not found
/usr/lib/git-core/git-remote-https: 7: Description-md5:: not found
/usr/lib/git-core/git-remote-https: 8: Description-en:: not found
/usr/lib/git-core/git-remote-https: 9: library: not found
/usr/lib/git-core/git-remote-https: 10: be: not found
/usr/lib/git-core/git-remote-https: 12: Package:: not found
/usr/lib/git-core/git-remote-https: 13: Description-md5:: not found
/usr/lib/git-core/git-remote-https: 14: Description-en:: not found
/usr/lib/git-core/git-remote-https: 15: FFmpeg: not found
/usr/lib/git-core/git-remote-https: 16: mux,: not found
/usr/lib/git-core/git-remote-https: 17: machines: not found
/usr/lib/git-core/git-remote-https: 18: cutting: not found
/usr/lib/git-core/git-remote-https: 20: This: not found
/usr/lib/git-core/git-remote-https: 21: contains: not found
/usr/lib/git-core/git-remote-https: 22: and: not found
/usr/lib/git-core/git-remote-https: 24: The: not found
/usr/lib/git-core/git-remote-https: 25: to: not found
/usr/lib/git-core/git-remote-https: 26: codecs: not found
/usr/lib/git-core/git-remote-https: 28: This: not found
/usr/lib/git-core/git-remote-https: 30: Package:: not found
/usr/lib/git-core/git-remote-https: 31: Description-md5:: not found
/usr/lib/git-core/git-remote-https: 32: Syntax error: "(" unexpected

Angular build causing an error.- FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

When I am trying to execute
ng build my.sample.application --prod=false --configuration=dev
I get the error shown below. To overcome this issue I have executed
node --max_old_space_size=15000
command too but the issue still persists.
Error
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 00007FF6F564094F napi_wrap+124431
2: 00007FF6F55E2696 v8::base::CPU::has_sse+34502
3: 00007FF6F55E3356 v8::base::CPU::has_sse+37766
4: 00007FF6F5DE6F4E v8::Isolate::ReportExternalAllocationLimitReached+94
5: 00007FF6F5DCEF91 v8::SharedArrayBuffer::Externalize+833
6: 00007FF6F5C9C85C v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1436
7: 00007FF6F5CA7C00 v8::internal::Heap::ProtectUnprotectedMemoryChunks+1312
8: 00007FF6F5CA4734 v8::internal::Heap::PageFlagsAreConsistent+3204
9: 00007FF6F5C99FC3 v8::internal::Heap::CollectGarbage+1283
10: 00007FF6F5C98794 v8::internal::Heap::AddRetainedMap+2356
11: 00007FF6F5CC0787 v8::internal::Factory::NewRawTwoByteString+87
12: 00007FF6F5AE797C v8::internal::String::SlowFlatten+492
13: 00007FF6F59B110F unibrow::Utf8::EncodeOneByte+687
14: 00007FF6F5DF13A6 v8::String::Utf8Length+22
15: 00007FF6F55FCE0C v8::internal::Malloced::operator delete+14476
16: 00007FF6F5D9B150 v8::internal::Builtins::builtin_handle+325536
17: 00007FF6F5D9A697 v8::internal::Builtins::builtin_handle+322791
18: 00007FF6F5D9A9D8 v8::internal::Builtins::builtin_handle+323624
19: 00007FF6F5D9A7DE v8::internal::Builtins::builtin_handle+323118
20: 00007FF6F6212D6D v8::internal::SetupIsolateDelegate::SetupHeap+568205
21: 00007FF6F61927FC v8::internal::SetupIsolateDelegate::SetupHeap+42524
22: 00007FF6F618BBAC v8::internal::SetupIsolateDelegate::SetupHeap+14796
23: 00007FF6F61927FC v8::internal::SetupIsolateDelegate::SetupHeap+42524
24: 00007FF6F61927FC v8::internal::SetupIsolateDelegate::SetupHeap+42524
25: 00007FF6F61927FC v8::internal::SetupIsolateDelegate::SetupHeap+42524
26: 00007FF6F61927FC v8::internal::SetupIsolateDelegate::SetupHeap+42524
27: 00007FF6F61927FC v8::internal::SetupIsolateDelegate::SetupHeap+42524
28: 00007FF6F618BBAC v8::internal::SetupIsolateDelegate::SetupHeap+14796
29: 00007FF6F61927FC v8::internal::SetupIsolateDelegate::SetupHeap+42524
30: 00007FF6F61927FC v8::internal::SetupIsolateDelegate::SetupHeap+42524
31: 00007FF6F61927FC v8::internal::SetupIsolateDelegate::SetupHeap+42524
32: 00007FF6F61927FC v8::internal::SetupIsolateDelegate::SetupHeap+42524
33: 00007FF6F618BBAC v8::internal::SetupIsolateDelegate::SetupHeap+14796
34: 00007FF6F61927FC v8::internal::SetupIsolateDelegate::SetupHeap+42524
35: 00007FF6F618BBAC v8::internal::SetupIsolateDelegate::SetupHeap+14796
36: 00007FF6F61927FC v8::internal::SetupIsolateDelegate::SetupHeap+42524
37: 00007FF6F61927FC v8::internal::SetupIsolateDelegate::SetupHeap+42524
38: 00007FF6F61927FC v8::internal::SetupIsolateDelegate::SetupHeap+42524
39: 00007FF6F61927FC v8::internal::SetupIsolateDelegate::SetupHeap+42524
40: 00007FF6F61927FC v8::internal::SetupIsolateDelegate::SetupHeap+42524
41: 00007FF6F618BBAC v8::internal::SetupIsolateDelegate::SetupHeap+14796
42: 00007FF6F618FDB1 v8::internal::SetupIsolateDelegate::SetupHeap+31697
43: 00007FF6F618F99C v8::internal::SetupIsolateDelegate::SetupHeap+30652
44: 00007FF6F5CF4F43 v8::internal::Execution::CallWasm+1395
45: 00007FF6F5CF48C6 v8::internal::Execution::Call+182
46: 00007FF6F5DC5B3B v8::Function::Call+603
47: 00007FF6F565CA45 node::CallbackScope::~CallbackScope+1429
48: 00007FF6F5655FE3 v8::internal::interpreter::BytecodeNode::operand_scale+179
49: 00007FF6F55DFBB3 v8::base::CPU::has_sse+23523
50: 00007FF6F55D4FE1 EVP_CIPHER_CTX_buf_noconst+200753
51: 00007FF6F568CFC7 uv_timer_stop+775
52: 00007FF6F5689AAB uv_async_send+331
53: 00007FF6F568924C uv_loop_init+1212
54: 00007FF6F5689414 uv_run+244
55: 00007FF6F55AB892 EVP_CIPHER_CTX_buf_noconst+30946
56: 00007FF6F5609263 node::Start+275
57: 00007FF6F54C666C RC4_options+339308
58: 00007FF6F62C5D58 v8::internal::SetupIsolateDelegate::SetupHeap+1301368
59: 00007FFB974A13D2 BaseThreadInitThunk+34
60: 00007FFB977654F4 RtlUserThreadStart+52
npm ERR! Windows_NT 6.3.9600
Could you guys please help me?
use
"build:prod": "node --max_old_space_size=8000 ./node_modules/#angular/cli/bin/ng build --configuration=prod", in your package.json file
1
this will tell node to exceed default memory allocation by given size in command.
I had the same issue compiling Angular 10, however in my case the issue was an incorrect version of node. My node version was 10.15.1 and once I switched back to node version 13.14.0 the issue was resolved. I use nvm (Node Version Manager) to switch between versions of node so I can still run Angular 7/8 projects and forgot to switch it back.
Hope this helps someone with the same issue!
I came acorss similar issue
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
in Package.json
--max_old_space_size=4096 should not exceed your RAM memory, this is causing this error I guess.
"scripts": {
"ng": "ng",
"start": "node --max_old_space_size=4096 node_modules/#angular/cli/bin/ng serve",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"bundle-report": "node --max_old_space_size=4096 node_modules/#angular/cli/bin/ng build --prod --stats-json && webpack-bundle-analyzer dist/stats.json",
"rtl": "webpack",
},

How do I get Vim to source my .vimrc directly?

I want to remove the color inverting from <i></i> elements. I added the line highlight htmlItalic ctermbg=NONE to my .vimrc, but when I load multiple files, say file1.html and file2.html, the <i></i> won't have inverted colors. However, if I type :bn :bn to go to the next buffer then back, the <i></i> will be inverted again. I must type :source ~/.vimrc to change it back. How do I stop this?
The result of scriptnames is:
1: ~/.vimrc
2: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/syntax.vim
3: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/synload.vim
4: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/syncolor.vim
5: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/filetype.vim
6: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/colors/zellner.vim
7: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/ftoff.vim
8: ~/.vim/bundle/vundle/autoload/vundle.vim
9: ~/.vim/bundle/vundle/autoload/vundle/config.vim
10: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/ftplugin.vim
11: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/indent.vim
12: ~/.vim/plugin/RltvNmbr.vim
13: ~/.vim/autoload/RltvNmbr.vim
14: ~/.vim/plugin/RltvNmbrPlugin.vim
15: ~/.vim/bundle/auto-pairs/plugin/auto-pairs.vim
16: ~/.vim/bundle/nerdcommenter/plugin/NERD_commenter.vim
17: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/getscriptPlugin.vim
18: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/gzip.vim
19: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/logiPat.vim
20: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/manpager.vim
21: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/matchparen.vim
22: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/netrwPlugin.vim
23: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/rrhelper.vim
24: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/spellfile.vim
25: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/tarPlugin.vim
26: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/tohtml.vim
27: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/vimballPlugin.vim
28: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/plugin/zipPlugin.vim
29: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/scripts.vim
30: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/vim.vim
31: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/perl.vim
32: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/pod.vim
33: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/ruby.vim
34: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/python.vim
35: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/ftplugin/vim.vim
36: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/indent/vim.vim
37: /usr/local/Cellar/vim/7.4.1864_1/share/vim/vim74/syntax/nosyntax.vim
I am on the latest version of vim via. Homebrew, and am NOT using gvim.
Thanks!

When I try to use vim character command f with a python file, it says no fold found

I want to use the f command (to go to next occurence of a character) in a python file but somehow this is masked by code folding function.
:set nofoldenable doesn't work.
These options are in my .vimrc:
filetype off
filetype plugin indent on
syntax on
Does someone know which plug-in causes this behavior and how I can toggle between the two functionalities?
Here is the output of :scriptnames
1: ~/.vimrc
2: /usr/local/share/vim/vim74/ftoff.vim
3: /usr/local/share/vim/vim74/filetype.vim
4: /usr/local/share/vim/vim74/ftplugin.vim
5: /usr/local/share/vim/vim74/indent.vim
6: /usr/local/share/vim/vim74/syntax/syntax.vim
7: /usr/local/share/vim/vim74/syntax/synload.vim
8: /usr/local/share/vim/vim74/syntax/syncolor.vim
9: ~/.vim/autoload/pathogen.vim
10: ~/.vim/bundle/SWTC.vim/plugin/SWTC.vim
11: ~/.vim/bundle/SWTC.vim/plugin/rng.vim
12: ~/.vim/bundle/jedi-vim/plugin/jedi.vim
13: ~/.vim/bundle/jedi-vim/autoload/jedi.vim
14: ~/.vim/bundle/syntastic/plugin/syntastic/autoloclist.vim
15: ~/.vim/bundle/syntastic/plugin/syntastic/balloons.vim
16: ~/.vim/bundle/syntastic/plugin/syntastic/checker.vim
17: ~/.vim/bundle/syntastic/plugin/syntastic/cursor.vim
18: ~/.vim/bundle/syntastic/plugin/syntastic/highlighting.vim
19: ~/.vim/bundle/syntastic/plugin/syntastic/loclist.vim
20: ~/.vim/bundle/syntastic/plugin/syntastic/modemap.vim
21: ~/.vim/bundle/syntastic/plugin/syntastic/notifiers.vim
22: ~/.vim/bundle/syntastic/plugin/syntastic/registry.vim
23: ~/.vim/bundle/syntastic/plugin/syntastic/signs.vim
24: ~/.vim/bundle/syntastic/plugin/syntastic.vim
25: ~/.vim/bundle/syntastic/autoload/syntastic/util.vim
26: ~/.vim/bundle/vim-show-whitespace/plugin/showwhite.vim
27: ~/.vim/bundle/vim-surround/plugin/surround.vim
28: /usr/local/share/vim/vim74/plugin/getscriptPlugin.vim
29: /usr/local/share/vim/vim74/plugin/gzip.vim
30: /usr/local/share/vim/vim74/plugin/matchparen.vim
31: /usr/local/share/vim/vim74/plugin/netrwPlugin.vim
Run the map f command to see if there's a mapping for the f key.
If there is such a mapping, you can see which configuration file mapped the key by running verbose map f. It should report something like:
Last set from ~/.vim/some-plugin.vim

vim find out what is changing the directory

I usually start vim from the folder where I have my Makefile and tags file
and edit a file that is two levels down the three.
So if I am at folder x I usually would do vim x1/x2/code.c
The problem is that recently vim changes the folder to the folder where the code is (so if I do pwd it will show x1/x2).
I want it to stay at the top folder.
Is there a way of knowing what is causing the change of folder? I am assuming that is some kind of plugin but have not been able to track it down.
Thanks.
Check if you have autochdir turned on in your vimrc. :set autochdir? to check.
There are any number of plugins that could be doing it, do you happen to remember what you've installed recently?
This is the request for the Benoit answer. (I am not sure if I should post it as an answer or edit the question).
1: .vimrc
2: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/syntax/syntax.vim
3: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/syntax/synload.vim
4: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/syntax/syncolor.vim
5: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/filetype.vim
6: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/ftplugin.vim
7: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/indent.vim
8: .vim/colors/graywh_cs.vim
9: .vim/plugin/AlignMapsPlugin.vim
10: .vim/plugin/AlignPlugin.vim
11: .vim/plugin/ColorSchemes.vim
12: .vim/plugin/NERD_commenter.vim
13: .vim/plugin/NERD_tree.vim
14: .vim/plugin/SyntaxFolds.vim
15: .vim/plugin/a.vim
16: .vim/plugin/ack.vim
17: .vim/plugin/bufexplorer.vim
18: .vim/plugin/buftabs.vim
19: .vim/plugin/c.vim
20: .vim/plugin/cecutil.vim
21: .vim/plugin/changeColorScheme.vim
22: .vim/plugin/conque_term.vim
23: .vim/plugin/crefvim.vim
24: .vim/plugin/cscope_maps.vim
25: .vim/plugin/d/ColorSchemeMenuMaker.vim
26: .vim/plugin/d/ColorSchemes.vim
27: .vim/plugin/d/filebrowser.vim
28: .vim/plugin/d/libList.vim
29: .vim/plugin/echofunc.vim
30: .vim/plugin/filebrowser.vim
31: .vim/plugin/fuf.vim
32: .vim/autoload/fuf/buffer.vim
33: .vim/autoload/fuf.vim
34: .vim/autoload/fuf/file.vim
35: .vim/autoload/fuf/dir.vim
36: .vim/autoload/fuf/bookmark.vim
37: .vim/autoload/fuf/tag.vim
38: .vim/autoload/fuf/taggedfile.vim
39: .vim/autoload/fuf/jumplist.vim
40: .vim/autoload/fuf/changelist.vim
41: .vim/autoload/fuf/quickfix.vim
42: .vim/autoload/fuf/line.vim
43: .vim/autoload/fuf/help.vim
44: .vim/autoload/fuf/givenfile.vim
45: .vim/autoload/fuf/givendir.vim
46: .vim/autoload/fuf/givencmd.vim
47: .vim/autoload/fuf/callbackfile.vim
48: .vim/autoload/fuf/callbackitem.vim
49: .vim/plugin/imaps.vim
50: .vim/plugin/libList.vim
51: .vim/plugin/lightWeightArray.vim
52: .vim/plugin/matchit.vim
53: .vim/plugin/mru.vim
54: .vim/plugin/outlinetoggle.vim
55: .vim/plugin/remoteOpen.vim
56: .vim/plugin/scratch.vim
57: .vim/plugin/snipMate.vim
58: .vim/plugin/srcexpl.vim
59: .vim/plugin/supertab.vim
60: .vim/plugin/swap_parameters.vim
61: .vim/plugin/taglist.vim
62: .vim/plugin/timestamp.vim
63: .vim/plugin/totd.vim
64: .vim/plugin/ttcplug.vim
65: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/plugin/getscriptPlugin.vim
66: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/plugin/gzip.vim
67: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/plugin/matchparen.vim
68: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/plugin/netrwPlugin.vim
69: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/plugin/rrhelper.vim
70: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/plugin/spellfile.vim
71: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/plugin/tarPlugin.vim
72: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/plugin/tohtml.vim
73: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/plugin/vimballPlugin.vim
74: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/plugin/zipPlugin.vim
75: .vim/after/plugin/snipMate.vim
76: .vim/nerdtree_plugin/exec_menuitem.vim
77: .vim/nerdtree_plugin/fs_menu.vim
78: temp/MyInstalls/linux/Packages/vim73/share/vim/vim73/scripts.vim

Resources