IanniX icon indicating copy to clipboard operation
IanniX copied to clipboard

Saved scores are always 0 bytes

Open cyberic99 opened this issue 8 years ago • 9 comments

To reproduce:

  • open iannix
  • draw a curve
  • save the score The file size is 0 bytes.

This is on linux, git 46714c2, self compiled.

cyberic99 avatar Jul 11 '17 20:07 cyberic99

Is there a Iannix version where saving works? or is there a workarkound, like serializing to json?

Thanks

cyberic99 avatar Jul 31 '17 21:07 cyberic99

I'm sorry to ask, but do you recognize it as a bug and do you plan to try to fix it someday? I know time is hard to find to fix bugs, but I can't understand the point of using IanniX if you can't save.

cyberic99 avatar Aug 06 '17 09:08 cyberic99

saving works here.

I'm using the version that comes with Debian (0.9.17~dfsg0-3, which is 0.9.17 with some additional patches, most of which have been included in upstream).

If you are using a Debian based distribution (e.g. ubuntu), i'd suggest using the packaged version.

umlaeute avatar Sep 19 '17 11:09 umlaeute

i am experiencing the same saving issues building from source also. this project is really interesting! thanks for sharing. im going be exploring the codebase and will try to grok how to get the save feature working. if you can give me any pointers i would be appreciative!

jobez avatar Oct 12 '17 01:10 jobez

@jobez which system? which Qt?

umlaeute avatar Oct 12 '17 07:10 umlaeute

i figured it out! @umlaeute i am using nixos, which packaged the executable without preserving a functional location of the template file, which was causing the save issues. making sure the file was where the executable expected remedies the problem :dancer:

jobez avatar Oct 12 '17 09:10 jobez

@jobez can you be more specific about the template file please? where should it be loacted? Thanks

cyberic99 avatar Oct 12 '17 11:10 cyberic99

@cyberic99 IIRC, the template files must be in ./Tools/Templates/, relative to the iannix executable.

both the make install target is quite broken (as it requires a folder /usr/local/bin/Tools/Templates/) and you won't be able to use an out-of-tree build (e.g. if you build in build/, so you end up having an executable IanniX/build/iannix but the templates really live in IanniX/Tools/Templates/ then yo uare out of luck). see also #22, #23

It really has to look somewhat like:

[email protected]:~/src/IanniX$ ls -l iannix Tools/Templates/
-rwxr-xr-x 1 foobar foobar 3563056 Oct 12 16:29 iannix

Tools/Templates/:
total 24
-rw-r--r-- 1 foobar foobar 16522 May 20 01:02 Cosmosf.txt
-rw-r--r-- 1 foobar foobar  3421 May 20 01:02 _IanniX.txt

umlaeute avatar Oct 12 '17 14:10 umlaeute

Thanks @umlaeute for writing!

I tried copying the Tools/ folder to the right location but that is not enough:

I also need to start the application from the command line from the folder where iannix is found.

If I just run it from QtCreator the Tools folder seem to have no effect, saving produces 0 bytes files and using undo deletes everything (https://github.com/buzzinglight/IanniX/issues/48)

hamoid avatar Mar 26 '20 14:03 hamoid