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
I think the sqbpro file is missing an xml closure element for </sql>?
Or I need help copying many sql queries into the newer sqbpro file format.
How to do? I cannot recreate sooo many files. :(
Which version created that project file? Do you mean that is not well formed? Maybe an XML validator program gives some hint. Could you test if the older version still opens the file?
I saved a project file using v3.11.2 and opened it using the latest commit in master branch. I need some reproduction steps or sample files in order to help.
All the nightlies are portable (in a loose sense) in that they don't need to be installed. They do read/write to the registry so they're not 100% 'portable', but simply extract the ZIP file and run the .exe.
Excellent, that saves me debugging the install step for the older version.
I prefer portable for most applications.
This way any customization can be transferred easily to other users.
Especially true for Notepad++ and DB4S.
I still don't know where the customized settings are stored? 😕
Ok, that makes sense for an install on Windows platforms, but where are settings stored for portable?
And, thinking cross-platform, wherefore art thou settings?
I don't know what you mean by 'portable'. As above, if you mean the nightlies, then still the registry. If you mean the portableApps portable version, then still the registry, but also locally in an .INI file with the program. This is then imported back into the registry prior to loading. Other operating systems have their own mechanism. MacOS for example uses /Users/username/Library/Preferences. Linux would use .dot files in home directories, etc.
I feel we're going down a rabbit hole of questions and issues without resolving the main issue.
Can you email me the sbpro file you're having issues with, which opens fine in an older version of DB4S and not a newer one (redirection.services.2021+2791@gmail.com).
I'm aware (possibly) of a difference of base code between the official releases and the nightlies. You say 'an older version' and 'a nightly' - does the sqbpro file that does not open in a nightly open OK in 3.12.2 - the released version?
(Note that 3.12.2 is still 'portable' - you don't have to install it and it can be run directly like the nightlies).
Yes, I have to sanitize before sending.
Likewise, I would appreciate anyone confirming the following:
Install any nightly as portable.
Make some preference changes. Font size, dark mode, etc.
Export those changes to a settings file.
Exit DB4S.
Open DB4S.
Are your settings still in place?
If so, why? Portable should not write to the Registry.
But, I think it is.
Portable should either use default settings or custom settings file in a known path.
Attempt to import prior saved settings file.
This fails for me in all scenarios.
I prefer not to investigate sqbpro file reads if this basic function is broken.
If so, why? Portable should not write to the Registry.
I mentioned this above. DB4S isn't 100% 'portable' in that it leaves remnants behind. It's not written from the ground up to be portable. There are just shims in place to export/import the registry values where required (eg, the portableApps version) or simply write to the registry like the normal application (in the case of the .zip).
Don't read 'portable' literally - you'll save yourself an aneurysm.
If you're talking about the -S option, then that's not a 'basic function - that is a new development thing in development only in the development version.
Ok,
The exported settings defines paths multiple ways?
recentFileList=C:/try/db/Copy.db, C:/try/db/Copy2.db
defaultlocation=C:\\try
clonedirectory=C:\\Users\\me\\AppData\\Roaming\\sqlitebrowser\\DB Browser for SQLite
As mentioned above, I cannot import a saved settings file!
So, I have no confidence -S will work and it does not.
Can you confirm?
Below is my settings file:
What's your OS? Windows is pretty forgiving, so knows c:/directory/directory is actually c:\directory\directory. Similliarly, while you see c:\\users\\me\\ in the file, they're actually escaped, so its not an error.
Windows 10 latest.
Sure, path characters are forgiving, but there is no reason to mix them in 1 application!
It was a guess since I cannot import the settings file DB4S creates. :(
but there is no reason to mix them in 1 application
It's because there is no one developer creating code, and no one routine for writing paths, so when writing code, if a developer is on Linux, got his head in Linux, uses Linux every day, it's very hard to suddenly think, "Aah yes - Windows is odd and used backslashes".
Path characters are just another variable. If a developer gets this wrong in 2021, it is still a bug.
There is nothing "odd" about Windows paths given it is the dominant desktop environment by an extremely large margin. Mobile and IOT ARM platforms are a different topic.
Again, I just want to eliminate bugs such as reading self generated setup files and backward compatible project files.
I think I've fixed the problem with the checking of the "ini" file in Windows. It seems related to line-endings, a typical problem for portability. Could someone confirm it on Windows?
By the way, Windows accepts "/" as directory separator from the beginning. I wanted to confirm it, and I've discovered that even DOS did that. Why? In fact, they wanted to use "/" as UNIX, but it was already taken for the command options, when DOS lacked directories, so they used "\" instead. (Edited: I had to double the backslash in this comment, another problem that developers sometimes encounter with this character 😄)
Activity
sky5walk commentedon Aug 1, 2021
I think the sqbpro file is missing an xml closure element for
</sql>?Or I need help copying many sql queries into the newer sqbpro file format.
How to do? I cannot recreate sooo many files. :(
justinclift commentedon Aug 1, 2021
Uh oh, this definitely sounds like something we need to fix, as it's supposed to work.
@MKleusberg @mgrojo @scottfurry ping?
mgrojo commentedon Aug 1, 2021
Which version created that project file? Do you mean that is not well formed? Maybe an XML validator program gives some hint. Could you test if the older version still opens the file?
sky5walk commentedon Aug 2, 2021
Yes, the older version can open the files.
I was debugging with nightly v210127 because I was randomly losing all data in my sqbpro files.
mgrojo commentedon Aug 2, 2021
I saved a project file using v3.11.2 and opened it using the latest commit in master branch. I need some reproduction steps or sample files in order to help.
sky5walk commentedon Aug 3, 2021
I will submit example files as soon as I get time.
Is there any difference in operation from full install vs portable?
chrisjlocke commentedon Aug 3, 2021
Can you clarify your terminology - 'full install' (the 3.12.2 install) and the 'portable' (3.12.2 portable version) or do you mean a nightly?
sky5walk commentedon Aug 3, 2021
When searching portable, I found an open ticket for some missing runtime? I didn't see what fixed it or how that affected use.
chrisjlocke commentedon Aug 3, 2021
All the nightlies are portable (in a loose sense) in that they don't need to be installed. They do read/write to the registry so they're not 100% 'portable', but simply extract the ZIP file and run the .exe.
sky5walk commentedon Aug 3, 2021
Excellent, that saves me debugging the install step for the older version.
I prefer portable for most applications.
This way any customization can be transferred easily to other users.
Especially true for Notepad++ and DB4S.
I still don't know where the customized settings are stored? 😕
chrisjlocke commentedon Aug 3, 2021
The registry. Specifically [Computer\HKEY_CURRENT_USER\Software\sqlitebrowser\sqlitebrowser]
sky5walk commentedon Aug 3, 2021
Ok, that makes sense for an install on Windows platforms, but where are settings stored for portable?
And, thinking cross-platform, wherefore art thou settings?
chrisjlocke commentedon Aug 4, 2021
I don't know what you mean by 'portable'. As above, if you mean the nightlies, then still the registry. If you mean the portableApps portable version, then still the registry, but also locally in an .INI file with the program. This is then imported back into the registry prior to loading. Other operating systems have their own mechanism. MacOS for example uses /Users/username/Library/Preferences. Linux would use .dot files in home directories, etc.
8 remaining items
chrisjlocke commentedon Aug 7, 2021
I feel we're going down a rabbit hole of questions and issues without resolving the main issue.
Can you email me the sbpro file you're having issues with, which opens fine in an older version of DB4S and not a newer one (redirection.services.2021+2791@gmail.com).
I'm aware (possibly) of a difference of base code between the official releases and the nightlies. You say 'an older version' and 'a nightly' - does the sqbpro file that does not open in a nightly open OK in 3.12.2 - the released version?
(Note that 3.12.2 is still 'portable' - you don't have to install it and it can be run directly like the nightlies).
sky5walk commentedon Aug 7, 2021
Yes, I have to sanitize before sending.
Likewise, I would appreciate anyone confirming the following:
If so, why? Portable should not write to the Registry.
But, I think it is.
Portable should either use default settings or custom settings file in a known path.
This fails for me in all scenarios.
I prefer not to investigate sqbpro file reads if this basic function is broken.
chrisjlocke commentedon Aug 7, 2021
I mentioned this above. DB4S isn't 100% 'portable' in that it leaves remnants behind. It's not written from the ground up to be portable. There are just shims in place to export/import the registry values where required (eg, the portableApps version) or simply write to the registry like the normal application (in the case of the .zip).
Don't read 'portable' literally - you'll save yourself an aneurysm.
chrisjlocke commentedon Aug 7, 2021
If you're talking about the -S option, then that's not a 'basic function - that is a new development thing in development only in the development version.
mgrojo commentedon Aug 7, 2021
I've reviewed the code for the
-Soption and haven't seen any apparent problem. What are exactly the values that are written?sky5walk commentedon Aug 9, 2021
Ok,
The exported settings defines paths multiple ways?
As mentioned above, I cannot import a saved settings file!
So, I have no confidence -S will work and it does not.
Can you confirm?
Below is my settings file:
sky5walk commentedon Aug 9, 2021
My settings file...
chrisjlocke commentedon Aug 9, 2021
What's your OS? Windows is pretty forgiving, so knows c:/directory/directory is actually c:\directory\directory. Similliarly, while you see
c:\\users\\me\\in the file, they're actually escaped, so its not an error.sky5walk commentedon Aug 9, 2021
Windows 10 latest.
Sure, path characters are forgiving, but there is no reason to mix them in 1 application!
It was a guess since I cannot import the settings file DB4S creates. :(
chrisjlocke commentedon Aug 9, 2021
It's because there is no one developer creating code, and no one routine for writing paths, so when writing code, if a developer is on Linux, got his head in Linux, uses Linux every day, it's very hard to suddenly think, "Aah yes - Windows is odd and used backslashes".
sky5walk commentedon Aug 9, 2021
Path characters are just another variable. If a developer gets this wrong in 2021, it is still a bug.
There is nothing "odd" about Windows paths given it is the dominant desktop environment by an extremely large margin. Mobile and IOT ARM platforms are a different topic.
Again, I just want to eliminate bugs such as reading self generated setup files and backward compatible project files.
Settings: fix file check in "-S" option for Windows
mgrojo commentedon Aug 9, 2021
I think I've fixed the problem with the checking of the "ini" file in Windows. It seems related to line-endings, a typical problem for portability. Could someone confirm it on Windows?
By the way, Windows accepts "/" as directory separator from the beginning. I wanted to confirm it, and I've discovered that even DOS did that. Why? In fact, they wanted to use "/" as UNIX, but it was already taken for the command options, when DOS lacked directories, so they used "\" instead. (Edited: I had to double the backslash in this comment, another problem that developers sometimes encounter with this character 😄)
sky5walk commentedon Aug 10, 2021
Ok, nightly v210810 can import a settings file. 👍
But, it still crashes when trying to open my v210127 sqbpro file. 👎
Do not hang on broken project files and accept empty settings files