How to run Julia project from GitHub in VS Code? - github

Could someone please tell me how one could run a project downloaded from github written in Julia in VS Code? I tried Executing the .jl files in REPL by right clicking on the file and clicking on "Execute File in REPL" but nothing.
I also tried "Activating the Environment" of the src file, and still nothing.
Any and all help would be highly appreciated.

You open the file you wish to run (you must know which one it is)
In the start menu you select "Run -> Run Without Debugging" or press "Ctrl+F5"

Related

Unity does not open scripts using vscode, even tho it is set as an external text editor

So becouse of my visual studio 2017 trial is about to end, i decided to switch to vs code and make a new project. The problem is that i cant open any scripts by double-clicking in that new project using vs code. Simply nothing happens. When i go to my older project and try to open scripts there using vscode everything works fine. When i try to create new projects the problem with scripts not opening persists.
Both of the projects run on the same unity version, and both of them have vscode set as an external script editor in the preferences. Task manager doesnt show anything related to vscode.
Thanks for any help!
I had same problem where it opened up VS but not the exact script I was trying to open. I found out I had to 'reset argument' under "Edit--> Preferences --> External Tools" and just press reset argument.
Or just copy my line below:
"$(ProjectPath)" -g "$(File)":$(Line):$(Column)
External tools
You need to change your external editor to VsCode.
Go to Edit -> Preferences -> External tools
Click on the External Script Editor and browse for vscode.

How to run system shell/terminal inside Eclipse?

I am using Eclipse Neon, and I would like to execute system commands on a shell/terminal, inside Eclipse.
In particular, I will need to open the system shell using the path of the current project folder on which I'm working in Eclipse.
In some Eclipse packages, like STS or Eclipse for JEE Developers, the Terminal is already installed in your IDE. If not, you can install the TM Terminal from the Eclipse */release update site, as you can see in the image below.
To open the command prompt (shell or terminal) using the path of a project directory inside Eclipse, you just need to select the folder, and press Ctrl+Alt+T, or right-click and select Show In Local Terminal > Terminal.
Then, the terminal will open in a new view inside Eclipse.
The Eclipse IDE which I am working there is no Terminal is there. So I needed to add the plug in like this and it works fine when you try clicking Alt+Ctrl+T
Click on Help in Eclipse-->Eclipse Marketplace--> in Find box (Search terminal and Enter)--> You will see TM Terminal 4.0 Version and just install it.
You may need to restart afterwards
And finally you will be able to get the Terminal when you will type
Alt+Ctrl+T on Console.
If you don't have the TM Terminal plugin installed, you could use external run configurations.
Click on the arrow near run button with the toolbox and add a new external run configuration.
Here, you can enter the path of your program(if you want to run commands, it will be C:\Windows\System32\cmd.exe (or the path to PowerShell on windows and /bin/bash (or similar if you use another shell) on linux.
In this dialog, you can also specify running directory of the application(the current project in your case)
After that, you can save this configuration and start it using the external run configuration menu(run button with toolbox)
Click on Run Cofiguration--> arguments --> Program Arguments (write any number of String) -->click on run
Go to Window > show view > Other.
A dialog will show up, type Terminal in the search field, select Terminal and click open.
A new empty view will show up in Eclipse.
On the top right corner of the view there is a button Labeled "open a Terminal".
Click on it, a dialog will show up
click OK and there you go, you got a Terminal.

Pydev; How Do I Config *all* .py To NOT Run In Ant?

Beginner config question here, guys.
So I am in eclipse, in pydev. Some of my src will run in the python compiler just fine, but others try and run in ant. When I click the 'Run' dropdown in the ones that work, and select 'Run As' I get two options. 'Python Run' and 'Python Unit-test'. When I try and run the ones that try and use Ant, I goto the same menu and it only displays '(none applicable)'
How do I fix this?
I was having the same problem. If you were,like me, trying to run code that you had written in IDLE and saved somewhere. You have to create blank project and import that code into the "src" folder of your project. then you should be able to run the code as python in eclipse.
For example. I had a bit of code I was trying out in IDLE saved in a folder in "My Docs". I moved it to my project "src" folder in "Mydocs/eclipse/projects/" and was able to run it in eclipse. Your paths will depend on where you opted to save your eclipse projects.
You should then be able to select your "Python: run option.
This was the link that helped me with this.
http://www.vogella.com/articles/Python/article.html#installation_python
Read the whole thing and it should help.

NetBeans keyboard shortcut to run a file that is currently being edited

Is there a NetBeans shortcut to run a file that is currently being edited? Or is there a way to make one?
shift-f6 will do it. ctrl-f6 will run the corresponding test for the current file if your tests follow the conventions that nb uses for tests.
Its under the run menu, and its called "run file"

How to run only one test in TestCase in NetBeans PHP?

I can run all tests for current file, but how to run only one test?
There are buttons in the Test Results pane to rerun only the tests that failed during the previous run, but I know of no way to run a single test. Right-click a test in that same pane to see if you get an option to run it alone. I'm not at work to test out that theory.
There is a way to do it netbeans: Click Window -> Ide Tools -> Terminal and type:
phpunit --filter '/::testName$/' MyTest.php
Then click Enter.
as far as I know there is no button or something in Netbeans that does that. So using terminal seems like the easiest way. It still is quite convenient though, because it should remember the history and later on you can just copy paste the test name.
Note that you may have to navigate to the test folder first or specify path to your Test file first in case Netbeans terminal doesn't open in your test project folder already