[BU01] Introduction to running tools with Sublime Text Build Systems

  Рет қаралды 6,237

OdatNurd - Sublime Text Tutorials

OdatNurd - Sublime Text Tutorials

Күн бұрын

Пікірлер: 24
@abdulachik
@abdulachik 3 жыл бұрын
thank you very much man, great refresher and i did learned a couple of things too
@OdatNurd
@OdatNurd 3 жыл бұрын
Awesome!
@klinebottle
@klinebottle Жыл бұрын
I appreciate the content, but I was overall confused by this. To start, the definition: "a simple configuration file that tells sublime that in a particular situation it should run a particular program to produce a particular action" tells me almost nothing. What is the expected result or class of results? The config file example, I see no such file in my installation. Where are they located? When I run R's build, it just gives an error that RScript isn't found. I found Sublime files installed in at least 3 places (AppData\Roaming\Sublime Text, AppData\Local\Sublime Text, and Program Files\Sublime Text), but I don' t see the build config files anywhere, nor do I see the location documented in their help or in the (long) forum thread. I hope this feedback is constructive.
@ianthehunter3532
@ianthehunter3532 Жыл бұрын
I can't get the word wrap in the build window to go away. I've tried word_wrap, and wrap_width, but neither work.
@OdatNurd
@OdatNurd Жыл бұрын
When it comes to build systems, the global preferences for what the word wrap are set to are not followed; instead, the sublime-build file needs to have a "word_wrap": false in it. If you're creating your own builds, you can add that. If you're using an existing build, you will need to create a new build based on the one you're using.
@ivanlegranbizarro8102
@ivanlegranbizarro8102 3 жыл бұрын
Sorry to bother you with my question, but I've only been using Sublime Text 4 for a month, I love it (I even bought the xD license). There's just one thing I can't configure my way: Do you know how to make it so that when I open a project or workspace, Sublime doesn't open a new blank tab as well? It frustrates me that when closing the project I always have to close another empty Sublime window as well. Thanks for your videos. They are very helpful
@ivanlegranbizarro8102
@ivanlegranbizarro8102 3 жыл бұрын
I found the solution: For those who may have the same issue, "keep_focus": false solves the problem. So sorry for the inconvenience.
@OdatNurd
@OdatNurd 3 жыл бұрын
No inconvenience at all! Sorry for the late reply here, KZbin doesn't send me notifications sometimes. Glad you got your problem sorted out though. I assume you're using LaTeX tools or similar?
@ivanlegranbizarro8102
@ivanlegranbizarro8102 3 жыл бұрын
@@OdatNurd Yes. Thanks for your interest! Now, yes; never has a code editor worked better for me
@khomo12
@khomo12 2 жыл бұрын
Great!
@thomas_1611
@thomas_1611 Жыл бұрын
Hey there, I've been following your videos on Sublime and Terminus. I have a question for you: I installed Terminus and made two build-systems: one for C++ and one for Java. The build systems are nearly identical except for the compiler specific details. The goal is to use terminus to open a new pane to the right of the main coding tab. What's puzzling me is that the two systems behave differently. The Java build system behaves as expected and opens a Terminus tab in a pane to the right of the coding text. But the C++ build-system moves the open .cpp file to the right side pane and then opens Terminus below, executing the code. Any idea what I'm missing? Here are the two build-systems: JAVA: { "target": "terminus_open", "cancel": "terminus_cancel_build", "post_window_hooks": [ ["carry_file_to_pane", {"direction": "right"}] ], "focus": true, "title": "Java Build Results", "auto_close": false, "timeit": true, "working_dir": "$file_path", "shell_cmd": " cd $file_path", "shell_cmd": "javac \"$file\" && java \"$file_base_name\"", "file_regex": "^(...*?):([0-9]*):?([0-9]*)", "selector": "source.java", } C++: { "target": "terminus_exec", "cancel": "terminus_cancel_build", "post_window_hooks": [ ["carry_file_to_pane", {"direction": "right"}] ], "focus": true, "title": "C++ Build Results", "auto_close": false, "timeit": true, "shell_cmd": "g++ \"${file}\" -o \"${file_path}/${file_base_name}\" && \"${file_path}/${file_base_name}\"", "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", "working_dir": "${file_path}", "selector": "source.c++", }
@thomas_1611
@thomas_1611 Жыл бұрын
lol as soon as I posted this question the answer became clear! The problem is that I was using "target": "terminus_exec" instead of "terminus_open" in the C++ build-system.
@OdatNurd
@OdatNurd Жыл бұрын
Haha, glad you got it sorted!
@brianhendrix
@brianhendrix 11 ай бұрын
I'm not able to find a way to make a build system for YAML which also integrates Termius as my SSH tool. Any help is appreciated.
@OdatNurd
@OdatNurd 11 ай бұрын
What sort of tool are you trying to run?
@brianhendrix
@brianhendrix 11 ай бұрын
@@OdatNurd I write a LOT of ansible playbooks but I've always done it using "vim" logged into my ansible control server via Termius. I use sublime as a text editor only but seeing some videos come across my screen I noticed I can edit YAML files in sublime and test / run them via Termius.
@brianhendrix
@brianhendrix 11 ай бұрын
@@OdatNurd I like sublime and I LOVE Termius. However, I've never learned to use sublime in any more advanced way other than as a text editor. I'd like to take advantage of it's checking YAML code, and, if possible, running the code via connection to Termius, if that's possible.
@OdatNurd
@OdatNurd 11 ай бұрын
A build can execute any command, so if you know what command you could run from just a regular terminal in order to run what you want to run, you should be able to use SSH to run that from a bill because SSH can connect and execute a command remotely. For the other part of your question, in order to check for problems in such files you would need an LSP server for that. I'm not sure offhand if there's one for yaml, but the one for json might cover that
@SteS
@SteS 3 жыл бұрын
Is it possible to build sublime text python code for a simple on file python plugin lets says?
@OdatNurd
@OdatNurd 3 жыл бұрын
I'm not quite sure what you're asking, but plugins have a lot of power when it comes to Sublime in general, and you can indeed augment build systems with them.
@SteS
@SteS 3 жыл бұрын
@@OdatNurd I mean for plugin development for sublime text itself. Can they be built to test them? If they can't then how are ST plugins tested?
@OdatNurd
@OdatNurd 3 жыл бұрын
@@SteS Plugins are created and loaded directly inside of Sublime, generally speaking, since they need to take advantage of it's API to do most things. I've never used it myself, but if you're interested in it there is a UnitTesting package that you can use to help test your package out as well:packagecontrol.io/packages/UnitTesting
@yt_prakhartiwari0
@yt_prakhartiwari0 3 жыл бұрын
Hey Odatnurd, I think you should improve your discord server and focus on it more, it can help us very much! If you want then I can make useful channels for your server and manage them!! Also pls tell me if you want more audience, because I can design ATTRACTIVE KZbin Thumbnails for your channel!! And Video Thumbnails are very important because a user's attention is caught by that only. I am waiting for your reply. One Of Your old subscribers
@OdatNurd
@OdatNurd 3 жыл бұрын
If you have suggestions for channels that would be beneficial to the discord, I'm all ears!
[BU02] How to easily create your first Sublime Text build system
9:47
OdatNurd - Sublime Text Tutorials
Рет қаралды 11 М.
[PPR06] Terminus
14:00
OdatNurd - Sublime Text Tutorials
Рет қаралды 28 М.
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29
Friends make memories together part 2  | Trà Đặng #short #bestfriend #bff #tiktok
00:18
Wait for the last one 🤣🤣 #shorts #minecraft
00:28
Cosmo Guy
Рет қаралды 12 МЛН
Он улетел, но обещал вернуться...
00:30
ПРЕМИЯ ДАРВИНА
Рет қаралды 4,7 МЛН
[MG05] Introduction to the new features in Sublime Text 4!
32:32
OdatNurd - Sublime Text Tutorials
Рет қаралды 10 М.
[CQ32] Make any build system interactive with Terminus!
29:06
OdatNurd - Sublime Text Tutorials
Рет қаралды 37 М.
[BU03] Three easy ways to get Sublime to automatically select your custom build
9:21
OdatNurd - Sublime Text Tutorials
Рет қаралды 2,2 М.
[P101-01] How to get started writing plugins for Sublime Text
20:02
OdatNurd - Sublime Text Tutorials
Рет қаралды 7 М.
[CQ04] Build System Basics
11:45
OdatNurd - Sublime Text Tutorials
Рет қаралды 12 М.
How I would learn to code (if I could start over)
13:27
Tina Huang
Рет қаралды 3,3 МЛН
The Best Sublime Text 3 Settings and Packages
10:59
Tech With Tim
Рет қаралды 240 М.
Sublime Text 3 Setup - Most Important Packages
20:06
Alessandro “Alecaddd” Castellani
Рет қаралды 483 М.
[MG01] How to get started using Sublime Text 4
18:33
OdatNurd - Sublime Text Tutorials
Рет қаралды 42 М.
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29