Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run task.json on linux #13

Closed
0x1E4 opened this issue Aug 11, 2019 · 5 comments
Closed

Can't run task.json on linux #13

0x1E4 opened this issue Aug 11, 2019 · 5 comments

Comments

@0x1E4
Copy link

0x1E4 commented Aug 11, 2019

I trying so hard changing anything, and it still not working.
Please tell me how to compile using tasks.json on linux (with pawncc)

@Southclaws
Copy link
Owner

I can't help without any information. Please elaborate on the issue you're running into.

@0x1E4
Copy link
Author

0x1E4 commented Aug 14, 2019

Okay..

Here is my detailed information:
Operating System: Manjaro (Arch Linux)
Pawn version: 3.0.19

I trying to change some settings like adding parameter -Z or -d3, and it shows me YSI error, then i change include folder from pawno to my samp03 folder and the error change differently, then i change my direction to ../include and still error.

Do you have any solution for this?

@Southclaws
Copy link
Owner

Southclaws commented Aug 15, 2019

Pawn version: 3.0.19

Do you mean 3.10.9? There is no 3.0.19 that I know of.

I trying to change some settings like adding parameter -Z or -d3

-Z+ is necessary with the community compiler, read more here: https://github.com/pawn-lang/compiler/#how-to-use
And d3 is purely for generating debug code, it will make absolutely no difference to the compile-time invocation, warnings/errors or include directories.

it shows me YSI error

What error?

You need to show your directory setup and your tasks.json file as well as the actual problem you're having, it's still guesswork at this point.

It might be worth first just writing a basic shell script to invoke the compiler with your desired options then convert that into the tasks.json format with command and args.

@0x1E4
Copy link
Author

0x1E4 commented Aug 16, 2019

Sorry i forgot to put tasks.json:

{
    "version": "2.0.0",
    "tasks": [
      {
        "label": "build-normal",
        "type": "shell",
        "command": "pawncc",
        "args": ["\"${relativeFile}\"", "-iinclude", "\"-;+\"", "\"-(+\"", "-Z+"],
        "group": {
          "kind": "build",
          "isDefault": true
        },
        "isBackground": false,
        "presentation": {
          "reveal": "silent",
          "panel": "dedicated"
        },
        "problemMatcher": "$pawncc"
      }
    ]
  }

About the YSI error i got:
YSI Error not found /YSI Code/Y_timers

then if i change directoy of -i
YSI Error not found y_natives

Then i remove -Z / -Z+

non string passing...
foreach not found...
Itter_ not found...
and much more error (1k total warning and error)

But if i trying compile on windows, it's fine, nothing happen.

@ADRFranklin
Copy link
Collaborator

Closing this as an old stale issue, please reopen if you are still having this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants