I tried some projects on a file and the checker shows a danger sign and says file not executable
I tried what the instructions told me
Related
So I recently updated my Mac to iOS Ventura. Since then I am unable to type "code ." into my terminal to open vs code in whatever directory I am in. The error I get is:
/usr/local/bin/code: line 6: python: command not found /usr/local/bin/code: line 10: ./MacOS/Electron: No such file or directory
I saw a solution here and the same one somewhere else.
However, when I try was in /usr/local/bin and typed "nano code" I was unable to edit the file. I got the error [ cannot open file for writing: read-only file system ]. I also tried dragging the file into VS code but I had a similar read/write issue. I am also unable to edit the permissions when I right click on the file and hit "get info". There is no option to edit. I also tried changing the permissions on that file using chmod to no avail. It's driving me nuts that I don't have read/write permission for files on my own computer. Does anyone have an idea of how I can have writing permissions on this file?
I do know for the /usr/local/bin/code: line 6: python: command not found you can run sudo vim /usr/local/bin/code and then add 3 to the end of python on this line function realpath() { python<3> -c "import... I guess the new mac update does not support python 2 anymore so you have to specify 3. Still looking into the line 10 error. If I figure it out I will post here again.
I am trying to write a TCL/TK Script that accesses an INI File with the command [::ini::open DBW.ini]. I am using the inifile package for this and am trying to run on wish for the gui.
However, wish answers with "couldn't open "DBW.ini": no such file or directory". The odd thing about this is, that I can run this Code in the VSCode extension "Code Runner".
Code Runner is configured to access the same wish Compiler that I'm trying to run on my Windows System.
Why would I be able to run this Code through VSCode, but when im using the wish Compiler directly it throws an error message.
Thank you in advance
Most likely your Tcl code is not being executed in the same directory as where the DBW.ini file is. The Tcl command pwd will return the directory where the code is executing. If this is not where the ini file is, a simple fix would be to specify the whole path to the file when you try to open it, something like:
[::ini::open C:/some/where/DBW.ini]
I have installed visual studio 2019 which works fine for c++ but unable to create folders and sections to store multiple code files. So thought of switching to visual studio code and followed all tutorials available on youtube and documentation. But Visual studio IDE has got nothing showing up when Run Build task is initiated, which is expected to show the c++ extension downloaded. Mingw64 is installed and checked in the terminal too.
no output or terminal opened on Run
compiler installation checked
From the image attached regarding no output in the terminal or terminal opened, it looks like the exe is made because it says 'Build finsihed succesfully'. You'll need to run this executable from the terminal.
For this, if youre in the same directory all you have to do is type the filename. helloworld.exe in the cmd, if its powershell, then ./helloworld.exe. (Also note that for exe files you dont need to explicitly mention .exe at the end of the file name)
The powershell method should work on cmd too.
And if youre not in the same directory as the executable, you can either change directory by typing cd path/to/file and proceed as above, or run directly by typing path/to/file/helloworld.exe. where path/to/file is the directory of your helloworld.exe file
I followed the Docs of 'https://code.visualstudio.com/docs/cpp/config-clang-mac'
In the form step exist no error, but when i chose Run > Add Configuration... and then choose C++ (GDB/LLDB), error exists"Cannot read property"
it's a step to edit launch.json file
I also got this on Windows using WSL with a Debian host. I think there is a bug, but it's easy to overcome.
Create a new launch.json file under the .vscode directory by right-clicking and selecting 'new file.'
Paste in the launch.json contents from this page: https://code.visualstudio.com/docs/cpp/config-wsl
Make sure that 'preLaunchTask' matches your build task name from tasks.json, that you have the appropriate debugger installed, etc.
It should now work.
I am following this tutorial.
And as instructed, I have downloaded the platform from here, and cloned the github repository for code.
Downloaded platform is in zipped form, so I unzipped it and added its bin folder to PATH system variable.
Now, I try to run start.sh as asked in 'Exercise 0: Run end-to-end demo'. But nothing happens.
A command window pops up and immediately disappears.
What am I missng here?
The tutorial assumes you're already in a terminal and typing those commands.
Sounds like you're simply clicking the shell script, and there's some error