Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to open data in editor under macOS -> add recognition for missing default editor (*.sav original datafile for example) #1203

Closed
kovac254 opened this issue Mar 11, 2021 · 5 comments
Assignees

Comments

@kovac254
Copy link

kovac254 commented Mar 11, 2021

  • JASP version: 0.14.1
  • OS name and version: macOS Big Sur 11.2.2
  • Hardware: MacBook with Intel x86 CPU
  • Bug description: When I try to open the data in a spreadsheet editor by doubleclicking it I get a message saying "No default spreadsheet editor for file filename-without-filetype-suffix.Use Preferences to set the right editor." I have tried setting the OS default editor for *.csv files to TextEdit, Numbers and MS Excel to no avail. I have also tried to manually set the editor in Preferences but I still got the same results. I have restarted both Jasp and the whole computer in between. The very same behavior was reported here so it seems to be a bug affecting multiple macOS users.
  • Expected behaviour: The spreadsheet editor opens and allows you to edit the data.

Steps to reproduce:

  1. Open a *.jasp dataset
  2. Doubleclick on the data
@JorisGoosen
Copy link
Contributor

Is it possible that the name you choose for your file does not have a file extension?

Because the error you posted here says filename-without-filetype-suffix, you seem to be expecting csv.
So I would suggest you give it that extension and see if it works then.

It then depends on how you made the file, I would expect JASP to add this extension but it seems to go wrong for you. I can look into that once I know whether manually adding the extension helps you or not.

@JorisGoosen JorisGoosen added the Waiting for requester If waiting for a long time it is reasonable to close an issue label Mar 11, 2021
@kovac254
Copy link
Author

Sorry for confusion. I'm working with a *.jasp file that was created by opening a *.sav file and saving it as *.jasp. All of these steps were performed on my machine with the same install of JASP.

I have mentioned the filename-without-filetype-suffix because the suffix is missing in the error message. It made me wonder whether there is an issue with JASP not providing a suffix for what I assume to be a temporary *.csv file generated for editing in the spreadsheet editor.

@JorisGoosen
Copy link
Contributor

Well, it depends on the jasp-file and how you made it.

In your case you opened a *.sav file with JASP which it remembered.
So now when you double-click the jasp-file it will try to open the *.sav file with your default editor for that.
And apparently you do not have one installed and hence you get this error.

It isn't a very clear message I'll grant you that. And it should really notice this and suggest to generate a file that you can open, such as csv. But it doesn't do that now...

You can notice quick enough if this is the case by moving or renaming your original datafile. That way JASP can't find it anymore and it will suggest generating a new file, which will be csv and should thus use your system-default for that.

@JorisGoosen JorisGoosen removed the Waiting for requester If waiting for a long time it is reasonable to close an issue label Mar 11, 2021
@kovac254
Copy link
Author

kovac254 commented Mar 11, 2021

I can confirm this helped! Improving the error message/switching it for the dialog that shows up when the file is moved/renamed would be great but at least a workaround will pop-up now when you google the error message. Feel free to close the issue if you consider it closed as well.

Thank you for very swift help!

@JorisGoosen JorisGoosen changed the title Unable to open data in editor under macOS Unable to open data in editor under macOS -> add recognition for missing default editor (*.sav original datafile for example) Mar 11, 2021
@JorisGoosen
Copy link
Contributor

You are welcome!

I'll just use this issue to remind me to make that clearer/better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants