No targets listed

Monkey Forums/Monkey Bug Reports/No targets listed

fictorial(Posted 2013) [#1]
Hi, I am brand new to Monkey. I got the pro license and fired up Monkey.app on OS X 10.7.5. I tried running a simple hello-world and noticed that nothing happened. The target dropdown (in Ted) is empty. Also, Build>Target... shows an empty textfield instead of a list. I tried entering html5, etc. to no avail. The log says:

"/Users/bhammond/Downloads/MonkeyPro68b/bin/transcc_macos" -target= -config=Release -run "/Users/bhammond/Desktop/test.monkey"
Done.

Notice -target= is blank.

Also, tried on v63b -- same result.

Thanks,
Brian


AdamRedwoods(Posted 2013) [#2]
i haven't fired up my Mac in a while, but my guess is
1. check the Ted .ini file. It may be hidden in the app. check that the monkey install path is correct.
2. check the monkey/bin/config.macos.txt seems to have the right pathing in ut.


fictorial(Posted 2013) [#3]
Thanks. Unfortunately, those files look correct. Perhaps something is missing though?

For what it's worth, I am loading Monkey.app first (not Ted.app directly).

I have not touched these files myself. Here is what is in MonkeyPro67f.

/Users/bhammond/MonkeyPro67f/bin/config.macos.txt


'--------------------
'Monkey modules path
'
'Can be overriden via transcc cmd line
'
MODPATH="${MONKEYDIR}/modules"
'--------------------

'--------------------
'HTML player path.
'
'Must be set for HTML5 target support.
'
HTML_PLAYER=open -n "${MONKEYDIR}/bin/mserver_macos.app" --args
'--------------------

'--------------------
'Flex SDK and flash player path.
'
'Must be set for FLASH target support.
'
FLEX_PATH="${HOME}/flex_sdk_4.9"
FLEX_PATH="${HOME}/flex_sdk_4.6"
'
'for opening .swf files...monkey will use HTML_PLAYER if this is not set.
'FLASH_PLAYER="...?..."
'--------------------

'--------------------
'Android SDK and tool paths.
'
'Must be set to a valid for for ANDROID target support
'
'Android SDK
ANDROID_PATH="${HOME}/android-sdk-macosx"
'--------------------



/Users/bhammond/MonkeyPro67f/bin/ted_macos_brians-imac.home.ini/blitzresearchltd.com/Ted.ini

[userPrefs]
fontFamily=Courier
fontSize=12
tabSize=4
backgroundColor=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\xff\xff\xff\xff\0\0)
defaultColor=@Variant(\0\0\0\x43\x1\xff\xff\0\0\0\0\0\0\0\0)
numbersColor=@Variant(\0\0\0\x43\x1\xff\xff\0\0\0\0\xff\xff\0\0)
stringsColor=@Variant(\0\0\0\x43\x1\xff\xff\xaa\xaa\0\0\xff\xff\0\0)
identifiersColor=@Variant(\0\0\0\x43\x1\xff\xff\0\0\0\0\0\0\0\0)
keywordsColor=@Variant(\0\0\0\x43\x1\xff\xff\0\0UU\xff\xff\0\0)
commentsColor=@Variant(\0\0\0\x43\x1\xff\xff\0\0\x80\x80\x80\x80\0\0)
highlightColor=@Variant(\0\0\0\x43\x1\xff\xff\xff\xff\xff\xff\x80\x80\0\0)
smoothFonts=true
monkeyPath=/Users/bhammond/MonkeyPro67f
blitzmaxPath=



MikeHart(Posted 2013) [#4]
At least HTML5 apps should show up. And Xcode too if you have it installed.

Move Monkey to the Desktop for a test, delete the ini file and start Monkey again. I am on OSX 10.8.2 and never experienced these problems.

It looks to me like it is a permission problem somehow. Maybe you want to let the permissions being repaired on your system.


fictorial(Posted 2013) [#5]
Yeah, it's strange. The list is literally empty.

I dove into the code for Ted and saw that it was trying to run /bin/transcc_$HOST (HOST=macos here).

I tried running that myself and it's not executable.

-rw-r--r-- 1 bhammond staff 1.7M Feb 21 16:12 ./bin/transcc_macos
   ^  ^  ^


The temporary fix is just:
chmod +x bin/transcc_macos


This should be done by the Monkey guys before packaging the 'Product update' zip files.

By the way, it's really nice that the code for Monkey, its modules and tools are available -- I just stumbled upon Ted's code and was pleasantly surprised. To be able to dive in and fix something like this is a godsend.


marksibly(Posted 2013) [#6]
My guess is you've used a 3rd party unzip utility to extract the files, as opposed to Mac OS's built-in unzip utility - these do not appear to 'fix' exec permissions the way the built-in unzip does (I suspect it just chmod +x's everything!).

File permissions are still a bit of an issue - I *love* having everything in one package, but zip does not support file permissions. I think tar.gz does, but it's not as widely supported on Windows/Mac. But perhaps this is OK for 'updates'? More investigation required...


fictorial(Posted 2013) [#7]
The Unarchiver is what I've used for years. First I've seen of this issue.


MikeHart(Posted 2013) [#8]
I just double click on the zip file and use the native unzipper of osx.