Raised This Month: $32 Target: $400
 8% 

Sublime Text no build output


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CarmosKarran
New Member
Join Date: Jul 2022
Old 10-04-2022 , 01:42   Sublime Text no build output
Reply With Quote #1

Using build option does not give any output except of

[Finished in 0.4s]
I didn't configure any c++.sublime-build file, I just installed C++ compiler and added it to the system path. It should work out of the box, but it is not. I also use Pawn language very often, but I had to configure my pawn.sublime-build file in order to work. There is a similar problem, after building if there are some errors it says:

[Finished in 0.4s]
But if the code has no errors, it says:

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

Header size: 836 bytes
Code size: 5048 bytes
Data size: 2148 bytes
Stack/heap size: 16384 bytes; estimated max. usage=883 cells (3532 bytes)
Total requirements: 24416 bytes
Done.
[Finished in 0.1s]
It would by nice if sublime could just show the output from compiler.

Here's my Pawn.sublime-build

{
"cmd": ["amxxpc.exe", "$file"],
// "cmd": ["compile.exe"],
// "file_regex": "^[ ]*File "(...*?)", line ([0-9]*)",
"file_regex": "(.*)\\((\\d+)\\)\\s*:\\s*()(.*)",
"selector": ["source.pwn", "source.pawn", "source.sma", "source.inc"],
"path": "Extensions\\pawn\"
}
I tried diffrent versions of the "file_regex" and also without it, just like in tutorials, but it just doesn't show output if code has an error.

On the other hand, Python shows up an output, like this:

print"test")
^
SyntaxError: invalid syntax
[Finished in 0.2s with exit code 1]
[shell_cmd: python -u "C:\Users\Michał\OneDrive\Documents\test. py"]
[dir: C:\Users\Michał\OneDrive\Documents]
[path: C:\Program Files (x86)\ActiveState Komodo Edit 9\;C:\Python34\;C:\Python34\Scripts;C:\Progra mData\Oracle\Java\javapath;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C: \Windows\System32\Wbem;C:\Windows\System32\Wi ndowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\MinGW\bin]
And here's output with corrected code:

test
[Finished in 0.1s]
How can I get output from C++ and Pawn files? What I am doing wrong? I use MinGW for C++ and amxxpc.exe (AMX MOD X COMPILER) for pawn.
CarmosKarran is offline
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

Forum Jump


All times are GMT -4. The time now is 13:07.


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