SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Tools and Files

Reply
 
Thread Tools Display Modes
Old 30/12/2017, 07:29 PM   #11
White_116
High-roller
 
Join Date: Sep 2010
Location: Russia/116
Posts: 1,481
Reputation: 69
Default Re: Visual Studio Code - Updated Pawn Tools for vscode

package.json ->
Quote:
"fileLocation": ["relative", "${workspaceRoot}/gamemodes"],
maybe you need to use it
Quote:
"fileLocation": ["relative", "${workspaceRoot}"],
__________________
White_116 is offline   Reply With Quote
Old 30/12/2017, 07:58 PM   #12
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,943
Reputation: 1468
Default Re: Visual Studio Code - Updated Pawn Tools for vscode

Quote:
Originally Posted by White_116 View Post
package.json ->

maybe you need to use it
Depends where people's compilers and working directories are, everyone has a different setup so it's difficult to create a one-size-fits-all solution.

Once I get back to a windows machine though, I can test it out a bit more.
[HLF]Southclaw is offline   Reply With Quote
Old 31/12/2017, 12:11 AM   #13
Tween73
Banned
 
Join Date: Aug 2014
Posts: 107
Reputation: 0
Default Re: Visual Studio Code - Updated Pawn Tools for vscode

please Your ******* tutorial?
Tween73 is offline   Reply With Quote
Old 31/12/2017, 09:37 AM   #14
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,943
Reputation: 1468
Default Re: Visual Studio Code - Updated Pawn Tools for vscode

Quote:
Originally Posted by Tween73 View Post
please Your ******* tutorial?
sure:

[HLF]Southclaw is offline   Reply With Quote
Old 01/01/2018, 03:53 PM   #15
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,943
Reputation: 1468
Default Re: Visual Studio Code - Updated Pawn Tools for vscode

I've updated the main post with working Windows tasks.json files now, you just have to use a ton of escape characters to properly express the `-;+` and `-(+` flags for the compiler.
[HLF]Southclaw is offline   Reply With Quote
Old 06/01/2018, 07:16 PM   #16
pawnoholic
Big Clucker
 
Join Date: Oct 2017
Posts: 76
Reputation: 3
Default Re: Visual Studio Code - Updated Pawn Tools for vscode

Problem Matcher don't opened included files, bad file address.



Please, fix and update your task.json code.

Add

PHP Code:
"fileLocation": [ "relative""${workspaceRoot}"
__________________
GitHub: @pawnoholic
pawnoholic is offline   Reply With Quote
Old 06/01/2018, 07:54 PM   #17
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,943
Reputation: 1468
Default Re: Visual Studio Code - Updated Pawn Tools for vscode

Quote:
Originally Posted by pawnoholic View Post
Problem Matcher don't opened included files, bad file address.



Please, fix and update your task.json code.

Add

PHP Code:
"fileLocation": [ "relative""${workspaceRoot}"
Unfortunately this is not trivial to fix (I fixed it in sampctl by making all paths absolute).

Errors in your main file are relative paths but errors in included paths are absolute. This is just a problem with the Pawn compiler and if anyone has a way to make all paths come out normalised to absolute, that would be great!

Otherwise, you'll need to choose either `absolute` or `relative` depending on where your errors appear most often. If you use a modular gamemode and your main script entry point is quite minimal, this would be easier.

Alternatively, check out sampctl which fixes this and a ton of other problems with the Pawn build toolchain.
[HLF]Southclaw is offline   Reply With Quote
Old 06/01/2018, 08:12 PM   #18
pawnoholic
Big Clucker
 
Join Date: Oct 2017
Posts: 76
Reputation: 3
Default Re: Visual Studio Code - Updated Pawn Tools for vscode

Quote:
Originally Posted by [HLF]Southclaw View Post
Alternatively, check out sampctl which fixes this and a ton of other problems with the Pawn build toolchain.

Good day, I wanted to use sampctl, unfortunately he is not able to support samp-server adaptation to Criminal Russia package.

I use the zeex pawn compiler last version release and your Pawn Tools application for VS Code.
__________________
GitHub: @pawnoholic
pawnoholic is offline   Reply With Quote
Old 06/01/2018, 11:36 PM   #19
[HLF]Southclaw
High-roller
 
[HLF]Southclaw's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 4,943
Reputation: 1468
Default Re: Visual Studio Code - Updated Pawn Tools for vscode

Quote:
Originally Posted by pawnoholic View Post
Good day, I wanted to use sampctl, unfortunately he is not able to support samp-server adaptation to Criminal Russia package.

I use the zeex pawn compiler last version release and your Pawn Tools application for VS Code.
Hi, I'm glad you find that stuff useful! :)

I would be interested in helping the Russian community with sampctl too. I will investigate support for Criminal Russia, if you would like to help you can post issues on GitHub or PM me here!
[HLF]Southclaw is offline   Reply With Quote
Old 20/01/2018, 09:34 AM   #20
SimonItaly
Huge Clucker
 
SimonItaly's Avatar
 
Join Date: Mar 2010
Location: Italy
Posts: 252
Reputation: 85
Default Re: Visual Studio Code - Updated Pawn Tools for vscode

Has anyone tried to setup this extension with the Linux version of Code?
SimonItaly is offline   Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] PAWN Syntax and Compiler for Visual Studio Code FreAkeD Tutorials 68 12/08/2018 06:21 AM
[Tutorial] Visual Studio Code Compiler Casttiel Lançamentos/Releases 7 17/08/2017 08:18 AM
Can someone make Pawn compiler for Visual Studio Code? DuyDang2412 Scripting Help 11 26/07/2017 11:21 AM
[Tutorial] Visual Studio like an compilator PAWN language Dystans Tutorials 9 17/02/2013 06:43 AM
Visual Studio as the development environment for PAWN Arca Scripting Help 7 28/07/2012 08:18 PM


All times are GMT. The time now is 12:59 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.