View Single Post
xtance
Junior Member
Join Date: Feb 2018
Old 08-16-2021 , 12:45   Re: [RELEASE | EDITOR] SourcePawn for Visual Studio Code
Reply With Quote #20

Hello, please help with
"Not a .sp file, aborting"
When trying to compile .sp file

Code:
    "sourcepawn.MainPath": "D:\\Server\\scripting\\",
    "sourcepawn.outputDirectoryPath": "D:\\Server\\scripting\\compiled\\",
    "sourcepawn.SourcemodHome": "D:\\Server\\scripting\\include\\",
    "sourcepawn.SpcompPath": "D:\\Server\\scripting\\spcomp.exe",
UPD:
Turns out I needed to right-click in editor and choose "SM Set current file as main", then it works
But I have a question
Can I compile a file without setting as main?
I have tons of .sp in my /scripting folder, and I used to that setup, since most plugins are one-file anyway

Last edited by xtance; 08-16-2021 at 12:48.
xtance is offline