How to run MonoDevelop's nunit-console on OSX? - macos

The MonoDevelop I'm using came with Unity3D. I can see nunit-console inside its package contents at MonoDevelop/Contents/Frameworks/Mono.framework/Versions/2.10.2/bin/nunit-console, but what I can't figure out is how to call it from inside Terminal.
Here the guy mentions adding a path to MONO_PATH, but I don't know how to address a path inside a package and when I type env, I do not see a MONO_PATH at all. Also mono is not recognised as a command in Terminal, so the advice here doesn't really help me either.
It's got to be a simple configuration issue, but I'm new to developing in OSX.

Try this:
Write the following command on Terminal
mono {path to nunit-console.exe}
For example: "mono Downloads/NUnit-2.6.4/bin/nunit-console.exe"

nunit-console is just a shell script that calls nunit-console.exe .NET Assembly using the full path to mono, so try to open the file in a text editor and see if you can see where it thinks that mono should be.
What error do you get if you try to execute:
MonoDevelop/Contents/Frameworks/Mono.framework/Versions/2.10.2/bin/nunit-console
from Terminal?

Related

MSYS2: After integrating Git-For-Windows, I'm getting this error at MSYS2 startup: bash: create-shortcut.exe: command not found

I installed msys2, and then integrated the installation of Git-For-Windows within that msys2 environment, by applying this simple procedure.
After doing so, I'm getting this error when I double-click the msys2 desktop icon:
bash: create-shortcut.exe: command not found
bash: create-shortcut.exe: command not found
jdoe#msys2$
I can see where the above error originates :
The aforementioned procedure created this new script - /etc/profile.d/git-sdk.sh - which attempts to run the create-shortcut.exe command; but (like the script) I can't find where create-shortcut.exe is.
Does anyone know where that create-shortcut.exe comes from (MSYS2, MS-WINDOWS), or where it might be located? Or perhaps even know what the fix for this is? =:)
Thank you in advance.
Thank you to the commenters.
It's a bug, either because the referenced command wasn't included in the package, or because the command is not in the script's PATH. I'll file an issue in the GitHub project for it.
Thank you particularly to #HolyBlackCat for pointing out that the procedure wasn't necessary since git(1) is already available in MSYS2s default repositories. (I'm new to MSYS2 because I was provided a Windows environment instead of Linux). So, I ended up backing out the procedure and installing the native repository version instead, which works well.
However, if you did want to keep the version provided by the procedure -- because it does, indeed, offer more than just the git(1) command (e.g., it has an SDK too) -- then you can simply locate and safely comment-out the offending section in the /etc/profile.d/git-sdk.sh RC script, whose only purpose is to create a Windows desktop icon. Hopefully this helps others.

Getting KeyError: 'WINDOWSSDKDIR' while running Chromium browser source code on Windows

MAIN OBJECTIVE: I'm trying to build and run Chromium browser source code on my Windows. I want to create my own browser. The doc I'm following: https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md
PROBLEM: I'm trying to follow every step and command as mentioned in the doc. I'm having trouble while running this command gn gen out/Default. I'm getting the following error (see the screenshot):
KeyError: 'WINDOWSSDKDIR'
ERROR at //build/config/win/visual_studio_version.gni:27:7: Script returned non-zero exit code.
Here is vs_toolchain.py: https://github.com/arkadee/demo_files/blob/master/vs_toolchain.py
I'm using the latest version of VS Code. I've tried finding the solution myself, but, there are limited resources on the internet about Chromium. Any help will be appreciated, thanks!
Looks like WindowsSdkDir env variable is missing on your computer. You should install Visual Studio (VS Code is different) and the Window SDK, though it doesn't use VC compiler or linker anymore but GN build system needs the path of Windows SDK to copy all the relevant files to the build folder. Go to command prompt and type set, do you see WindowsSdkDir env variable? If not then either the SDK is missing or the env variable has been wiped out

Unable to run a dart program inside VS code

I am new to Dart/flutter. I have installed flutter SDK and VS Code on windows 10 machine, updated the system path, run flutter doctor, which shows that flutter is indeed installed (flutter doctor output). I read that installing flutter is enough, and I don't have to install Dart SDK too, as it comes build in with flutter (please correct me if I am wrong).
I wrote a very short Dart code for testing, but I couldn't run it from VS Code terminal (run in terminal output), as it returns the following error: "bash: dart: command not found".
But when I debug the code in VS Code, it returns the expected output (debug output).
Can someone please explain to me if I am doing something wrong, or if I am missing something? Why can't I run the program from the bash terminal?
Thanks
You should enter the full path directory instead of file name. For doing so right click on the dart file then choose Copy Path.
Then run following code on terminal:
dart (paste main file path)
For more information about creating and running Dart console application using VSCode please check out THIS answer.

pycharm swig how to? [windows]

I would require some guidance in regards to installing a module/package in pycharm (free edition). I have to mention that i have not worked with this IDE yet and wanted to try it out on a little project containing smartcards.
When i try to install "pyscard" i get the error that boils down to
error: command 'swig.exe' failed: No such file or directory
People say just install SWIG, which i guessed already ^^.
The issue i have is that i actually have no idea how to... and none of the pages i found has really enlightended me on this issue.
I downloaded the zip "swigwin-3.0.12" but i am at a loss what to do with it now. EDIT: According to the SWIG page this is an already compiled version and i have to somehow make pycharm recognize that the folder it is in contains the swig.exe it requires.
EDIT2: Adding the folder containing the swig.exe to the PATH variable also did not work ... which i thought would be the issue
EDIT3+Answer:
Ok the link in the comments from "wp78de" was correct my problem was that pycharm/pc restart were needed for it to catch the added PATH variable to the swig.exe (for pycharm that is)
Any advice is appriciated.
Envoirment:
Windows 8.1 Pro 64-bit
Pycharm 2017.2.4
Python 3.6
Basically, you just have to add the directory that contains the swig executable the PATH environment variable. You can do it via CMD or the Windows UI.
If you have added swig to your path, you should be able to call it in the command prompt from any directory: open "cmd", and type swig --help" on that prompt.
A restart of PyCharm (or whatever your IDE is) and Windows might be required.

Ruby : Trouble executing a sample program

I downloaded a code sample written in Ruby.
I have the development environment ready on Windows Server 2008 using RailsInstaller and have Sublime Text 2 as my editor.
I tried some basic command line syntax and they seemed to work just fine, however I do not have any idea how to execute this sample which has two classes and no Main function method defined.
I am a C# developer and am unable to locate the entry point for the program. Whenever I build my code in Sublime, it returns the following error:
[Error 2] The system cannot find the file specified
[cmd: [u'ruby', u'filepath']]
[dir: folderpath]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Sublime Text 2\]
[Finished]
Can anybody help get me started?
Make sure you include the Ruby installation on your file path. I'm not sure that the Rails installer sets them up for you, but, judging from the path declaration above, it does not look like it is on your path.
To add the Ruby installation directory to your path on Windows, open a console and type:
set PATH=%PATH%;<PathToRubydir>\bin
If you are installing from http://rubyinstaller.org, the installer has an option to add the ruby executable to PATH. By default it is not checked. You can reinstall and check this option. Then Restarting ST2, you can build the code by CTRL+B.

Resources