At terminal print swiftlint information - swift

After I installed swiftlint, I used the terminal to print the swiftlint information. When I printed the version number, it was correct. However, when I printed the rules, this problem occurred.
mac: MacBook Pro(M1 chip)
swift: 5.x
Xcode:13.2

Probably the problem is connected with your version of swiftlint. It's 0.17.0 and the current version is 0.46.3.
Try to update it to a newer version?.

Open Xcode -> Open Preferences -> Check if the Command Line Tools is selected.

Related

vs code not opening up in windows

whenever i try to open my vs code editor, nothing happens it doesn't launch and even there are no errors..!! And i am confused what's wrong here in my vs code. Please anyone help me fix it..!!
Below are the verbose command i typed in the terminal..
C:\Users\Avinash>code . --verbose
[main 2020-05-10T05:17:56.317Z] Error: UNKNOWN: unknown error, mkdir
[main 2020-05-10T05:17:56.318Z] Lifecycle#kill()
[main 2020-05-10T05:17:56.320Z] [File Watcher (node.js)] Error: UNKNOWN: unknown error, stat 'c:\Users\Avinash Maurya\AppData\Roaming\Code\User'
no need of Unistalling, just go to your vscode-setup and reinstall it. (by this procedure all of your's settings, files , extensions etc.. will be restored as it is.)
I also came across the same issue.
Uninstalling and Reinstalling it again worked out and all my extensions were there already(that was strange).
You may want to try "Run as Administrator".
try code --no-sandbox in kali linux
try this it worked for me!
got to the Microsoft store
install vs code form there
then an error massage will appear
now try to open your vs code and wait ...
You can try by searching vs code and if it opens you can right click it, create the shortcut and use it instead of the old shortcut. This worked for me so please try it.
Here is the best solution:
No need to uninstall or do anything.
I was also facing the same issue. Go to task manager. You'll see that visual studio code is running. Select it and press end task. Now you can open vscode normally. It's fixed!
Somehow I had two vs code installs on my computer (one user and one system) and they appeared to be conflicting. I uninstalled user and everything worked. I suggest uninstalling all versions and reinstalling using the system installer executable.
Just reinstall the vs code from previously downloaded setup, everything including extensions get restored. enjoy coding
I Have Got the Same Problem as you just open the folder where you have downloaded VS Code. Like in My case its in Drive C and open from icon in that folder.
you can fix this issue by selecting run this program as administrator under compatibility tab.
If you are on win10, kill all vscode processes, delete folder 'C:\Users\xxx\AppData\Roaming\Code', and launch vscode again.
if anyone is still wondering abt it, Microsoft ended support for Windows 7 in January, 2020 and no longer provides security updates. VS Code desktop versions starting with 1.71 (August 2022) will no longer run on Windows 7 and you will need to upgrade to a newer Windows version to use later versions of VS Code.
Thus, if you want to keep windows 7 version, you have to download an older version than 1.71 of VS Code , for example, 1.69 version (https://www.filepuma.com/download/visual_studio_code_64bit_1.69.1-32681/) and uncheck all the auto updates from the settings.
whenever you want to add any extension, you just have to choose the older version of it.
If you cannot open the vs code editor on windows 7, then you need to download the latest version 1.70.2 from July 2022, which is supported by windows 7. Here is a link as an example: https://update.code.visualstudio.com/1.70.2/win32-x64/stable

issue with vscode-neovim navigations

I am using VsCode on MAC OSX.
I installed vscode-vim and editor works fine.
Now, I installed vscode-neovim extension and updated settings.json with below
"vim.enableNeovim": true,
"vim.neovimPath": "/usr/local/bin/nvim"
However, when I press arrow-keys in editor, I am getting below message
command 'vscode-neovim.up' not found
I checked the Keyboard Shortcuts see below entries for vscode-neovim.up, etc. like below
attachment.
Am I missing any other configurations?
thanks,
I had a similar issue after just installing vscode-neovim. It appears the current extension requires version 0.5.0 or later of neovim, which is a nightly/development release. On OSX, you can install it with brew install --HEAD neovim or see here for releases.
You probably also want to uninstall the vscode-vim extension from VSCode: these are conflicting extensions, not complementary.

Terminal: Swift Build command does not work

When I am using Swift Package builder in the OSX terminal, it does now work.
swift build
I get:
:0: error: no such file or directory: 'build'
REPL works and all the snapshots seem to be installed. Does anyone know the issue?
Yes. It helps. By Default command line tool will have nothing selected. Once you click a drop down will come and you can select the latest xCode. This will associate the XCode tool chain to the command line and you can use swift build, swift package init etc. You may not have to set the path also.
The solution is to download the development snapshot, not the release one - https://swift.org/builds/development/xcode/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a/swift-DEVELOPMENT-SNAPSHOT-2016-02-08-a-osx.pkg
/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin should be appended before $PATH in your .bashrc:
PATH=/Applications/IBM/node/bin:/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin:$PATH
A simpler solution is to install latest Xcode and change the command line tools to point to latest XCode Version. It can be done by going to Xcode > preferences > Locations > Command line tools.
Change it to Xcode (version number).

Could not register service com.apple.coreservices.lsuseractivity.simulatorsupport

My OS version is 10.9.5 and i have installed Xcode Version 6.0.1 (6A317)
After installation on first time running Xcode it shows an error popup message
"/Applications/Xcode/Contents/Developer/Platform/iphonesimulator.platforms/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/dyld_sim is not owned by root"
Then i check this files owner by 'ls -l dyld_sim'
it shows root:wheel (Feeling nice)
But
When i try to run my simulator I get stuck on this.
A black screen appears and a popup shows an error msg "Invalid Device State"
When i open console it shows an error message
"Could not register service com.apple.coreservices.lsuseractivity.simulatorsupport: Failed to lookup com.apple.coreservices.lsuseractivity.simulatorsupport"
can anybody please help me about that, how can solve this problem
Just relax solution is here
Open Terminal and just type this command
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
enjoy :)
I solved this problem by updating my OSX version to 10.10. Now it's working fine.

pip install fails with /usr/bin/clang: No such file or directory

I am migrating my dev environment to 10.8, however I am having issues with pip.
Specifically, I'm using a virtualenvs/virtualwrapper but cannot pip install psycopg2, and during the building of the psycopg2._psycopg extension, I get:
unable to execute /usr/bin/clang: No such file or directory
error: command '/usr/bin/clang' failed with exit status 1
Can anyone offer a solution to this?
This probably happens because you did not re-install the Command Line Tools after upgrading.
Usually XCode should be upgraded to the latest version (4.4) (I believe when I updated to 10.8 I also updated a whole bunch of other applications, including XCode). After the update you need to re-install the Command Line Tools. This can now be done via a setting in XCode:
Go to "Preferences -> Downloads" and install "Command Line Tools".
Now you should have no more problems when installing packages that need to be compiled.