Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Hexer10 opened this issue Jun 30, 2022 · 3 comments
Open

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

Hexer10 opened this issue Jun 30, 2022 · 3 comments
Labels

Comments

@Hexer10
Copy link

Hexer10 commented Jun 30, 2022

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 alliedmodders/sourcepawn@451dcb6 the #file directive was removed from the 1.11 compiler.

@Timocop
Copy link
Owner

Timocop commented Jul 3, 2022

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 Timocop added the bug label Jul 3, 2022
@GAMMACASE
Copy link
Contributor

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

@Timocop
Copy link
Owner

Timocop commented Jul 4, 2022

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 Timocop pinned this issue Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants