www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Visual D doesn't work, now Visual Studio Code / D doesn't work!!!!

reply Daniel Donnell, Jr <fruitfulapproach gmail.com> writes:
I thought I set everything up correctly, and now:

```
Exception thrown at 0x00007FF7D6E2E230 in metamath-d.exe: 
0xC0000096: Privileged instruction.
Unable to open natvis file 
'c:\Users\fruit\.vscode\extensions\webfreak.code-d-0.23.2\dlang-debug\dlang_cpp.natvis'.
```

So what the hell do you D developers use to code with if A) 
Visual D doesn't work - it just ate my app.obj file and can't 
find it anymore no matter if I clean or re-order the executable 
paths in settings.

B) VS Code doesn't work out-of-the-box.

Every. Single. Time I get around to using D, there's always 
something that pops up and doesn't work right.  And it never gets 
fixed.   How the heck do you expect me to debug without a proper 
debugging IDE :|
Oct 02 2022
next sibling parent Imperatorn <johan_forsberg_86 hotmail.com> writes:
On Sunday, 2 October 2022 at 11:00:06 UTC, Daniel Donnell, Jr 
wrote:
 I thought I set everything up correctly, and now:

 ```
 Exception thrown at 0x00007FF7D6E2E230 in metamath-d.exe: 
 0xC0000096: Privileged instruction.
 Unable to open natvis file 
 'c:\Users\fruit\.vscode\extensions\webfreak.code-d-0.23.2\dlang-debug\dlang_cpp.natvis'.
 ```

 So what the hell do you D developers use to code with if A) 
 Visual D doesn't work - it just ate my app.obj file and can't 
 find it anymore no matter if I clean or re-order the executable 
 paths in settings.

 B) VS Code doesn't work out-of-the-box.

 Every. Single. Time I get around to using D, there's always 
 something that pops up and doesn't work right.  And it never 
 gets fixed.   How the heck do you expect me to debug without a 
 proper debugging IDE :|
This is partly valid criticism. Many other languages have a better oob-experience. But, D is underpowered. language for a lot of stuff, but when it comes to IDE and debugging, you can't expect the same "just works" experience as That's just the way it is unfortunately. Are you running as administrator or not btw?
Oct 02 2022
prev sibling next sibling parent Sergey <kornburn yandex.ru> writes:
On Sunday, 2 October 2022 at 11:00:06 UTC, Daniel Donnell, Jr 
wrote:
 I thought I set everything up correctly, and now:

 ```
 Exception thrown at 0x00007FF7D6E2E230 in metamath-d.exe: 
 0xC0000096: Privileged instruction.
 Unable to open natvis file 
 'c:\Users\fruit\.vscode\extensions\webfreak.code-d-0.23.2\dlang-debug\dlang_cpp.natvis'.
 ```

 So what the hell do you D developers use to code with if A) 
 Visual D doesn't work - it just ate my app.obj file and can't 
 find it anymore no matter if I clean or re-order the executable 
 paths in settings.

 B) VS Code doesn't work out-of-the-box.

 Every. Single. Time I get around to using D, there's always 
 something that pops up and doesn't work right.  And it never 
 gets fixed.   How the heck do you expect me to debug without a 
 proper debugging IDE :|
Did you try DlangIDE or Dexed? They could be a solution
Oct 02 2022
prev sibling next sibling parent Mike Parker <aldacron gmail.com> writes:
On Sunday, 2 October 2022 at 11:00:06 UTC, Daniel Donnell, Jr 
wrote:
 I thought I set everything up correctly, and now:

 ```
 Exception thrown at 0x00007FF7D6E2E230 in metamath-d.exe: 
 0xC0000096: Privileged instruction.
 Unable to open natvis file 
 'c:\Users\fruit\.vscode\extensions\webfreak.code-d-0.23.2\dlang-debug\dlang_cpp.natvis'.
 ```

 So what the hell do you D developers use to code with if A) 
 Visual D doesn't work - it just ate my app.obj file and can't 
 find it anymore no matter if I clean or re-order the executable 
 paths in settings.

 B) VS Code doesn't work out-of-the-box.

 Every. Single. Time I get around to using D, there's always 
 something that pops up and doesn't work right.  And it never 
 gets fixed.   How the heck do you expect me to debug without a 
 proper debugging IDE :|
Plenty of people are using Visual D and VS Code with D. Whatever the source of your problem, it's surely fixable. Though if no one has encountered this particular issue, then it may take some doing to figure out the problem. I've emailed Rainer, the maintainer of Visual D, to notify him of this thread. He might have an idea of what's wrong, or at least will be in a position to ask more informed questions than I or others to help you solve the problem. In the future, when you encounter Visual D issues, please post in the IDEs forum. Rainer checks in there more regularly and will be more likely to see your posts. https://forum.dlang.org/group/ide
Oct 02 2022
prev sibling next sibling parent rikki cattermole <rikki cattermole.co.nz> writes:
Visual Studio with its c++ components can debug D code, it should not 
require Visual D to do so.

Open executable as project.

If this does not work, you have a serious issue in your system/VS install.

This may help to narrow down what is going on.
Oct 02 2022
prev sibling next sibling parent reply Rainer Schuetze <r.sagitario gmx.de> writes:
On 02/10/2022 13:00, Daniel Donnell wrote:
 Visual D doesn't work - it just ate my app.obj file and can't find it
 anymore no matter if I clean or re-order the executable paths in
 settings.
Can you be more specific what you are doing and what is going wrong? On 02/10/2022 23:28, rikki cattermole wrote:
 Visual Studio with its c++ components can debug D code, it should not
 require Visual D to do so.

 Open executable as project.
Or start "devenv program.exe" from the command line. Indeed, you don't have to build with Visual D to use the debugger. The C++-only native debugger works, but having Visual D installed also comes with a debugger extension that makes debugging smoother, e.g. you don't have to know the respective C++ syntax for watch expressions. BTW: Using compiler options -gf instead of -g will add more debug info and can improve the debug experience.
Oct 03 2022
parent Alain De Vos <devosalain ymail.com> writes:
why not try neovim.
Oct 04 2022
prev sibling parent z <z z.com> writes:
On Sunday, 2 October 2022 at 11:00:06 UTC, Daniel Donnell, Jr 
wrote:
 I thought I set everything up correctly, and now:

 ```
 Exception thrown at 0x00007FF7D6E2E230 in metamath-d.exe: 
 0xC0000096: Privileged instruction.
 Unable to open natvis file 
 'c:\Users\fruit\.vscode\extensions\webfreak.code-d-0.23.2\dlang-debug\dlang_cpp.natvis'.
 ```

 So what the hell do you D developers use to code with if A) 
 Visual D doesn't work - it just ate my app.obj file and can't 
 find it anymore no matter if I clean or re-order the executable 
 paths in settings.

 B) VS Code doesn't work out-of-the-box.

 Every. Single. Time I get around to using D, there's always 
 something that pops up and doesn't work right.  And it never 
 gets fixed.   How the heck do you expect me to debug without a 
 proper debugging IDE :|
dlang.org seems to implicitly recommends a form of Visual Studio(interchangeable with vscodium?), it's recommended enough that the DMD(or is it just visual D?) installer proposes to install it too. However, i can confirm that the situation is not that good outside of it, most general purpose code editors' D support is broken. it seems that implementing support for D is difficult. Maybe try dexed if it's available on your platform? If you need debugger badly and VS is inadequate, i can recommend x96dbg or another "normal"(not integrated) debugger, it should retrieve the debug symbols without difficulty.
Oct 06 2022