tmulle edited a comment on issue #3467: URL: https://github.com/apache/netbeans/issues/3467#issuecomment-1015057137
@oyarzun @vieiro ok, that might have worked! Just a small change: 1. I had to copy the files built to **MacOSX-arm_64** and not **MacOSX-arm**. The _org.netbeans.modules.nativeexecution.api.util.HelperUtility.java_ class builds the file it's looking for as '_MacOSX-cpufamily_bitness_' Here is where the **path** is used in that class..path is set to "_bin/nativeexecution/MacOSX-arm_64/pty_" Using the original **MacOS-arm** as you mentioned causes a "_MissingResourceException_" ``` protected File getLocalFile(final ExecutionEnvironment env) throws ParseException, MissingResourceException { InstalledFileLocator fl = InstalledFileLocatorProvider.getDefault(); MacroExpander expander = MacroExpanderFactory.getExpander(env); String path = expander.expandPredefinedMacros(pattern); File file = fl.locate(path, codeNameBase, false); if (file == null || !file.exists()) { throw new MissingResourceException(path, null, null); //NOI18N } return file; } ``` Once I had the correct directory, I then could open the terminal and according to Activity Monitor the PTY process was Apple instead of Intel which means it worked. I'm not sure why 2 PTY processes open when there is only 1 terminal visible in NetBeans, however. <img width="1456" alt="Screen Shot 2022-01-17 at 11 08 04 PM" src="https://user-images.githubusercontent.com/5183186/149869833-f0dc3ee2-cf3c-422d-9944-1a28db67ca5a.png"> Here is the file info from the Inspector in Activity Monitor: <img width="1544" alt="Screen Shot 2022-01-17 at 11 20 38 PM" src="https://user-images.githubusercontent.com/5183186/149870483-b58b2a18-5d97-4c20-be4e-e8fe3bc100a4.png"> One thing also, is if I close the terminal in NetBeans.. those processes don't seem to close. If I open more terminal windows, more PTY processes show up and never quit, even if I shutdown NetBeans..might be a resource leak somewhere?? Here is a ps -ef | grep pty after I shutdown NetBeans and you can see the PTY processes still hanging around: ``` nativeexecution git:(macos_arm) ps -ef | grep pty 501 26430 24726 0 11:23PM ttys002 0:00.00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox pty 501 25620 1 0 11:07PM ttys006 0:00.00 /private/var/folders/hh/zxltvdg95x57jm4ln9b7wl380000gn/T/dlight_tmulle/4ab37fae/0983141439/pty --dir /Users/tmulle/Development/Projects/glazedlists-tutorial --set-erase-key --env DYLD_LIBRARY_PATH= --env LD_LIBRARY_PATH= --env PROMPT_COMMAND=printf "^[]3;${PWD}^G"; ideopen() { printf "^[]10;ext[::] ideopen $*;^G"; printf "Opening $# file(s) ...\012";} --env TERM=xterm-256color /bin/zsh 501 25890 1 0 11:22PM ttys006 0:00.00 /private/var/folders/hh/zxltvdg95x57jm4ln9b7wl380000gn/T/dlight_tmulle/4ab37fae/0983141439/pty --dir /Users/tmulle/Development/Projects/glazedlists-tutorial --set-erase-key --env DYLD_LIBRARY_PATH= --env LD_LIBRARY_PATH= --env PROMPT_COMMAND=printf "^[]3;${PWD}^G"; ideopen() { printf "^[]10;ext[::] ideopen $*;^G"; printf "Opening $# file(s) ...\012";} --env TERM=xterm-256color /bin/zsh 501 26024 1 0 11:22PM ttys006 0:00.00 /private/var/folders/hh/zxltvdg95x57jm4ln9b7wl380000gn/T/dlight_tmulle/4ab37fae/0983141439/pty --dir /Users/tmulle/Development/Projects/glazedlists-tutorial --set-erase-key --env DYLD_LIBRARY_PATH= --env LD_LIBRARY_PATH= --env PROMPT_COMMAND=printf "^[]3;${PWD}^G"; ideopen() { printf "^[]10;ext[::] ideopen $*;^G"; printf "Opening $# file(s) ...\012";} --env TERM=xterm-256color /bin/zsh 501 26152 1 0 11:22PM ttys006 0:00.00 /private/var/folders/hh/zxltvdg95x57jm4ln9b7wl380000gn/T/dlight_tmulle/4ab37fae/0983141439/pty --dir /Users/tmulle/Development/Projects/glazedlists-tutorial --set-erase-key --env DYLD_LIBRARY_PATH= --env LD_LIBRARY_PATH= --env PROMPT_COMMAND=printf "^[]3;${PWD}^G"; ideopen() { printf "^[]10;ext[::] ideopen $*;^G"; printf "Opening $# file(s) ...\012";} --env TERM=xterm-256color /bin/zsh ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists