You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description
Unable to run pgmodeler or pgmodeler-cli; schema files cannot be found. It seems pgmodeler looks for resources files in the current working directory, is not aware of the install directory and is ignoring any env vars mentioned on https://pgmodeler.io/support/installation.
How to reproduce
Run pgmodeler-cli in any directory, except the directory its installed to.
Expected behavior
Run the cli without problems. Let the cli find the needed resources in the correct dirs.
I installed pgmodeler in ~/apps/pgModeler. Running pgmodeler from that directory works as expected.
Info about your desktop
OS: Ubuntu
Version: 22.04.4 LTS
Window manager: X11 Gnome 42.9
pgModeler version: 1.1.1
Qt version: QMake version 3.1 Using Qt version 5.15.3 in /usr/lib/x86_64-linux-gnu
Stacktrace / Debug info
pgModeler command line interface.
Version 1.1.1 - 20240314.88788867b Qt 6.6.2
PostgreSQL Database Modeler Project - pgmodeler.io
Copyright 2006-2024 Raphael Araújo e Silva <raphael@pgmodeler.io>
Starting model export...
Loading input file: /home/roel/src/my-project/db/db.dbm
[0] src/pgmodelercliapp.cpp (987)
int PgModelerCliApp::exec()
[FileDirectoryNotAccessed] Could not access the file or directory `/home/roel/src/my-project/db/schemas/sql/drop.sch'! Make sure that it exists or if the user has access permissions on it!
[1] src/databasemodel.cpp (2540)
void DatabaseModel::addSchema(Schema *, int)
[FileDirectoryNotAccessed] Could not access the file or directory `/home/roel/src/my-project/db/schemas/sql/drop.sch'! Make sure that it exists or if the user has access permissions on it!
[2] src/databasemodel.cpp (471)
void DatabaseModel::__addObject(BaseObject *, int)
[FileDirectoryNotAccessed] Could not access the file or directory `/home/roel/src/my-project/db/schemas/sql/drop.sch'! Make sure that it exists or if the user has access permissions on it!
[3] src/baseobject.cpp (1346)
virtual QString BaseObject::getDropCode(bool)
[FileDirectoryNotAccessed] Could not access the file or directory `/home/roel/src/my-project/db/schemas/sql/drop.sch'! Make sure that it exists or if the user has access permissions on it!
[4] src/schemaparser.cpp (985)
QString SchemaParser::getSourceCode(const QString &, attribs_map &, SchemaParser::CodeType)
[FileDirectoryNotAccessed] Could not access the file or directory `/home/roel/src/my-project/db/schemas/sql/drop.sch'! Make sure that it exists or if the user has access permissions on it!
[5] src/schemaparser.cpp (1441)
QString SchemaParser::getSourceCode(const QString &, attribs_map &)
[FileDirectoryNotAccessed] Could not access the file or directory `/home/roel/src/my-project/db/schemas/sql/drop.sch'! Make sure that it exists or if the user has access permissions on it!
[6] src/utilsns.cpp (50)
QByteArray UtilsNs::loadFile(const QString &)
[FileDirectoryNotAccessed] Could not access the file or directory `/home/roel/src/my-project/db/schemas/sql/drop.sch'! Make sure that it exists or if the user has access permissions on it!
** pgmodeler-cli aborted due to critical error(s). **
Additional info
Running pgmodeler also fails:
roel@ubuntu:~/.config$ cd pgmodeler-1.0/
roel@ubuntu:~/.config/pgmodeler-1.0$ pgmodeler
[0] src/mainwindow.cpp (493)
void MainWindow::createMainWidgets()
[FileDirectoryNotAccessed] Could not access the file or directory `/home/roel/.config/pgmodeler-1.0/sql-highlight.conf'! Make sure that it exists or if the user has access permissions on it!
[1] src/utils/syntaxhighlighter.cpp (825)
void SyntaxHighlighter::loadConfiguration(const QString &)
[FileDirectoryNotAccessed] Could not access the file or directory `/home/roel/.config/pgmodeler-1.0/sql-highlight.conf'! Make sure that it exists or if the user has access permissions on it!
** /home/roel/.config/pgmodeler-1.0/sql-highlight.conf
[2] src/xmlparser.cpp (84)
void XmlParser::loadXMLFile(const QString &)
[FileDirectoryNotAccessed] Could not access the file or directory `/home/roel/.config/pgmodeler-1.0/sql-highlight.conf'! Make sure that it exists or if the user has access permissions on it!
** /home/roel/.config/pgmodeler-1.0/sql-highlight.conf
[3] src/utilsns.cpp (50)
QByteArray UtilsNs::loadFile(const QString &)
[FileDirectoryNotAccessed] Could not access the file or directory `/home/roel/.config/pgmodeler-1.0/sql-highlight.conf'! Make sure that it exists or if the user has access permissions on it!
roel@ubuntu:~/.config/pgmodeler-1.0$
The text was updated successfully, but these errors were encountered:
Bug description
Unable to run
pgmodeler
orpgmodeler-cli
; schema files cannot be found. It seems pgmodeler looks for resources files in the current working directory, is not aware of the install directory and is ignoring any env vars mentioned on https://pgmodeler.io/support/installation.How to reproduce
Run
pgmodeler-cli
in any directory, except the directory its installed to.Expected behavior
Run the cli without problems. Let the cli find the needed resources in the correct dirs.
I installed pgmodeler in ~/apps/pgModeler. Running
pgmodeler
from that directory works as expected.Info about your desktop
QMake version 3.1 Using Qt version 5.15.3 in /usr/lib/x86_64-linux-gnu
Stacktrace / Debug info
Additional info
Running
pgmodeler
also fails:The text was updated successfully, but these errors were encountered: