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

vscode workspace can use relative path


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AnatalGrowina
BANNED
Join Date: May 2022
Old 10-19-2022 , 08:15   vscode workspace can use relative path
Reply With Quote #1

I want to make a AMX mod X script, this modules are related which game I make, so I am using workspace as configuration. Making compiler, library and output path dependent of each game. my source code has same folder as compiler

I've tried to write ./ and .\\ but it's won't work, vscode still can't find amxxpc.exe, here's my configuration workspace:

{
"folders": [
{
"path": "."
}
],
"settings": {
"amxxpawn.compiler.executablePath": "./amxxpc.exe",
"amxxpawn.compiler.includePaths": [
"./include"
],
"amxxpawn.compiler.outputPath": "../plugins",
"amxxpawn.compiler.outputType": "path"
}
}
amxxpawn.compiler.executablePath still can't figure amxxpc.exe until I wrote full path. since this placed in same folder as source code omegle, I also tried to remove ./ but still can't find it.

Last edited by AnatalGrowina; 11-21-2022 at 07:18.
AnatalGrowina is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-20-2022 , 00:26   Re: vscode workspace can use relative path
Reply With Quote #2

For my relative paths, I use "${fileDirname}" for example, one of my includePaths to include the custom includes for this plugin is "${fileDirname}/include". I also use this for my outputPath ("${fileDirname}/../plugins").

However, I do use a hard coded path for executablePath but the code shows that it should resolve these special variables. Some of the other variables that you can use are:

Code:
${workspaceRoot}
${workspaceRootFolderName}
${file}
${relativeFile}
${fileBasename}
${fileBasenameNoExtension}
${fileDirname}
${fileExtname}
__________________

Last edited by fysiks; 10-20-2022 at 00:32.
fysiks 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 18:46.


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