Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit f00157cb authored by Alexander Semke's avatar Alexander Semke

Fixed the build with julia 0.6-releases.

parent 061d596a
......@@ -20,6 +20,7 @@
#include "juliaserver.h"
#include <julia/julia.h>
#include <julia/julia_version.h>
#include <iostream>
#include <QFileInfo>
......@@ -39,8 +40,12 @@ JuliaServer::~JuliaServer()
void JuliaServer::login(const QString &path) const
{
#if JULIA_VERSION_MINOR > 5
jl_init();
#else
QString dir_path = QFileInfo(path).dir().absolutePath();
jl_init(dir_path.toLatin1().constData());
#endif
}
void JuliaServer::runJuliaCommand(const QString &command)
......
......@@ -34,6 +34,7 @@
#include "juliaextensions.h"
#include "juliabackend.h"
#include "juliacompletionobject.h"
#include <julia/julia_version.h>
JuliaSession::JuliaSession(Cantor::Backend *backend)
: Session(backend)
......@@ -108,6 +109,7 @@ void JuliaSession::login()
}
emit loginDone();
qDebug() << "login to julia " << JULIA_VERSION_STRING << "done";
}
void JuliaSession::logout()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment