Vs Code Não Compila!! - Dark_m - 07/07/2022
Boa Noite, uso windows, e assisti o vídeo do chainksain e outros pra compilar pawn no vs code... Porém tá dando o seguinte erro:
C:\Users\PERFECTA\Desktop\Programing\pawno\pawncc.exe : O termo 'C:\Users\PERFECTA\Desktop\Programing\pawno\pawncc.exe' não é reconhecido como nome de cmdlet,
função, arquivo de script ou programa operável. Verifique a grafia do nome ou, se um caminho tiver sido incluído, veja se o caminho está correto e tente
novamente.
No linha:1 caractere:1
+ C:\Users\PERFECTA\Desktop\Programing\pawno\pawncc.exe 'c:\Users\PERFE ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (C:\Users\PERFEC...awno\pawncc.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Como posso resolver??
RE: Vs Code Não Compila!! - LouzinDS - 23/07/2022
Opa mano tenta usar esta tasks.json:
Código: {
"version": "2.0.0",
"tasks": [
{
"label": "Compile",
"type": "shell",
"command": "${workspaceRoot}/pawno/pawncc.exe",
"args": ["${file}", "--%", "-Dgamemodes", "-;+", "-(+", "-O1"],
"group": {
"kind": "build",
"isDefault": true
},
"isBackground": false,
"presentation": {
"reveal": "silent",
"panel": "dedicated"
},
"problemMatcher": "$pawncc"
},
{
"label": "Compile-Debug",
"type": "shell",
"command": "${workspaceRoot}/pawno/pawncc.exe",
"args": ["${file}", "--%", "-Dgamemodes", "-;+", "-(+", "-d3", "-O1"],
"group": {
"kind": "build",
"isDefault": true
},
"isBackground": false,
"presentation": {
"reveal": "silent",
"panel": "dedicated"
},
"problemMatcher": "$pawncc"
},
{
"label": "ASM",
"type": "shell",
"command": "${workspaceRoot}/pawno/pawncc.exe",
"args": ["${file}", "--%", "-Dgamemodes", "-;+", "-(+", "-a"],
"group": {
"kind": "build",
"isDefault": true
},
"isBackground": false,
"presentation": {
"reveal": "silent",
"panel": "dedicated"
},
"problemMatcher": "$pawncc"
},
{
"label": "Reference",
"type": "shell",
"command": "${workspaceRoot}/pawno/pawncc.exe",
"args": ["${file}", "--%", "-Dgamemodes", "-;+", "-(+", "-r"],
"group": {
"kind": "build",
"isDefault": true
},
"isBackground": false,
"presentation": {
"reveal": "silent",
"panel": "dedicated"
},
"problemMatcher": "$pawncc"
},
{
"label": "Debug-Reference",
"type": "shell",
"command": "${workspaceRoot}/pawno/pawncc.exe",
"args": ["${file}", "--%", "-Dgamemodes", "-;+", "-(+", "-d3", "-r", ],
"group": {
"kind": "build",
"isDefault": true
},
"isBackground": false,
"presentation": {
"reveal": "silent",
"panel": "dedicated"
},
"problemMatcher": "$pawncc"
}
]
}
RE: Vs Code Não Compila!! - VitorPDW - 23/07/2022
(23/07/2022 17:18)LouzinDS Escreveu: Opa mano tenta usar esta tasks.json:
Código: {
"version": "2.0.0",
"tasks": [
{
"label": "Compile",
"type": "shell",
"command": "${workspaceRoot}/pawno/pawncc.exe",
"args": ["${file}", "--%", "-Dgamemodes", "-;+", "-(+", "-O1"],
"group": {
"kind": "build",
"isDefault": true
},
"isBackground": false,
"presentation": {
"reveal": "silent",
"panel": "dedicated"
},
"problemMatcher": "$pawncc"
},
{
"label": "Compile-Debug",
"type": "shell",
"command": "${workspaceRoot}/pawno/pawncc.exe",
"args": ["${file}", "--%", "-Dgamemodes", "-;+", "-(+", "-d3", "-O1"],
"group": {
"kind": "build",
"isDefault": true
},
"isBackground": false,
"presentation": {
"reveal": "silent",
"panel": "dedicated"
},
"problemMatcher": "$pawncc"
},
{
"label": "ASM",
"type": "shell",
"command": "${workspaceRoot}/pawno/pawncc.exe",
"args": ["${file}", "--%", "-Dgamemodes", "-;+", "-(+", "-a"],
"group": {
"kind": "build",
"isDefault": true
},
"isBackground": false,
"presentation": {
"reveal": "silent",
"panel": "dedicated"
},
"problemMatcher": "$pawncc"
},
{
"label": "Reference",
"type": "shell",
"command": "${workspaceRoot}/pawno/pawncc.exe",
"args": ["${file}", "--%", "-Dgamemodes", "-;+", "-(+", "-r"],
"group": {
"kind": "build",
"isDefault": true
},
"isBackground": false,
"presentation": {
"reveal": "silent",
"panel": "dedicated"
},
"problemMatcher": "$pawncc"
},
{
"label": "Debug-Reference",
"type": "shell",
"command": "${workspaceRoot}/pawno/pawncc.exe",
"args": ["${file}", "--%", "-Dgamemodes", "-;+", "-(+", "-d3", "-r", ],
"group": {
"kind": "build",
"isDefault": true
},
"isBackground": false,
"presentation": {
"reveal": "silent",
"panel": "dedicated"
},
"problemMatcher": "$pawncc"
}
]
}
Mano coloquei esse código e mesmo assim deu o mesmo erro! sabe outra forma de resolver?
RE: Vs Code Não Compila!! - xbruno1000x - 23/07/2022
Tente seguir esse vídeo:
|