• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Server] Compile GM with VSCODE on Linux
#9
(2021-06-17, 10:08 PM)Pinch Wrote: The f**k y'all with this useless spam..

Install Southclaw's Pawn Tools (code extension) and hit CTRL SHIFT B and choose sampctl

Edit: Or u can create a new build system, also ctrl shift b


I'm trying:
(2021-04-20, 06:20 AM)annety Wrote:
I've create a new folder pawno with the includes and that files from https://github.com/pawn-lang/compiler/re...g/v3.10.10

Code:
[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]ls pawno[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]bin? include? lib? pawnc-3.10.10-linux (1).tar.gz[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]


ls pawno/bin
Code:
[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]pawncc? pawndisasm[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]


ls pawno/lib
Code:
[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]libpawnc.so[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]


---


So i tried:
keybindings.json
Code:
[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]{ "key": "f5", "command": "workbench.action.tasks.build" }[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]


sampserver/.vscode/task.json
Code:
[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]{[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? "version": "1.0.0",[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? "tasks": [[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? {[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? "label": "build",[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? "type": "shell",[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? "command": "${workspaceRoot}/pawno/bin/pawncc",[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? "args": [
? ? ? ? "${file}",
? ? ? ? "-D${workspaceRoot}/gamemodes",
? ? ? ? "-i${workspaceRoot}/pawno/include",
? ? ? ? "'-;'",
? ? ? ? "'-('",
? ? ? ? "'-d3'"
? ? ? ],[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? "group": {[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? "kind": "build",[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? "isDefault": true[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? },[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? "isBackground": false,[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? "presentation": {[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? "reveal": "always",[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? "panel": "dedicated"[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? },[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? "problemMatcher": "$pawncc"[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? }[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ][/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]}[/font][/size][/color]

[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]


---

but when i try to press F5 in new.pwn:

it shows this:
Code:
[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]> Executing task: /home/anty/Documents/sampserver/pawno/bin/pawncc /home/anty/Documents/sampserver/gamemodes/new.pwn -D/home/anty/Documents/sampserver/gamemodes -i/home/anty/Documents/sampserver/pawno/include '-;' '-(' '-d3' <[/font][/size][/color]

[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]Pawn compiler 3.10.20150531? ? ? ? ? ? ? ? ? ? Copyright (c) 1997-2006, ITB CompuPhase[/font][/size][/color]

[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]Usage:? pawncc <filename> [filename...] [options][/font][/size][/color]

[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]Options:[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -A<num>? alignment in bytes of the data segment and the stack[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -a? ? ? output assembler code[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -C[]? compact encoding for output file (default=)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -c<name> codepage name or number; e.g. 1252 for Windows Latin-1[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -d<num>? debugging level (default=-d1)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? ? ? 0? ? no symbolic information, no run-time checks[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? ? ? 1? ? run-time checks, no symbolic information[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? ? ? 2? ? full debug information and dynamic checking[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? ? ? 3? ? same as -d2, but implies -O0[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -e<name> set name of error file (quiet compile)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -i<name> path for include files[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -l? ? ? create list file (preprocess only)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -o<name> set base name of (P-code) output file[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -O<num>? optimization level (default=-O1)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? ? ? 0? ? no optimization[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? ? ? 1? ? JIT-compatible optimizations only[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? ? ? 2? ? full optimizations[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -p<name> set name of "prefix" file[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -r[name] write cross reference report to console or to specified file[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -S<num>? stack/heap size in cells (default=4096)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -s<num>? skip lines from the input file[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -t<num>? TAB indent size (in character positions, default=8)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -v<num>? verbosity level; 0=quiet, 1=normal, 2=verbose (default=1)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -w<num>? disable a specific warning by its number[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -X<num>? abstract machine size limit in bytes[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -XD<num> abstract machine data/stack size limit in bytes[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -Z[]? run in compatibility mode (default=-)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -\? ? ? use '\' for escape characters[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -^? ? ? use '^' for escape characters[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -;[]? require a semicolon to end each statement (default=-)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? -([]? require parantheses for function invocation (default=-)[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? sym=val? define constant "sym" with value "val"[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]? ? ? ? sym=? ? define constant "sym" with value 0[/font][/size][/color]

[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]Options with a value may optionally separate the value from the option letter[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]with a colon (":") or an equal sign ("="). That is, the options "-d0", "-d=0"[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]and "-d:0" are all equivalent.[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]The terminal process terminated with exit code: 3[/font][/size][/color]

[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]Terminal will be reused by tasks, press any key to close it.[/font][/size][/color]
[color=#333333][size=small][font=Tahoma, Verdana, Arial, sans-serif]


what i'm doing wrong?



But i'm doing something wrong and idk what to do, but i bet u don't do too
Thats why i'm asking to someone with more experience to help
  Reply


Messages In This Thread
Compile GM with VSCODE on Linux - by annety - 2021-04-02, 06:31 PM
RE: Compile GM with VSCODE on Linux - by Awide - 2021-04-03, 09:55 AM
RE: Compile GM with VSCODE on Linux - by annety - 2021-04-10, 02:25 AM
RE: Compile GM with VSCODE on Linux - by Awide - 2021-04-10, 11:32 AM
RE: Compile GM with VSCODE on Linux - by annety - 2021-04-20, 06:20 AM
RE: Compile GM with VSCODE on Linux - by annety - 2021-04-28, 11:04 AM
RE: Compile GM with VSCODE on Linux - by annety - 2021-06-17, 10:05 PM
RE: Compile GM with VSCODE on Linux - by Pinch - 2021-06-17, 10:08 PM
RE: Compile GM with VSCODE on Linux - by annety - 2021-06-20, 12:43 AM
RE: Compile GM with VSCODE on Linux - by Kwarde - 2021-06-20, 10:57 AM
RE: Compile GM with VSCODE on Linux - by Kwarde - 2021-07-10, 09:47 AM
RE: Compile GM with VSCODE on Linux - by hiwyn - 2021-09-29, 01:05 AM
RE: Compile GM with VSCODE on Linux - by Kwarde - 2021-09-29, 07:22 PM
RE: Compile GM with VSCODE on Linux - by hiwyn - 2021-10-02, 12:27 PM
RE: Compile GM with VSCODE on Linux - by hiwyn - 2021-10-06, 11:39 AM
RE: Compile GM with VSCODE on Linux - by Radical - 2021-10-11, 03:22 PM
RE: Compile GM with VSCODE on Linux - by hiwyn - 2021-10-15, 04:52 PM
RE: Compile GM with VSCODE on Linux - by hiwyn - 2021-10-18, 07:41 PM
RE: Compile GM with VSCODE on Linux - by hiwyn - 2021-10-20, 11:57 PM
RE: Compile GM with VSCODE on Linux - by Banditul - 2021-10-21, 05:52 AM
RE: Compile GM with VSCODE on Linux - by hiwyn - 2021-10-22, 05:22 AM
RE: Compile GM with VSCODE on Linux - by hiwyn - 2021-10-25, 01:39 AM

Forum Jump: