Posts

Showing posts with the label visual-studio

Can't install TypeScript on MacOS - Terminal Error

Can't install TypeScript on MacOS - Terminal Error I have Visual Studio Code on my Mac and want to install TypeScript for Angular. I already previously installed Node.js or Git I think. This command from the TypeScript website should install TypeScript if it's run in the Mac Terminal, but it doesn't: npm install -g typescript If I paste it in the Terminal and press enter, this Error-code appears in the Terminal: (What is the problem? I really don't get it and have no clue about the terminal, I'm not a computer pro. Would be a big help if you have tips in easy words for beginners. Thanks!!) MacBook-Pro:~ Max$ npm install -g typescript npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm ERR! path /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall access npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules' npm ERR! { [Error: EACCES: permission denied, access '/usr/lo...

Visual Studio Stops Running My Code, and points at a Line (that has no errors)

Image
Visual Studio Stops Running My Code, and points at a Line (that has no errors) When I run my console program, it stops on the line depicted in the screenshot, and points a little arrow at it. Here is the line Details: I have tried to run the program without it, to see if it is the definitely the source of the problem, but it still stops running, and points that arrow shown in the screenshot at the NEXT line. If I continue commenting out everything the arrow points at, I eventually reach the curly bracket at the end of the method, which the arrow then points at... I don't even know what it's supposed to mean. Any help to fix this would be highly appreciated. The red circle to the left indicates that you have a breakpoint set on this line. So, if you run your program in the debugger, the debugger will pause the program when it hits/reaches a code line with a breakpoint. It is probably a good idea if you would spend some time learning the basics about t...

VS2017 DesignInstance Intellisense not working

Image
VS2017 DesignInstance Intellisense not working For some reason the intellisense in VS2017 is not showing the properties of my viewmodels, even though I used the d:DataContext="{d:DesignInstance Type=local:TestVm, IsDesignTimeCreatable=True}" method. d:DataContext="{d:DesignInstance Type=local:TestVm, IsDesignTimeCreatable=True}" Example of my class: public class TestVm { private int _test; public int Test { get { return _test; } set { _test = value; } } } Yet the property Test isn't showing up in my intellisense: What could be the reason behind this? hope this help to you stackoverflow.com/questions/45720439/… – Sachith Jun 30 at 19:03 I tried them out but none seemed to fix it – user2657943 Jul 1 at 8:28 ...

Unity serialized objects in different Lists not equal after pressing Play

Unity serialized objects in different Lists not equal after pressing Play basicly I have these lists: [System.Serializable] public class PatrolGraph : MonoBehaviour { public List<Node> nodes = new List<Node>(); public List<Edge> edges = new List<Edge>(); [...] } I generate both Lists (nodes and edges) using a method I run from the editor. Node and Edge are both serializable, and Edge containes two Nodes. However, after I hit play, the Nodes saved in the Edge objects of the edges list don't seem to be the same as the Nodes in my nodes list (NodeA.Equals(NodeB)), even though they should be. If I run the function to generate the Lists during Playmode (the same one I run in edit mode), the Equals function suddenly returns true. Here is the code for the Node and Edge classes: Node: [System.Serializable] public class Node { public float lastVisited = 0; public Vector3 position; } Edge: [System.Serializable] public class Edge { public Node A; public Node B; public ...

The operation could not be completed devenv /setup

The operation could not be completed devenv /setup I am troubleshooting why my xaf xafml files open in xml instead of the designer and looking at the help here Here is my console output of me trying to run devenv /setup C:>cd c:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDE c:Program Files (x86)Microsoft Visual Studio2017ProfessionalCommon7IDE>devenv /setup Microsoft Visual Studio 2017 Version 15.0.27703.2000. Copyright (C) Microsoft Corp. All rights reserved. The operation could not be completed 1 Answer 1 I have solved the issue by running the console as Administrator. I gather this is the solution for some people. More details are at devexpress.com/Support/Center/Question/Details/T532038/… – Kirsten Greed Jun 30 at 22:17 ...