-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FakeVim doesn't work? #32
Comments
The configuration file is from ReText and doesn't have anything to do with FakeVim library. As mentioned in retext-project/retext#162, FakeVim library and Python bindings need to be installed. Unfortunately there is currently no package to make this easy. |
I have installed Python2 as well as Python3 in my Ubuntu15.04, and build the FakeVim as mentioned in README.md (qmake; make) |
I cannot test this currently but the whole build process is something like the following. # From FakeVim repo ...
# Build FakeVim shared library.
make
qmake
# Build Python bindings (this also runs test application).
PYTHON=python3 ./python/build.sh
# Tell Python apps where to find the bindings.
export PYTHONPATH="$PWD/build:$PYTHONPATH"
# Run ReText. If you have trouble building Python bindings read python/README.md. Maybe you can run |
I get an error while I run the command:
I don't understand why using python3 to execute shell script~ so I run the command this way:
I vim the build.sh, in the comment it tell me to
I run the command |
Sorry, yes, it should be |
The project path seems to be currently wrong too so you should use:
|
The structure of this project is like this:
However, the content in build.sh in as follow: export PROJECT_PATH=${PROJECT_PATH:-"$PWD"}
export LIBRARY_PATH=${LIBRARY_PATH:-"$PROJECT_PATH/fakevim"}
export SIP_FILE_PATH=${SIP_FILE_PATH:-"$PROJECT_PATH/python/fakevim.sip"}
...
"$PYTHON" "$PROJECT_PATH/python/configure.py"
...
"$PYTHON" "$PROJECT_PATH/python/test.py" So I think the build.sh file need to be placed at the root of the project, not under the python directory; I run the command
|
You shouldn't move the script. Just set |
I follow the way, but get the following error:
I run the command Then I find the lfakevim in Makefile under the build directory, get nothing again; I don't know where the lfakevim libray is generated ?? |
And if you leave out setting |
I move to this step:
|
Whoa, looks like bug in SIP (the bindings generator). You can remove |
This usually means you are trying to run code compiled against old sip with new sip. We have got the same assertion with QScintilla packages in Ubuntu, and a rebuild fixed that. Such incompatibility was undocumented and could be treated as a sip bug, though. |
I feel confused when I rebuild
In order to use FakeVim in ReText , we need to install
I don't know what's the right version of these projects, respectively, or may be many ?? |
@linxd5 In retext-project/retext#162, you mentioned that you are using Ubuntu 15.04. Why can't you then just use the distro versions of sip and PyQt? Ubuntu 15.04 has sip 4.16.6 which is newer than your 4.16.3. |
Hello, My ReText version is 5.2.1 (using PyMarkups 0.6.1), and FakeVim doesn't work ~ below is my configuration file:
[General]
autoSave=true
highlightCurrentLine=true
previewState=true
restorePreviewState=true
saveWindowGeometry=true
spellCheck=true
useFakeVim=true
useWebKit=true
windowGeometry="@bytearray(\x1\xd9\xd0\xcb\0\x2\0\0\0\0\x3\xe\0\0\0\xef\0\0\a\xa1\0\0\x4;\0\0\x3\x18\0\0\x1\x15\0\0\a\x97\0\0\x4\x31\0\0\0\0\0\0\0\0\a\x80)"
Thank you~
The text was updated successfully, but these errors were encountered: