The given name does indeed include the suffix, but I just gave the non trivial part of the name, thinking that perhaps the length, or the underscores were involved
Seems to be a Linux problem, as it work just fine on Win XPpro SP3?
What file system type do you try to store to?
Is it the ' that makes it fail, maybe?
the file system is a standard linux system ext4 with which I have no problem to handle any file, even named with non «basic» characters, except with musescore
trying to save as «essai.pdf» I get the same error
perhaps this is related with the fact that the «use native dialogs» tick in Preferences General is inoperant , and that filenames with some UTF8 aren't seen, two «bugs» I think I've previously declared, and which doesn't appear in MuseScore 1.2
What is strange is that I am able to save mcsz files in the same directory and I am able to save pdf files via the print to pdf menu.
So, it looks like I have the good rights to save in this directory.
[Linux ]Export as pdf impossible, cannot determine file type
Severity
⇒
Status (old)
active
⇒
needs info
Do you have the same message than previously? "Cannot determine filetype".
In Edit ->preferences -> General, the tick "use native dialog" is ticked or not?
It might be a Linux-specific issue and it is related with the fact that the "Export" dlg box does not add the file extension until the "Files of type:" drop list is clicked and some selection is made in it.
I can consistently reproduce the issue with the following steps:
1) Open any score
2) Select "File | Export" and accept the current file name and file type, without opening the file type drop list
3) Press [OK]
Result: An error message appears saying "cannot determine file type".
As the file type drop list in the Export dlg defaults to "PDF", it is easy to get this error with PDF.
As a counter-evidence:
1) Open any score
2) Select "File | Export"
3) Press the file type drop list and select "PDF" => the ".pdf" extension is added to the output file name
4) Press [OK}
Result: The file is correctly exported without any error message.
The value put by default in the file name field must explicitly contain the extension, as it was the case before this commit when the filter .mscx was the first listed:
QString name = QString("%1/%2.mscx").arg(saveDirectory).arg(cs->name());
The commit stripped the extension instead of updating it for .pdf:
QString name = QString("%1/%2").arg(saveDirectory).arg(cs->name());
It seems that the reason why the extension must be explicitly added for the default value is that the extension is handled automatically by the method MuseScore::saveScoreDialogFilterSelected() only when a new value is selected in the filter list, so not for the default value. That's why if we manually select PDF in the list, the extension is added. However, I don't know why it's a Linux only issue.
Comments
You need to name it "a_l'heure_accoutumee.pdf"
The given name does indeed include the suffix, but I just gave the non trivial part of the name, thinking that perhaps the length, or the underscores were involved
Seems to be a Linux problem, as it work just fine on Win XPpro SP3?
What file system type do you try to store to?
Is it the ' that makes it fail, maybe?
the file system is a standard linux system ext4 with which I have no problem to handle any file, even named with non «basic» characters, except with musescore
trying to save as «essai.pdf» I get the same error
perhaps this is related with the fact that the «use native dialogs» tick in Preferences General is inoperant , and that filenames with some UTF8 aren't seen, two «bugs» I think I've previously declared, and which doesn't appear in MuseScore 1.2
I just used Save a copy with the name «a_l'heure_accoutumee_alias»
so it seems that the problem is associated with PDF export, and not to all repertory handling within musescore under Linux
BTW could some Linuxian check with other distributions ?
Meanwhile I checked that I have no problem to «save as ……pdf» with MuseScore 1.2
Still doesn't work with the current git trunk:
commit f5e8522b11fe48ac2cd317cff8454f98109ac643
On linux fedora 20 64 bits.
... but print as pdf works fine.
Could be that MuseScore doesn't have the right file permissions to save the file.
I have had problems with this in the past with Ubuntu.
If MuseScore isn't in the right user group to save PDF then the save will fail.
What is strange is that I am able to save mcsz files in the same directory and I am able to save pdf files via the print to pdf menu.
So, it looks like I have the good rights to save in this directory.
Do you have the same message than previously? "Cannot determine filetype".
In Edit ->preferences -> General, the tick "use native dialog" is ticked or not?
You may have the necessary rights to save PDF files in that directory, but MuseScore may not.
I would check that MuseScore belongs to the right groups.
As I said my experience is with Ubuntu - it may be different in Fedora
Since I haven't seen any explicit confirmation - Export / PDF works just fine for me on Ubuntu Studio 14.04
That's odd, now it works. I was not able to make it works yesterday and today (after a git pull), it just works.
Maybe it's time to close this one ...
On Ubuntu 14, I have the same issue with rev 2f7c59b while it was working fine in a previous one.
Can you give steps to reproduce with the latest nightly?
It might be a Linux-specific issue and it is related with the fact that the "Export" dlg box does not add the file extension until the "Files of type:" drop list is clicked and some selection is made in it.
I can consistently reproduce the issue with the following steps:
1) Open any score
2) Select "File | Export" and accept the current file name and file type, without opening the file type drop list
3) Press [OK]
Result: An error message appears saying "cannot determine file type".
As the file type drop list in the Export dlg defaults to "PDF", it is easy to get this error with PDF.
As a counter-evidence:
1) Open any score
2) Select "File | Export"
3) Press the file type drop list and select "PDF" => the ".pdf" extension is added to the output file name
4) Press [OK}
Result: The file is correctly exported without any error message.
M.
I confirm the steps given by Miwarre.
By default, on Xubuntu 14.10 with MuseScore f5b9240, the first choice is .pdf, and no extension is added:
With MuseScore 2 Beta 1 on Windows 7 (VirtualBox), the default choice is .mscx and an extension is added:
the change from mscx to pdf as the default was intentional, I guess dropping the extension was not ;-)
The regression is here: https://github.com/musescore/MuseScore/commit/f044eec
The value put by default in the file name field must explicitly contain the extension, as it was the case before this commit when the filter
.mscx
was the first listed:The commit stripped the extension instead of updating it for
.pdf
:It seems that the reason why the extension must be explicitly added for the default value is that the extension is handled automatically by the method
MuseScore::saveScoreDialogFilterSelected()
only when a new value is selected in the filter list, so not for the default value. That's why if we manually select PDF in the list, the extension is added. However, I don't know why it's a Linux only issue.PR: https://github.com/musescore/MuseScore/pull/1384
Just confirming that your proposed fix does not break the export on Windows, it works there with and without your fix
Fixed in e2d09d1d2b
Reopening the report because the PR causes regression with XP. See http://musescore.org/en/node/37581
PR: https://github.com/musescore/MuseScore/pull/1409
Fixed in 7030e755f5
Automatically closed -- issue fixed for 2 weeks with no activity.