wudsn / wudsn-ide-install

WUDSN IDE Installer
8 stars 1 forks source link

wudsn-ide-install script failing on OSX #2

Open tonual opened 3 months ago

tonual commented 3 months ago

Hello, thank you for enormous effort of bringing this toolkit to the 8bit era fans.

I am on Apple M2 silicon, Sonoma 14.4 OS and already tried running wudsn-ide-install. Because it failed at some point, I haven't delved into troubleshooting, but rather tried other way around using manual installation described at https://www.wudsn.com/index.php/ide/installation.

It was kind of OK, but once I've discovered some features where not working as advertised (e.g content assistance) I decided to create an issue for wudsn-ide-install script hoping there is a simple fix and try again.

For what I could observed the script executes just fine until the window pops up with an 'Eclipse' and 'Application' folder icons. (probably wanting my to perform drag&drop) but in the meantime the script fails immediately.

Here is a fragment from terminal from start till it failed:

Installing WUDSN IDE feature. /Users/rafalkrzysztof/retro_dev/WUDSN/wudsn.command: line 377: 21192 Killed: 9 ${ECLIPSE_EXECUTABLE} -nosplash -application org.eclipse.equinox.p2.director -repository "${UPDATE_URL}" -installIU com.wudsn.ide.feature.feature.group -destination "$ECLIPSE_DESTINATION_FOLDER" >> "${LOG}" 2>> "${LOG}" ERROR: See messages above and in /Users/rafalkrzysztof/retro_dev/WUDSN/wudsn.log.

Attaching log file.

wudsn.log

peterdell commented 3 months ago

Thanks a lot for your feedback. I have a macOS M1 which I'll update and try to reproduce the problem.

peterdell commented 3 months ago

Hmm, I get these warning some lines before the error message on the console Installing Eclipse.

WARNING: The locate database (/var/db/locate.database) does not exist. To create the database, run the following command:

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist

Please be aware that the database can take some time to generate; once the database has been created, this message will no longer appear.

Installing WUDSN IDE feature. /Users/jac/jac/wudsn/daily/wudsn.command: line 377: 2608 Killed: 9 ${ECLIPSE_EXECUTABLE} -nosplash -application org.eclipse.equinox.p2.director -repository "${UPDATE_URL}" -installIU com.wudsn.ide.feature.feature.group -destination "$ECLIPSE_DESTINATION_FOLDER" >> "${LOG}" 2>> "${LOG}" ERROR: See messages above and in /Users/jac/jac/wudsn/daily/wudsn.log. W

peterdell commented 3 months ago

Looks like the OS is killing the "eclipse" process because of code signing. Not sure why, because removing the signature should avoid it.

Check is codesign is completely installed.

if command -v "codesign_allocate" &> /dev/null; then
  # Remove code signing information to prevent issues when changing files in the folder.
  codesign --remove "${ECLIPSE_APP_FOLDER}"
fi

JACs-Mac-mini:MacOS jac$ codesign -d eclipse eclipse: code object is not signed at all

https://support.apple.com/en-us/102445 https://bugs.eclipse.org/bugs/show_bug.cgi?id=494293 https://github.com/espressif/idf-eclipse-plugin/issues/780 https://forums.developer.apple.com/forums/thread/684509

Here's a workaround that codesigns the Eclipse.app folder, but that can break at any time as Eclipse writes files to it.

wudsn.command.zip

tonual commented 3 months ago

Thank you for investigating the issue. I understand Apple ecosystem moves too fast to catch up with compliance on the low level scripting.

I decided to try manual installation and it was kind of successful; I have a syntex coloring, nice Outline window with code navigation, super fast compiler and code execution with emulator. What more could I want? :)

The only feature not working correctly is code hinting/completition. It seems to start hinting only after typing the dot as first character, but it does not e.g hint the (declared) equates. What could be missing there ?

scr1_

scr2

Screenshot 2024-05-03 at 10 15 27 Screenshot 2024-05-03 at 10 16 47 Screenshot 2024-05-03 at 10 17 11