BasicPawn icon indicating copy to clipboard operation
BasicPawn copied to clipboard

Cannot compile using 1.11 compiler: #file directive was removed.

Open Hexer10 opened this issue 3 years ago • 3 comments

Compiling any file with the sourcemod 1.11 compiler results in this error:

[7/1/2022 1:39:13 AM] User opened a new file: c:\users\matt\documents\test.sp
[7/1/2022 1:39:15 AM] Compiling source started!
[7/1/2022 1:39:15 AM]     SourcePawn Compiler 1.11.0.6905
[7/1/2022 1:39:15 AM]     Copyright (c) 1997-2006 ITB CompuPhase
[7/1/2022 1:39:15 AM]     Copyright (c) 2004-2021 AlliedModders LLC
[7/1/2022 1:39:15 AM]     
[7/1/2022 1:39:15 AM]     C:\users\matt\Temp\a5xutjtp.src(1) : error 031: unknown directive
[7/1/2022 1:39:15 AM]     
[7/1/2022 1:39:15 AM]     1 Error.
[7/1/2022 1:39:15 AM]     
[7/1/2022 1:39:15 AM] Compiling failed! Compiled output file can not be found!

Since https://github.com/alliedmodders/sourcepawn/commit/451dcb6f2c184eba0dd958711eecce056ba01186 the #file directive was removed from the 1.11 compiler.

Hexer10 avatar Jun 30 '22 23:06 Hexer10

Thanks for letting me know. Sadly this is quite bad since BasicPawn uses the #file directive a lot. This change will also break the BasicPawns 'poor mans debugger' as well. I have to rewrite a lot to make BasicPawn work with new SourceMod compilers. But as of right now i have other big projects im working on which are also very time consuming.

Honestly i dont know why they did that change. Seems rather unnecessary to me. This also makes me question, what do they remove next? Changes like these just makes me wait till they finally finish the whole thing rather than constantly patching BasicPawn up.

Timocop avatar Jul 03 '22 09:07 Timocop

1.11 hit stable today so doubt there would be any major changes to the sp itself until 1.12

GAMMACASE avatar Jul 03 '22 11:07 GAMMACASE

As for now, id recommend using 1.11.0-git6742 SourcePawn compiler that still works with BasicPawn until i fix this issue someday or they revert it. Seems like this change published in August last year and only now someone notified me about this.

Timocop avatar Jul 04 '22 10:07 Timocop