getreu / tp-note

Minimalistic note taking: save and edit your clipboard content as a note file (Gitlab mirror)
https://blog.getreu.net/projects/tp-note/
Apache License 2.0
115 stars 3 forks source link

problem running on mac os x 11.4 #3

Closed rhaynes74 closed 3 years ago

rhaynes74 commented 3 years ago

Hi folks, downloading the mac binary and running ./tp-note yields

*** ERROR: Unable to load, parse or write the configuration file:

Bad TOML data: missing field debug_arg_default at line 1 column 1

Note: this error may occur after upgrading Tp-Note due to some incompatible configuration file changes.

For now, Tp-Note backs up the existing configuration file and next time it starts, it will create a new one with default values. *** ERROR: Can not backup and delete the erroneous configuration file:

Configuration file not found.

Rerunning doesn't fix it. There is no config file in ~/.config/tp-note/

I tried to trick it by doing a

touch ~/.config/tp-note/tp-note.toml

and then rerunning, but unfortunately no dice.

getreu commented 3 years ago

"Unable to load, parse or write the configuration file" usually means that Tp-Note finds an outdated version, which is not compatible with the Tp-Note binary you are using. What prints tp-note --version? "Can not backup and delete the erroneous configuration file" probably means that Tp-Note lacks write permission in the directory where it wants to store/back up its configuration file. Please check in the error message, below "Additional technical details" in the last line it says * configuration file: ... which indicates the location of the configuration file. Delete this file by hand, check the directory's write permission and restart Tp-Note.

rhaynes74 commented 3 years ago

Thanks for the reply - the rest of the message said:

*** ERROR: Can not backup and delete the erroneous configuration file:

Configuration file not found.

Please do it manually. fatal runtime error: Rust cannot catch foreign exceptions

Sincerely,

Dr. Ronald D. Haynes Professor, Department of Mathematics and Statistics Chair, MSc and Phd Scientific Computing Programs Memorial University of Newfoundland

We acknowledge that the lands on which Memorial University’s campuses are situated are in the traditional territories of diverse Indigenous groups, and we acknowledge with respect the diverse histories and cultures of the Beothuk, Mi’kmaq, Innu, and Inuit of this province. On Jun 23, 2021, 6:40 PM -0230, Jens Getreu @.***>, wrote:

"Unable to load, parse or write the configuration file" usually means that Tp-Note finds an outdated version, which is not compatible with the Tp-Note binary you are using. What prints tp-note --version? "Can not backup and delete the erroneous configuration file" probably means that Tp-Note lacks write permission in the directory where it wants to store/back up its configuration file. Please check in the error message, below "Additional technical details" in the last line it says * configuration file: ... which indicates the location of the configuration file. Delete this file by hand, check the directory's write permission and restart Tp-Note. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

getreu commented 3 years ago

Ok, I see.

When Tp-Note starts, it checks if there is a configuration file and if not it tries to create one in some default location. I your case, it seems that at this location there is already some configuration file from a previous version of Tp-Note: Bad TOML data: missing field debug_arg_default at line 1 column 1 As this file is incompatible, Tp-Note tries to get it out of the way by renaming it. This failed: Can not backup and delete the erroneous configuration file.

You need to:

  1. Find out where Tp-Note tries to read its configuration file tp-note.toml.
  2. Delete this file manually.

Concerning 1.: Unfortunately, at the moment, Tp-Note can not reliably determine this location, because of Expose config path · Issue #33 · rust-cli/confy. When you run tp-note --popup, the last line of the error popup shows its "best guess" of the location of the configuration file, but still it can be located somewhere else. I suggest searching for your configuration file tp-note.toml with some file utility and then manually delete it. Once this file is deleted, restart Tp-Note. It should silently create a new configuration file and operate correctly.

Please tell me how it goes.

Workaround

If the above does not help, you can always instruct Tp-Note to use some alternative configuration file with the command line option --config. For example:

tp-note --config ~/tp-note.toml

or

tp-note --config /path/to/my/home/dir/tp-note.toml
rhaynes74 commented 3 years ago

Thanks - I was able to get things up and running with the workaround.  Looking forward to playing around a little.

Sincerely,

Dr. Ronald D. Haynes Professor, Department of Mathematics and Statistics Chair, MSc and Phd Scientific Computing Programs Memorial University of Newfoundland

We acknowledge that the lands on which Memorial University’s campuses are situated are in the traditional territories of diverse Indigenous groups, and we acknowledge with respect the diverse histories and cultures of the Beothuk, Mi’kmaq, Innu, and Inuit of this province. On Jun 24, 2021, 2:19 AM -0230, Jens Getreu @.***>, wrote:

Ok, I see. When Tp-Note starts, it checks if there is a configuration file and if not it tries to create one in some default location. I your case, it seems that at this location there is already some configuration file already from a previous version of Tp-Note: Bad TOML data: missing field debug_arg_default at line 1 column 1 As this file is incompatible, Tp-Note tries to get it out of the way by renaming it. This failed: Can not backup and delete the erroneous configuration file. You need to:

  1. Find out where Tp-Note tries to read its configuration file tp-note.toml.
  2. Delete this file manually.

Concerning 1.: Unfortunately, at the moment, Tp-Note can not reliably determine this location, because of Expose config path · Issue #33 · rust-cli/confy. When you run tp-note --popup, the last line of the error popup shows its "best guess" of the location of the configuration file, but still it can be located somewhere else. I suggest searching for your configuration file tp-note.toml with some file utility ` and then manually delete it. Once this file is deleted, restart Tp-Note. It should silently create a new configuration file and operate correctly. Please tell me how it goes. Workaround If the above does not help, you can always instruct Tp-Note to use some alternative configuration file with the command line option --config. For example: tp-note --config ~/tp-note.toml

or just: tp-note --config tp-note.toml

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

rhaynes74 commented 3 years ago

Hi folks, now that I am up and running - are there particulars pieces of the config file that I should pay attention to or typically need to be modified to adjust workflows?

Sincerely,

Dr. Ronald D. Haynes Professor, Department of Mathematics and Statistics Chair, MSc and Phd Scientific Computing Programs Memorial University of Newfoundland

We acknowledge that the lands on which Memorial University’s campuses are situated are in the traditional territories of diverse Indigenous groups, and we acknowledge with respect the diverse histories and cultures of the Beothuk, Mi’kmaq, Innu, and Inuit of this province. On Jun 24, 2021, 10:05 AM -0230, Ronald Haynes @.***>, wrote:

Thanks - I was able to get things up and running with the workaround.  Looking forward to playing around a little.

Sincerely,

Dr. Ronald D. Haynes Professor, Department of Mathematics and Statistics Chair, MSc and Phd Scientific Computing Programs Memorial University of Newfoundland

We acknowledge that the lands on which Memorial University’s campuses are situated are in the traditional territories of diverse Indigenous groups, and we acknowledge with respect the diverse histories and cultures of the Beothuk, Mi’kmaq, Innu, and Inuit of this province. On Jun 24, 2021, 2:19 AM -0230, Jens Getreu @.***>, wrote:

Ok, I see. When Tp-Note starts, it checks if there is a configuration file and if not it tries to create one in some default location. I your case, it seems that at this location there is already some configuration file already from a previous version of Tp-Note: Bad TOML data: missing field debug_arg_default at line 1 column 1 As this file is incompatible, Tp-Note tries to get it out of the way by renaming it. This failed: Can not backup and delete the erroneous configuration file. You need to:

  1. Find out where Tp-Note tries to read its configuration file tp-note.toml.
  2. Delete this file manually.

Concerning 1.: Unfortunately, at the moment, Tp-Note can not reliably determine this location, because of Expose config path · Issue #33 · rust-cli/confy. When you run tp-note --popup, the last line of the error popup shows its "best guess" of the location of the configuration file, but still it can be located somewhere else. I suggest searching for your configuration file tp-note.toml with some file utility ` and then manually delete it. Once this file is deleted, restart Tp-Note. It should silently create a new configuration file and operate correctly. Please tell me how it goes. Workaround If the above does not help, you can always instruct Tp-Note to use some alternative configuration file with the command line option --config. For example: tp-note --config ~/tp-note.toml

or just: tp-note --config tp-note.toml

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

getreu commented 3 years ago

Good to hear. I am working on bugfix for this issue, I let you know.

are there particulars pieces of the config file that I should pay attention to or typically need to be modified to adjust workflows?

Good start is :

getreu commented 3 years ago

3 should be solved with commit: f6ca6dcbccde1c742b6b2805a1ea29d355444910 which is included in v1.13.0.

Could you download and install tp-note-v1.13.0-x86_64-apple-darwin.tar.gz ?

The above error messages should not show up any more. If everything goes well, you will just see a popup message informing that the config file was upgraded to v1.13.0.

Can you confirm?

rhaynes74 commented 3 years ago

Hi - thanks, I will try this with the next update.

Sincerely,

Dr. Ronald D. Haynes Professor, Department of Mathematics and Statistics Chair, MSc and Phd Scientific Computing Programs Memorial University of Newfoundland

We acknowledge that the lands on which Memorial University’s campuses are situated are in the traditional territories of diverse Indigenous groups, and we acknowledge with respect the diverse histories and cultures of the Beothuk, Mi’kmaq, Innu, and Inuit of this province. On Jun 25, 2021, 12:06 PM -0230, Jens Getreu @.***>, wrote:

3 should be solved with commit: f6ca6dc which is included in v1.13.0.

Could you download and install tp-note-v1.13.0-x86_64-apple-darwin.tar.gz ? The above error messages should not show up any more. If everything goes well, you will just see a popup message informing that the config file was upgraded to v1.13.0. Can you confirm? — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub, or unsubscribe.