-
Notifications
You must be signed in to change notification settings - Fork 96
Python implementation using pybind11 and gobject introspection #181
base: master
Are you sure you want to change the base?
Conversation
Replaces #99 |
d82ae2b
to
9bdc0c9
Compare
src/python_interpreter.cc
Outdated
std::cerr << std::string(err) << std::endl; | ||
} | ||
|
||
PythonError::PythonError(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zalox Have not studied the changes in detail, just saw that you repeated Python in for instance PythonInterpreter and PythonError. I think its better to use namespaces such that it becomes: Python::Interpreter and Python::Error.
94c68fd
to
3513d4f
Compare
97504ef
to
989501f
Compare
Working plugins here for now: https://github.com/zalox/jucipp-plugins |
@milleniumbug Did you manage to test the plugins? |
Not yet, I'm trying to. The missing Py_DecodeLocale was the immediate issue that prevented me from compiling this branch. |
docs/install.md
Outdated
@@ -143,7 +143,7 @@ Note that juCi++ must be run in a MinGW Shell (for instance MinGW-w64 Win64 Shel | |||
|
|||
Install dependencies (replace `x86_64` with `i686` for 32-bit MSYS2 installs): | |||
```sh | |||
pacman -S git mingw-w64-x86_64-cmake make mingw-w64-x86_64-toolchain mingw-w64-x86_64-clang mingw-w64-x86_64-gtkmm3 mingw-w64-x86_64-gtksourceviewmm3 mingw-w64-x86_64-boost mingw-w64-x86_64-aspell mingw-w64-x86_64-aspell-en | |||
pacman -S git mingw-w64-x86_64-cmake make mingw-w64-x86_64-toolchain mingw-w64-x86_64-clang mingw-w64-x86_64-gtkmm3 mingw-w64-x86_64-gtksourceviewmm3 mingw-w64-x86_64-boost mingw-w64-x86_64-aspell mingw-w64-x86_64-aspell-en mingw-w64-x86_64-gobject-introspection mingw-w64-x86_64-pygobject-devel mingw-w64-x86_64-python3-gobject | |||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@milleniumbug You will probably need some variant of these packages as well. I needed to point to my site-packages on windows and debian. Arch was fine.
Ok, after installing necessary dependencies, setting Dependencies for Fedora 23: |
Are there no errors in the terminal? |
None at all. I've verified that it doesn't load by putting some logging statements in |
Okay, nevermind. Moving |
@milleniumbug See if this fixes it
@eidheim I'm having trouble persisting my config.json file. Is there any mechanism that overwrites the file or anything in it? I had the issues in msys2. |
As long as you have the same version number in the config file, as in the files.h, juCi++ will not touch the config file. However, if the versions are different, changes will be done to the old config file so that it corresponds to the new file specified in files.h. |
I had some very strange behaviour then. I'll try to reproduce when I get back to windows. |
Windows does some file lock if a file is opened by another process? That might have been the case, denying the write to you your config file. Although, I'm not very experienced with Windows. |
I've debugged the program, and it seems it stops searching for plugins on first hidden file.
Changing from
to
fixed the problem. |
src/python_interpreter.cc
Outdated
@@ -95,7 +95,7 @@ Python::Interpreter::Interpreter(){ | |||
for(boost::filesystem::directory_iterator it(plugin_path);it!=end_it;it++){ | |||
auto module_name=it->path().stem().string(); | |||
if(module_name.empty()) | |||
break; | |||
continue; | |||
auto is_directory=boost::filesystem::is_directory(it->path()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@milleniumbug I fixed it this morning. You probably pulled before.
It might be possible to do it in This approach isn't very generic and re-factoring might be needed for a reasonable solution. |
@zalox I've been thinking about simpler ways to reuse the autocompletion dialog. I'll prioritize this in the coming weeks. |
e10188b
to
6dac0b7
Compare
I updated the docker images with python now. I only updated the packages, so it shouldn't break other builds. https://hub.docker.com/r/cppit/jucipp/builds/ |
Coincidently, I'll test it on master now:) |
15b91fd
to
b019550
Compare
c4307cf
to
873090d
Compare
73502bd
to
b285d3d
Compare
1e57586
to
bb6b4aa
Compare
No description provided.