Go Back   kirupaForum > Flash > ActionScript 3

Reply
 
Thread Tools Display Modes
Old 11-19-2009, 08:37 AM   #1
IqAndreas
Mr. #1009
Location Värmland, Sweden (ex Illinois, USA)

Posts 2,069
ASDoc hates Vector... "Type not found..."

Since I do not enjoy typing in insanely long path names in command prompts, I decided to use FlashDevelop's "ActionScript Documentation Generator".

However, after I click "Generate", the ASDoc exe gives the following error message:
Code:
C:\Programming\Flash\Projects\DebugText\Documentation>"C:\Program Files\Adobe\Adobe Flex SDK 3\bin\asdoc.exe" -doc-sources "C:\Programming\Flash\Projects\DebugText\Class\aRenberg\utils" -main-title "DebugText - lightweight, onscreen, visual tracing tool" -output "C:\Programming\Flash\Projects\DebugText\Documentation" -external-library-path "C:\Program Files\Adobe\Adobe Flex SDK 3\frameworks\libs\player\10\playerglobal.swc" 
Loading configuration file C:\Program Files\Adobe\Adobe Flex SDK 3\frameworks\flex-config.xml
C:\Programming\Flash\Projects\DebugText\Class\aRenberg\utils\DebugText.as(81): col: 25 Error: Type was not found or was not a compile-time constant: Vector.
        private var textArray:Vector.<String> = new Vector.<String>();
                              ^
C:\Programming\Flash\Projects\DebugText\Class\aRenberg\utils\DebugText.as(81): col: 47 Error: Access of undefined property Vector.
        private var textArray:Vector.<String> = new Vector.<String>();
                                                    ^
C:\Programming\Flash\Projects\DebugText\Class\aRenberg\utils\DebugText.as(81): col: 47 Error: Access of undefined property Vector.
        private var textArray:Vector.<String> = new Vector.<String>();
                                                    ^
The code runs just fine when testing it, but when generating ASDoc, it gives me the error.

I tried adding that "-external-library-path" line by the recommendation of a blog entry, but it doesn't seem to make a difference.
http://www.daveoncode.com/2009/05/04...air-framework/

Google only gives me one other site, which doesn't give me anything.


Any ideas?
Attached Thumbnails
Click image for larger version

Name:	ASDoc Generator Problem.jpg
Views:	9
Size:	69.3 KB
ID:	51185  

__________________
Give someone code, and they will have code for a day.
Teach someone to code, and they will have code for life.


Support a starving developer. Visit my blog... (or the accompanying Twitter)
http://iqandreas.blogspot.com/
IqAndreas is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?

Old 11-19-2009, 09:32 AM   #2
wvxvw
Holosuite User
* Be sure to add proper playerglobals.swc to the classpath.
* If it still cannot find it - copy the intrinsic for Vector class from FD/Library folder and add it to your project in the root folder... however, in such case ASDocs may try to document it too...

__________________

I support FlashDevelop (the .NET open source editor for Flash and web developers)
couchsurfing if you need it
wvxvw is offline   Reply With Quote
Old 11-19-2009, 10:11 AM   #3
IqAndreas
Mr. #1009
Location Värmland, Sweden (ex Illinois, USA)

Posts 2,069
Quote:
Originally Posted by wvxvw View Post
* Be sure to add proper playerglobals.swc to the classpath.
* If it still cannot find it - copy the intrinsic for Vector class from FD/Library folder and add it to your project in the root folder... however, in such case ASDocs may try to document it too...
Tried both options. Neither worked. The first one gave the same error message, the second one gave a different one:
Code:
C:\Programming\Flash\Projects\DebugText\Documentation>"C:\Program Files\Adobe\Adobe Flex SDK 3\bin\asdoc.exe" -doc-sources "C:\Programming\Flash\Projects\DebugText\Class" -main-title "DebugText - lightweight, onscreen, visual tracing tool" -output "C:\Programming\Flash\Projects\DebugText\Documentation" 
Loading configuration file C:\Program Files\Adobe\Adobe Flex SDK 3\frameworks\flex-config.xml
C:\Programming\Flash\Projects\DebugText\Class\Vector.as(4): col: 21 Error: Syntax error: expecting leftbrace before dotlessthan.
    public class Vector.<T>
                       ^
I attached the image of which fields are filled out. Could I be doing something wrong?

It gives me errors even if I remove "Vector" from "exclude classes".
Attached Thumbnails
Click image for larger version

Name:	ASDoc Generator Problem2.jpg
Views:	2
Size:	62.1 KB
ID:	51186  

__________________
Give someone code, and they will have code for a day.
Teach someone to code, and they will have code for life.


Support a starving developer. Visit my blog... (or the accompanying Twitter)
http://iqandreas.blogspot.com/
IqAndreas is offline   Reply With Quote
Old 11-19-2009, 10:21 AM   #4
wvxvw
Holosuite User
It looks like this is an older version of ASDocs, maybe it just doesn't understand Vector's syntax, maybe try SDK 4.X?

__________________

I support FlashDevelop (the .NET open source editor for Flash and web developers)
couchsurfing if you need it
wvxvw is offline   Reply With Quote
Old 11-19-2009, 06:15 PM   #5
IqAndreas
Mr. #1009
Location Värmland, Sweden (ex Illinois, USA)

Posts 2,069
That worked, wvxvw! Many thanks. I usually avoid using betas in release as the chances of users actually having that release downloaded is rare, but since all ASDoc does is generate HTML files, my rules no longer apply.

In case anyone stumbles upon this, here is the (current) link to download Flex 4 SDK Beta:
http://opensource.adobe.com/wiki/dis...ownload+Flex+4

__________________
Give someone code, and they will have code for a day.
Teach someone to code, and they will have code for life.


Support a starving developer. Visit my blog... (or the accompanying Twitter)
http://iqandreas.blogspot.com/
IqAndreas is offline   Reply With Quote
Old 04-07-2010, 08:06 PM   #6
aaaidan
Registered User
Location Dunedin, New Zealand

Posts 5
There's also ASDocr?
aaaidan is offline   Reply With Quote
Old 04-07-2010, 09:07 PM   #7
aaaidan
Registered User
Location Dunedin, New Zealand

Posts 5
I solved the "Type was not found or was not a compile-time constant: Vector" issue by upgrading to Flex 4 beta, and setting -compiler.strict=false on the commandline. Not sure which fixed it, but there ya go.
aaaidan is offline   Reply With Quote
Reply

Tags
asdoc, compiletime, error, flashdevelop, vector


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:48 AM.

SHARE:

SUPPORTERS:

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com