Sublime Text no build output
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. Thank you in advance |
Re: Sublime Text no build output
Install the AmxxEditor package for sublime.
https://forums.alliedmods.net/showthread.php?t=293376 |
Re: Sublime Text no build output
Of course you need to replace the path
Save this file and close Sublime Text 2 Now navigate to AppData/Roaming/Sublime Text 2/Packages/User Open up the .sublime-keymap omegle.love file based omegle.2yu.co on your operating system |
Re: Sublime Text no build output
Hi
I'm new, and I'm doing C on Sublime 3. I am trying to get my program to run in a console window post build. I followed a tutorial in which you put code into a file and then select that code through the build systems. But for some reason, it still only outputs to the console in Sublime. Any idea of what im doing wrong? This is the code that was supposed to be pasted into the build systems file " { "cmd" : "gcc $file_name -o ${file_base_name} && ${file_base_name}", "selector" : "source.c", "shell": true, "working_dir" : "$file_path" } " Thanks in advance omeglz, I'm fumbling a lot. |
| All times are GMT -4. The time now is 20:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.