Raised This Month: $51 Target: $400
 12% 

pawn-docgen


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 08-29-2015 , 08:17   pawn-docgen
Reply With Quote #1

Ciao guys,

do you know, how up-to-date is pawn-docgen git repo?
I tried to use it on http://www.teamgames.ga/ but it doesn't work as https://sm.alliedmods.net/new-api/ does.

eg. mine doesn't have overview, enums and types.

I used include file from SM git repo, so that should be OK.
Do you guys know, how to make it work like the sm new api site does?
KissLick is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 08-29-2015 , 09:33   Re: pawn-docgen
Reply With Quote #2

Have you tried this version?
https://github.com/alliedmodders/sou...ter/exp/docgen
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 08-29-2015 , 14:53   Re: pawn-docgen
Reply With Quote #3

Quote:
Originally Posted by Bara View Post
Didn't know about that O:-)

Anyway, I tried that and I got a problem :-/

I am using ambuild, so it should be easy, but when I tried to compile it, ambuild gave me error
Code:
[7180] cl /MT /W3 /wd4351 /Oy- /Zi /FS /EHsc /GR- /TP /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE /D_ITERATOR_DEBUG_LEVEL=0 /DWIN32 /
D_WINDOWS /DKE_THREADSAFE /DSOURCEPAWN_VERSION="1.8" /I ..\..\..\..\..\public\amtl\amtl /I ..\..\..\..\..\public\amtl /I ..\..\..\..\include /I ..\..\..\..\include /showI
ncludes /nologo /c D:\alliedmodders\sourcemod\sourcepawn\exp\compiler\tk-evaluator.cpp /Fotk_evaluator.obj
tk-evaluator.cpp
d:\alliedmodders\sourcemod\sourcepawn\exp\compiler\compile-context.h(22) : fatal error C1083: Cannot open include file: 'am-vector.h': No such file or directory
So I added amtl includes via AMBuildScript and tried to compile, but ambuild gave me this error
Code:
[7240] cl /MT /W3 /wd4351 /Oy- /Zi /FS /EHsc /GR- /TP /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /D_CRT_NONSTDC_NO_DEPRECATE /D_ITERATOR_DEBUG_LEVEL=0 /DWIN32 /
D_WINDOWS /DKE_THREADSAFE /DSOURCEPAWN_VERSION="1.8" /I ..\..\..\..\public\amtl\amtl /I ..\..\..\..\public\amtl /I ..\..\..\vm /I ..\..\..\third_party /I ..\..\..\sourcep
awn\include /I ..\..\..\..\public\amtl\amtl /I ..\..\..\..\public\amtl /I ..\..\..\include /I ..\..\..\amtl\include /showIncludes /nologo /c D:\alliedmodders\sourcemod\so
urcepawn\vm\shell.cpp /Foshell.obj
shell.cpp
d:\alliedmodders\sourcemod\sourcepawn\vm\stack-frames.h(35) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
d:\alliedmodders\sourcemod\sourcepawn\vm\stack-frames.h(43) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
And I am not quite sure, what should I do now... :-/
KissLick is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 08-29-2015 , 15:14   Re: pawn-docgen
Reply With Quote #4

Why try you to compile the compiler?
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.
Bara is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 08-29-2015 , 15:39   Re: pawn-docgen
Reply With Quote #5

I try to compile everything in sourcepawn repo, is that wrong?
KissLick is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 08-29-2015 , 21:06   Re: pawn-docgen
Reply With Quote #6

Quote:
Originally Posted by KissLick View Post
I try to compile everything in sourcepawn repo, is that wrong?
No there is nothing wrong, but the devs already provide compiled builds of the repo every time the tree changes...? (Snapshots)
Potato Uno is offline
psychonic

BAFFLED
Join Date: May 2008
Old 08-30-2015 , 08:10   Re: pawn-docgen
Reply With Quote #7

Quote:
Originally Posted by KissLick View Post
I am using ambuild, so it should be easy, but when I tried to compile it, ambuild gave me error
You likely didn't do a recursive clone, so the amtl submodule didn't get checked out.
Quote:
Originally Posted by KissLick View Post
So I added amtl includes via AMBuildScript and tried to compile, but ambuild gave me this error
I haven't looked into the error, but it could likely be due to using a different/newer version of amtl than is pinned with the submodule.
psychonic is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 08-30-2015 , 12:40   Re: pawn-docgen
Reply With Quote #8

Oke, I deleted my local repo and cloned sm repo with --recursive, now sm compiles and so does the sp compiler.
Then I edited sourcepawn AMBuildScript (added 'exp/tools/docparse/AMBuilder' to self.exp_scripts) and docparse AMBuilder (changed KE.libspcomp.binary to SP.libspcomp.binary).
I looked at VoiDeD sourcepawn fork for the changes.

P.S.: Does it work only on new syntax?

P.S.2: Thx for help! :-)

Last edited by KissLick; 08-30-2015 at 12:40.
KissLick is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 08-30-2015 , 15:22   Re: pawn-docgen
Reply With Quote #9

Now I have problems with filling database... When I run generate.py it gives me error
Spoiler

EDIT: I solved that by adding shell=True to subprocess popen, but now I have this error:
PHP Code:
D:\alliedmodders\sourcemod\plugins\include\datapack.inc:177:2notemissing comment for property 'Position'
        
property int Position {
        ^
Traceback (most recent call last):
  
File "generate.py"line 620in <module>
    
main()
  
File "generate.py"line 597in main
    gen
.generate()
  
File "generate.py"line 189in generate
    self
.parse_include(include)
  
File "generate.py"line 236in parse_include
    self
.parse_classes(json['methodmaps'])
  
File "generate.py"line 258in parse_classes
    self
.parse_class(methodmap)
  
File "generate.py"line 299in parse_class
    self
.parse_function(method)
  
File "generate.py"line 484in parse_function
    
'type': function['returnType'],
KeyError'returnType' 

Last edited by KissLick; 08-30-2015 at 15:49.
KissLick is offline
Reply



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 01:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode