winder / Universal-G-Code-Sender

A cross-platform G-Code sender for GRBL, Smoothieware, TinyG and G2core.
http://winder.github.io/ugs_website/
GNU General Public License v3.0
1.86k stars 757 forks source link

Mac file browser issue #2406

Closed ImolaS3 closed 5 months ago

ImolaS3 commented 6 months ago

Version

2.1.4

Hardware / Firmware

GRBL 1.1

What happened

I have been using UGS for a while on 2 different Macs and it won't display any files in any folder except for the default root folder. The file list window just appears blank when i select any other folder

In addition sometimes, when i attempt to change directories, the "options" for directories n the top textbox are all blank

I have the latest version installed (just downloaded)

How to reproduce

On a Mac running OS Monteray, just try to open file from various directories

Operating System

Mac OS Monterary

Anything else

Every time I use UGS (daily at present) and it has been happening for the full 56 weeks I have been using UGS

breiler commented 6 months ago

Same issue as #2383.

I doubt that we can solve this fully, I did however read somewhere that the problem is common with the JFileChooser and that the FileChooser might work better. I'll give that a try once I get some time over.

JayZmake commented 5 months ago

I am completely new to this forum. This product looks great, but, the issue I have looks most like this one posted. I have successfully opened gcodesender on my Mac running Monterey12.6.2. However, I am not able to open any Gcode files I have created and view them. The file directories all show up as empty for all files on my Mac. Please excuse my newbeeness here, and let me know if and how I can forward what you might need to resolve this issue to get me up and running. Here is a screen shot of what happens:

Screen Shot 2024-01-27 at 10 21 35 AM
breiler commented 5 months ago

I have tried replacing the javax.swing.JFileChooser with an older java.awt.FileDialog which seems to work better on MacOSX. There are still some small issues on Linux which still needs to be fixed. There are many places where the JFileChooser is still used which needs to be replaced as well.

If someone is interested in testing it is available in the latest nightly build: https://github.com/winder/Universal-G-Code-Sender/releases/tag/nightly

JayZmake commented 5 months ago

The nightly build edit solved the problem! Thanks so much. Thank goodness there’s smart and hardworking people like yourself working on this stuff. I don’t know how you do it, but, it frees up my time to work on what I want to work on and I appreciate it.

On Jan 29, 2024, at 3:36 AM, Joacim Breiler @.***> wrote:

I have tried replacing the javax.swing.JFileChooser with an older java.awt.FileDialog which seems to work better on MacOSX. There are still some small issues on Linux which still needs to be fixed. There are many places where the JFileChooser is still used which needs to be replaced as well.

If someone is interested in testing it is available in the latest nightly build: https://github.com/winder/Universal-G-Code-Sender/releases/tag/nightly https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_winder_Universal-2DG-2DCode-2DSender_releases_tag_nightly&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=a7aCU0XjtGLdnRDFGhqFSQ&m=o2hddgTrBpimcpxrGzYT-7DBeJ3qqrQN8ifAAkIYSoUW8sBIr4PJQ87dzXjx6Czh&s=qSi5Qp1NOI17eCl3N6jQBMSxbrPcpflbXAgV00eZChU&e= — Reply to this email directly, view it on GitHub https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_winder_Universal-2DG-2DCode-2DSender_issues_2406-23issuecomment-2D1914206080&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=a7aCU0XjtGLdnRDFGhqFSQ&m=o2hddgTrBpimcpxrGzYT-7DBeJ3qqrQN8ifAAkIYSoUW8sBIr4PJQ87dzXjx6Czh&s=WvqvjRH_fUIqq_6-zB51Mk6OwauoaQma5X4PQy-nw9I&e=, or unsubscribe https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AMAV5VV7YK3MVL46LIUEB7DYQ5NRZAVCNFSM6AAAAABBHBKE3GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJUGIYDMMBYGA&d=DwMFaQ&c=euGZstcaTDllvimEN8b7jXrwqOf-v5A_CdpgnVfiiMM&r=a7aCU0XjtGLdnRDFGhqFSQ&m=o2hddgTrBpimcpxrGzYT-7DBeJ3qqrQN8ifAAkIYSoUW8sBIr4PJQ87dzXjx6Czh&s=aQheY0HRX8w52PmsZLyp2aZs5LlpfL7r64Zn224-aK8&e=. You are receiving this because you commented.