Unable to edit configuration files in Marlin - editing

I have succesfully been using VS Code for a few months to edit configuration files in Marlin. However, I now find I cannot edit code at all, and I don't understand why. I have tried reinstalling VS Code, but no change.
As a work around, I have used Arduino IDE to edit the files, then because I have a 32 bit controller (SKR 1.4 Turbo), I used VS Code to build.
Can anyone tell me what might be preventing me from using VS Code as an editor?

This can be because you project located at path, where VScode don't have permissions to edit files (for example somewhere at C:\Program Files\Arduino).
To fix this you can move your marlin project to "neutral waters" like your Documents folder
or
(not suggested) launch VScode with admin rights (right click on vscode shortcut -> Run as administrator)

Related

Android Studio Stuck on Loading Start Screen Screen

This is more of a helpful tip/warning than a question. For someone else that might attempt what I did. Android Studio Dolphin (Not sure about other versions) on Mac and also Windows is stuck on Startup Screen after I installed 5 plugins for CSV support at the same time (Rainbow CSV, Cap-Hadoop, ExcelEditor, ExcelReader, and CSV).
Below is the image of the issue
enter image description here
If anyone has a solution that will be awesome.
I just encountered the same issue today, I was able to fix it by deleting those plugins from the app's data roaming folder, you can access them by typing %APPDATA% in the "Run" app (Windows Key + R) or directly in the folder explorer.
Once there, Google -> AndroidStudio2021.3 (or whatever version you are using) -> Plugins.
EDIT: Mac equivalent is User/Library/Application Support/Google/"version of Android Studio"/plugins
Library might be hidden in User folder so Shift+Command+. to show it
(thanks to TwistenTiger)
Hope it helps!

WebStorm 11 freezes on Go To Declaration action for Typescript interfaces

I'm currently using WebStorm 11 on a very large NodeJS/Typescript project and when using the "Go To -> Declaration" shortcut, my WebStorm completely freezes and has to be killed and restarted manually.
Do any of you guys encounter similar behaviour?
If someone just came here looking for solution of WebStorm / PHPStorm freeze, I am giving my 2c.
Make sure you are using the latest release of the IDE. The current version number shows up during its startup. If using older one, download the latest, and install it.
Now, if the freezing problem persists with opening the project, find the .idea folder inside the concern project folder, and delete the .idea folder. It may stay hidden depending on your file-viewer's settings. Enable hidden-file view, if needed.
Caution: This will reset your project-specific IDE settings, however general, non-projectwise settings will remain intact.

How can I Get visual studio to use source server in preference to local files when debugging?

I have just started experimenting with the Microsoft tools to set up a symbol and source server.
I have successfully indexed my source files using p4index, updated the .pdb files and updated the symbol server.
I have set visual studio to use the my symbol server.
All works fine: when I step debug through my exe as a standalone exe the pdb's are loaded and the correct version of the source code is exported from perforce to temp location and displayed within visual studio.
Whats the problem then? If I try to debug on the machine on which I built my exe then visual studio finds the source code locally. The trouble is that this is a modified file and not the correct version of the source corresponding to when exe was built. VStudio even knows this and pops up a requester saying "the source file is different from when the module was built. Would you like the debugger to use it anyway?"
If I click no then I just get a file dialog to manually locate the source.
Is there a way to get vstudio to fall back to using source server or preferably to use the source server first before looking looking locally?
I'm using visual studio 2012 and perforce
After having encountered the same issue, I finally narrowed it down to the fact that Visual Studio won't run the P4 PRINT command if there is already a file at the place where the pdb/debugger expects to find it.
For example, if the indexed source file was in C:\Toto\Source.cpp, the sole presence of this file when Visual is looking for it will prevent the P4 PRINT.
If i rename it, Visual is correctly printing the file in another unrelated folder (the symbol cache pass).
It's not a fix, it's only a reason, but I'm still investigating.
This behavior is not present in windbg.
In case anyone else finds this thread and has the same problem, the solution in my case was to Enable "Require source files to exactly match the original version" in Options -> Debugging -> General.
It will still prefer the local copies, but only if they are identical, in which case it is the same version it would otherwise grab from the source control server. And if it isn't the right one, it will now display the proper one from the source control server.

TFS 2012 is not recognizing a file as having been deleted

I am working with another developer on an applciation. Whenever one of us deletes a file that has been pulled down on the other workstation. TFS doesn't seem to pass down the files as deleted on the next get request.
Short story: I delete file -> Check in -> Team mate does get -> gets build errors due to the files still being on his local disk
Anyone know what we are doing wrong?
We are using local workspaces. We are checking in the delete. Everything we are doing is happening in Visual Studio. Not in a file explorer anywhere.
UPDATE: It has something to do with resharper 8 and TFS not playing well together. When I move a file or safe delete a file with resharper commands TFS doesn't recognize it (the green lock sign is not in solution explorer).
I suggest you to check in your csproj file, he contains all files included in your project, your another developper get latest old csproj, so you find your file

VS 2012 Intellisense broken for external DLLs

I have a Visual Studio 2012 project with a reference to a Sitecore DLL. (Sitecore is a vendor.)
For a few weeks, Intellisense has worked fine. Yesterday, after installing Patch Tuesday updates and rebooting, Intellisense no longer works for stuff in the Sitecore DLL. I don't know whether there is a correspondence.
Intellisense still works for .NET Framework stuff. E.g., if I type string. inside a method, I get Intellisense.
The project has a reference to the Sitecore namespace defined under References in Solution Explorer. Specifically, the reference is Sitecore.Kernel, and it comes from Sitecore.Kernel.dll.
If I right click on Sitecore.Kernel under References and select View in Object Browser, I can browse the DLL just fine. Also, my project builds fine; the project has a few using statements referencing parts of the Sitecore.* name space, and it uses objects in those namespaces.
If I type using Site and press Ctrl-space, I should see Intellisense suggesting {} Sitecore, but all it shows is this:
If I attempt to use Intellisense on any object in a Sitecore namespace, I get no Intellisense suggestions.
The suggestions in other areas don't work. For example:
Edit > IntelliSense > Refresh Local Cache: There is no Refresh Local Cache option. Yes, I did have a CS file open, and was editing it then.
Delete %AppData%\Roaming\Microsoft\VisualStudio\11.0\ReflectedSchemas: There is no ReflectedSchemas folder there.
TOOLS > Import and Export Settings > Reset all settings: Did not bring back Intellisense for external stuff.
In Visual Studio Command Prompt, run devenv /resetuserdata: Seems to have done something similar to the prior technique. Had no effect on Intellisense.
Check TOOLS > Options > Text Editor > C#: Both Auto list members and Parameter information are checked. I think these would have been reset by the prior two steps anyway.
Through the VS 2012 installer (Control Panel > Uninstall a program), repair the entire VS installation. Had no effect.
Remove and add back Sitecore.Kernel under References. Had no effect.
Here's where it gets really weird: if I open this project remotely from a different workstation--which also has yesterday's Patch Tuesday stuff installed and rebooted--Intellisense works fine! I am referring to it using \computername\c$....
I'm not sure what else to try.
For reasons I don't understand, I was able to get Intellisense back by creating a new project and setting it up pretty much exactly like the old project.
Your web project will also need to have some Sitecore config files in the App_Config folder in the project's directory. (Not necessarily included in the project).
I've blogged about it here:-
http://www.seanholmesby.com/fixing-visual-studio-intellisense-in-sitecore-mvc-views/

Resources