Comments (3)
Attached patch fixes two problems I ran into. If you find more, could you file bugs where you describe exactly what you did and what went wrong?
from tern_for_vim.
I closed this issue by mistake, sorry.
On Windows I still have this issue.
- Opening a file contains non-ascii char in file name. (e.g. c:\大根.js)
- Press in insert mode.
- Omni completion doesn't work and vim return error code.
Vim return this code.
Error detected while processing function tern#Complete:
line 2:
Traceback (most recent call last):
Error detected while processing function tern#Complete:
line 2:
File "<string>", line 1, in <module>
Error detected while processing function tern#Complete:
line 2:
File "C:\Users\username\.vim\bundle\tern_for_vim/script/tern.py", line 231, in tern_ensureCompletionCached
Error detected while processing function tern#Complete:
line 2:
{"line": curRow - 1, "ch": curCol})
Error detected while processing function tern#Complete:
line 2:
File "C:\Users\username\.vim\bundle\tern_for_vim/script/tern.py", line 165, in tern_runCommand
Error detected while processing function tern#Complete:
line 2:
doc["files"].append(tern_fullBuffer())
Error detected while processing function tern#Complete:
line 2:
File "C:\Users\username\.vim\bundle\tern_for_vim/script/tern.py", line 123, in tern_fullBuffer
Error detected while processing function tern#Complete:
line 2:
"name": tern_relativeFile(),
Error detected while processing function tern#Complete:
line 2:
File "C:\Users\username\.vim\bundle\tern_for_vim/script/tern.py", line 111, in tern_relativeFile
Error detected while processing function tern#Complete:
line 2:
filename = vim.eval("expand('%:p')").decode('utf-8')
Error detected while processing function tern#Complete:
line 2:
File "C:\Python27\Lib\encodings\utf_8.py", line 16, in decode
Error detected while processing function tern#Complete:
line 2:
return codecs.utf_8_decode(input, errors, True)
Error detected while processing function tern#Complete:
line 2:
UnicodeDecodeError: 'utf8' codec can't decode byte 0x91 in position 3: invalid start byte
I can avoid to use non-ascii char file, so I keep this issue closing.
from tern_for_vim.
The data that is causing the error is coming from vim.eval
. Unfortunately, I have no idea what encoding that is supposed to return. I wouldn't be too surprised if it was different from platform to platform.
from tern_for_vim.
Related Issues (20)
- TernError: position is outside of file HOT 1
- How to make tern auto start? HOT 2
- Using it with YouCompleteMe
- Failed to start server, only sometimes, when changing between two buffers HOT 1
- Slows down the Vim on switching between tabs and buffers HOT 6
- Tern not respecting .tern-config in home directory. HOT 1
- Share existing tern process among all vim processes?
- tern_for_vim does not work for Node React+Three.js Project HOT 1
- Threejs cannot be completed by Tern
- No maintainer? HOT 4
- Not Completing Assert-Plus HOT 1
- Tern mixing site-packages from different python versions HOT 1
- DeprecationWarning: the imp module is deprecated in favour of importlib; HOT 3
- YouCompleteMe -> Tern - Must restart server to get updated type definitions
- Why doesn't it show me the write function of writerStream? HOT 1
- Request: Commit package-lock.json or add to .gitignore HOT 1
- TernRename renames object property with same name HOT 1
- Failed to start server: [Errno 2] No such file or directory HOT 1
- Are there any maintainers for this project? HOT 1
- Nothing works
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tern_for_vim.