Solvedultisnips UltiSnips crashes macvim with new update

I just updated to macvim 8.0.1175, and after launching I found that vim would crash after every time I pushed any buttons in insert mode.

The error I got was this in the gui version of macvim:

Fatal Python error: Py_Initialize: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'
Vim: Caught deadly signal ABRT
Vim: Finished.

And this from the terminal version of macvim:

Vim: Caught deadly signal ABRT
Vim: Finished.
Abort trap: 6

Wondering what's causing this, but finding out that it was ultisnips took me long enough. Maybe I'll dig into the debug it a bit later but for now I just wanted to bring attention to it. Thanks!

13 Answers

โœ”๏ธAccepted Answer

Hi all, I got it working again for me this weekend, it looks like it's only broken in Python 3 so all I did was add this to my .vimrc:

let g:UltiSnipsUsePythonVersion=2

Note that you'll need to have vim compiled with +python (distinct from +python3) which you can check with vim --version.

I'll also note that I've continued to update macvim (currently on version 8.0.1257), but every time I checked Ultisnips was still broken, so I think the python version is really the only thing messing things up here.

Since this doesn't actually resolve the issue and is only a hotfix, I'll leave this ticket open, but I hope this helps you guys get this working again for now!

Related Issues:

32
ultisnips Error detected while processing function UltiSnips#TrackChange[1]..provider#python3#Call: line 18:
@hoetmaaiers I had this exact issue I am getting the following error while editing markdown files: E...
5
ultisnips UltiSnips crashes macvim with new update
Hi all I got it working again for me this weekend I just updated to macvim 8.0.1175 ...
179
vue i18n Uncaught TypeError: Cannot read property 'config' of undefined
Hi @gmarineau you have to do .use before create i18n instance: Hi I have just copy the basic example...
164
vue i18n How can i use vue-i18n in '.js' file, I have use it in Vue template and it works.
I found a 'elegant' solution first you need a file lang.js like this then you need to import it insi...
110
vue i18n Access to vue-i18n assets is not available within a Vue component method when called via a Promise
I having the same issue use this.$root.$t() in promise works for me vue & vue-i18n version vue v2.3....
62
vue i18n How to stub vue-i18n within vue-test-utils
Hi @Mrkisha I work on test utils a lot and use i18n in my apps You can just do and you should be fin...
62
friendly_id specifying Rails version in migration files
I ran into the same problem as well.. All you need to do is go into your migration file that was gen...
59
vuex persistedstate vuex-persistedstate with Nuxtjs
EDIT: this solution comes with a caveat - see comment below (This package now uses deepmerge for mer...
58
next optimized images Plugin crashing docker build with node-alpine image
I've only used the node:8.11 docker image with this plugin before but I tried to run my project on n...
52
vue i18n Set locale dynamically at runtime
There should be some easy way to change the global language/locale at run-time / dynamically and it ...
50
vue i18n Any way to use this with TypeScript and not have "as string" all over the codebase?
You could also use $tc instead of $t whenever you just need the translation without further ado as t...
49
typescript eslint Improve documentation for typescript/no-unused-vars
Alright @bradzacher I understand There are several use cases typescript/no-unused-vars does not yet ...
47
filepond how to populate initial files from remote URLs
To anyone landing here with the similar problem this is how its done @rikschennink Thank you for gui...
42
fork ts checker webpack plugin Type checking for node_modules
For me the solution was to add skipLibCheck: true to tsconfig.json I'm seeing a whole bunch of error...
42
typescript eslint Support for mixed JS and TS codebases - do not lint JS files
For anyone who wants a working .eslintrc Here is my current config I'm using glob patterns overrides...
30
nvim lspconfig tsserver doesn't startup
omfg I just had to install typescript globally npm install -g typescript Not sure why the package do...
29
vuex persistedstate Delete persisted state
Hello everybody I think its better to use the reducer method to remove all the vuex state. ...
28
gitalk GitHub app API query parameter deprecation
GitHub is deprecating authentication to the GitHub API using query parameters GitHub is going to be ...
24
flutter_inappwebview [InAppWebview]: window.flutter_inappwebview.callHandler is not a function
I solved this issue by adding these code: hope this help ๐Ÿ˜ Environment Flutter version: 1.10.15 Plu...
23
coredns Custom DNS Entries For Kubernetes using rewrite not working always
working !!! Thank you so much. Final coredns configmap: Issue: We are trying to implement secure com...
19
vue i18n vue 2 / Cannot translate the value of keypath
This was my bad I had Instead of vue & vue-i18n version vue 2.0.0.rc3 vue-i18n 4.3.1 vue-loader 9.4....
18
obs virtual cam Zoom windows application fails to activate camera, while it works with Skype on the same machine
I made a shitty patch that replaces the problematic DllSafeCheck.dll file installed by the newest ve...
14
vuex persistedstate How to use with ssr?
This was one of the first results on google so to add to the answer of @lukaVarga You don't have to ...
14
typescript eslint TypeScript 3.8 Syntax Support
@vkrol the importsNotUsedAsValues TS option only will tell you when you are not using import type wh...
14
typescript eslint New set of rules: no-unsafe-*
Will this name be confused with the tsconfig.json setting noImplicitAny? The spirit is similar but t...
13
vue i18n Vue.js Avoriaz unit test produces translation warnings when vue-i18n is used
@ndabAP @kazupon I'm not sure if this is avoriaz specific or not? I got this minimal example passing...
13
typescript eslint [no-shadow] Enums can false-positive ESLint's no-shadow rule
I can understand that shadowing happens when you use something from the outer scope as the value but...
11
typescript eslint Poor performance on some projects
@karthikiyengar (and really anyone new who is going to comment in this thread) please leave some mor...
8
flutter_inappwebview useShouldOverrideUrlLoading is broken for InAppWebView
I solved the problem with this code. On ios: the provided shouldOverrideUrlLoading callback is never...
8
filepond Uploading File manually
@GeSeRnnov You have a reference to FilePond you set it here: this.pond will point to the FilePond in...
8
vuex persistedstate It doesn't work in store with different modules
Hi My setup is basically the same and I don't have the issue Only difference is how I include the mo...
7
nvim lspconfig [gopls] run editor.action.organizeImports on save.
This is correct I can reproduce it If you look at it I'm struggling to figure out how to make an aut...
5
jetpack Jetpack JSON API access crashes PHP-FPM running PHP 7.1
The Jetpack people noticed me about the freshly baked 5.3 update today: https://jetpack.com/2017/09/...
5
typescript eslint Parsing error: Invalid value for lib provided: es2021
@alison777 Change the 12 to a 2020 in your ecmaVersion. I have tried restarting my IDE and the issue...
4
resharper unity Rider Inop in 2019.2b6?
Open Packages\manifest.json and change com.unity.ide.rider: 1.0.8 into com.unity.ide.rider: 1.0.2 ...
4
offline plugin SWs & Webpack
(text may have a lot of type because I wasn't re-reading/reviewing it) I actually been thinking abou...
4
kirki Kirki_Fonts_Google::$force_load_all_variants doesn't work anymore
@aristath - I'm afraid that loading all variants is actually not working after all .. At least when ...
3
BetterDiscordApp A better installer for linux?
https://aur.archlinux.org/cgit/aur.git/tree/betterdiscordctl?h=betterdiscord-rauenzi-git is a script...
3
offline plugin How to exclude a specific path and all the paths underneath from being cached?
/admin and all the paths underneath are not part of my app so I want to avoid the SW from caching th...
3
coredns Core DNS is not resolving external ip
Got into this issue from the ingress-nginx controller perspective - version 0.18.0 or later outputs ...
3
next optimized images scss styles background image parse error
Hi @xeniajensen This is a slightly different issue and has to do with the dynamic require When using...
11
polacode Polacode stop working
This is not an answer to why Polacode is not working but you may want to try out another extension u...
5
Lepton Login failure on Win10
This might be fixed by deleting C:\Users\<username>\AppData\Roaming\Lepton\. The more we know about ...
227
neovim build fails with OSX Mojave
Starting with Mojave the headers are no longer installed under /usr/include/ by default -- look unde...
167
vim Error message printed first time python3 (version 3.7.0) dynamic library is imported
Regardless of installed plugins silently execute python3 once on the top of your vimrc: ...
143
fzf.vim Floating Windows Support VIM Popup
Popup support added in junegunn/fzf@7ceb58b Works for me fine both on Vim and Neovim ๐Ÿ˜„ ...
132
powerline Update MacOS to Mojave, then vim get error with powerline
SOLUTION!! Figure out your current vim version Mine was not compiled with homebrew but was the defau...
110
YouCompleteMe YouCompleteme unavailable : no module named future
This means that the python-future submodule was not checked out i am trying to install the YouComple...
101
Vim Unable to close windows in normal mode with ctrl-w
Please add the following to your settings.json to delegate the keystroke BACK to vscode since Ctrl+w...