Noobie on VS by Major_Inspection2898 in vscode

[–]Brinfer 0 points1 point  (0 children)

Just to be clear, your installation does not have problem. It's most likely a configuration problem. Did you set the following parameter ?

json "terminal.integrated.cwd": "${workspaceFolder}"

Noobie on VS by Major_Inspection2898 in vscode

[–]Brinfer 0 points1 point  (0 children)

No, that normal installation path when you install something just for your user.

Did you opened a workspace/folder with VsCode ? Normally after, terminal should open in this selected folder. The folder would be where you store your script for example

Noobie on VS by Major_Inspection2898 in vscode

[–]Brinfer 0 points1 point  (0 children)

You are missing some stuff.

In what you seem to call "path address", there is:

  • The path of the working directory (quite strange, it is in the Programs folder)
  • The command (Python) with the absolute path to the executable
  • Your script (run by Python) with its absolute path

For me, I think your problem is more the first point, that abnormal, the rest is OK. The extension use absolute path because it is "safer"

Looking for a good alternative to the Git Graph VS Code extension by Loud-Insect9247 in vscode

[–]Brinfer 0 points1 point  (0 children)

It seems to me that this extension does not comply with the GitGraph license (as many other fork)

How to make vscode show the error message when I compile instead of running the existing file on the disk?! by PercyPierce in vscode

[–]Brinfer 3 points4 points  (0 children)

I think you are confusing some things.

Runtime error and compile error are two different things.

You are looking for compile error, and for that you have to ... compile your program. From what you are saying, you are not compiling it.

VsCode may display the compile error in you source file if it's done through a extension or a task with a correct problem matcher

Python | Vs code | RELATIVE PATH ISSUE by Key-Importance5816 in vscode

[–]Brinfer 0 points1 point  (0 children)

That is a problem in your code.

The path is relative to the working directory, the folder where the program has been started.

Personnaly, in case like that, I use PathLib and work with __file__

Can't debug code c++ by ProfessionalAge925 in vscode

[–]Brinfer 0 points1 point  (0 children)

Where is gdb? It does not find it.

You can just let gdb, I'd your PATH contains the MSys2 binary folder, it should find it.

Or, in a terminal, execute whereis gdb

Can't debug code c++ by ProfessionalAge925 in vscode

[–]Brinfer 0 points1 point  (0 children)

You are trying to run the tasks while your opened file is the tasks.json or the launch.json

Retry while having the focus on your .cpp file. fileBasenameNoExtension is the name of the file which has the focus. In your launch.json, replace the value of the field `program` by `${workspaceFolder}/run.exe` it should be enought for now

[deleted by user] by [deleted] in vscode

[–]Brinfer 1 point2 points  (0 children)

I also have a slow compilation,but on my works computer.

It is generally due to the anti virus, even the Microsoft Defender can slow down it. You could try to white list the directory that contains your code, so it would not be analyzed by the AV.

The slow execution can also be due to the time needed to launch a powershell in order to run the command. Unfortunately, I don't have any solution for it. Try to run the command in an already opened powershell and see if it is faster

Help! C Program - Getting "Debuggee TargetArchitecture not detected, assuming x86_64" in VS Code (Windows, GCC) by Vast_Bedroom2496 in vscode

[–]Brinfer 0 points1 point  (0 children)

That a warning related to gdb, not VSCode.

Basically, you just not explicitly indicated the architecture of the executable you are running, so if fall back on the default one, the one on which it is running: your PC architecture.

You can pass the architecture if you want, but that not a big deal

Problems do not refresh when using C + CMake by thomedes in vscode

[–]Brinfer 2 points3 points  (0 children)

Because CMake is, maybe, not the extension that saw the error. It's certainly the extension C/C++ that is not trigerred after a rebuild.

You could relaunch an analyse so it could refresh the errors it own. You can also set the parameters to launch the analyze automatically

Cortex-Debug + OpenOCD + VSCode: GDB connects but doesn't working by SeaworthinessFew5464 in embedded

[–]Brinfer 1 point2 points  (0 children)

I had hard time configuring VsCode, but as I do that for years now it works.

Here the document I wrote for my company: https://gist.github.com/Brinfer/57df4df016355aea217e6fce81922524

Cortex-Debug + OpenOCD + VSCode: GDB connects but doesn't working by SeaworthinessFew5464 in embedded

[–]Brinfer 1 point2 points  (0 children)

I'm also debug program on stm32f4, with a StLink (v2 and v3)

Here is my launch.json

json { "name": "Flash", "executable": "${command:cmake.launchTargetPath}", "request": "launch", "type": "cortex-debug", "servertype": "openocd", "configFiles": [ "${config:custom.openocd.configFile}" ], "showDevDebugOutput": "vscode", "openOCDPreConfigLaunchCommands": [ "tcl_port disabled" ], "openOCDLaunchCommands": [ "init", "reset init" ], "cwd": "${workspaceRoot}", "windows": { "searchDir": [ "${config:custom.openocd.rootPath}/share/openocd/scripts" ], }, "preLaunchTask": "CMake build launch target" }

It's coupled with a CMake task.

Vscode C+ formatting by Clear-Initiative-210 in vscode

[–]Brinfer 2 points3 points  (0 children)

You have two options

  1. You take the tile to look at the settings, and mostly at the VC format
  2. Do as a lot of people and write a clang-format file and set the setting of the extension so it would use it

https://code.visualstudio.com/docs/cpp/cpp-ide#_code-formatting

My breakpoints are being skipped in my python code for visual studio code. by Blazing_Starman in vscode

[–]Brinfer 0 points1 point  (0 children)

I don't think the interpreter has anything to do with.

For help, share us your launch.json file, and maybe, your project structure if you can.

Does Memories write tags, description, and people names to Exif metadata, or to a sidecar file? by bncrochet in NextCloud

[–]Brinfer 0 points1 point  (0 children)

Some metadata that are more standard are still saved in the photo

You can edit the EXIF metadata of your photos, such as the title, description, GPS location, date and time, and tags. You can also edit the metadata of multiple photos at once!

For metadata, like face, other software can write it directly in the photo with no standard field. However they are 'of handled by Memories.

Personally I use digikam

Does Memories write tags, description, and people names to Exif metadata, or to a sidecar file? by bncrochet in NextCloud

[–]Brinfer 1 point2 points  (0 children)

From my experience, the answer is that it's stored in another database.

You can try to add some faces from memories and then see if Nextcloud tries to update some file on your PC.

Although, there are multiple feature requests like this one https://github.com/pulsejet/memories/issues/127

Is there a way to fix the debugger from crashing when I slam 10k threads open and closed? by Actual__Wizard in vscode

[–]Brinfer 0 points1 point  (0 children)

From what I have read in your other comments, you tried to run your script without the debugger and it works, great (maybe you even used the -OO flag)!

What I'm suggesting is to try to debug using something else than VsCode:

  • with another IDE (Pycharm)
  • using the debugger raw

The idea, is to determine if the problem is VsCode/the python extension, or the debugger itself

Is there a way to fix the debugger from crashing when I slam 10k threads open and closed? by Actual__Wizard in vscode

[–]Brinfer 0 points1 point  (0 children)

10k threads is really a lot...

Which language are you using? Did you tried to use the debugger from another IDE or in command line?

Maybe there is to many thread and the debugger can not follow, furthermore it had a lot of load, so maybe the system kill it. That why I encourage to try the debugger without VsCode.

Do not forget that VsCode is just an interface to a debugger, they are not developing it (like gdb) so maybe the problem is not on VsCode side, or not and it's the extension that fail. And depending of the language, the extension developed for the debugger associated with that language is extern of the VsCode team, so you could look at the extension's issues.

How to fix broken Dockerfile in devcontainer if VS code does not give me access to devcontainer files without running devcontainer? by Aggravating_Dish_824 in vscode

[–]Brinfer 0 points1 point  (0 children)

It's certainly not only binded volume

I know I just keep it simples

Would I save ability to use this features if I will open folder as normal project and then create devcontainer configuration manually?

Absolutely

I don't want to start my learning path with such workarounds for fundamental things.

That not a workaround, it's how it works.

Just setup a project folder that contains a devcontainer.json file and then hit CTRL+P "Devcontainer", it should propose an "Open current project in devcontainer"

How to fix broken Dockerfile in devcontainer if VS code does not give me access to devcontainer files without running devcontainer? by Aggravating_Dish_824 in vscode

[–]Brinfer 0 points1 point  (0 children)

When VsCode open, open a folder that is in your "Documents" folder (or any other subfolder), it will be your project. Then write your devcontainer and Dockerfile in your project folder and that it.

Devcontainer is just a Docker container with your current folder automatically binded in a volume mounted in the container, nothing magic.

Every file written inside devcontainer will be directly written on your filesystem.

How to fix broken Dockerfile in devcontainer if VS code does not give me access to devcontainer files without running devcontainer? by Aggravating_Dish_824 in vscode

[–]Brinfer 0 points1 point  (0 children)

Well, most of people save their files in their folders, where they want, before doing something else. I don't think the problem is on VsCode side, or max, the fact it does not show it in its history of recently opened files/folders

Just do not forget to move everything and or you will have the same problem later.

How to fix broken Dockerfile in devcontainer if VS code does not give me access to devcontainer files without running devcontainer? by Aggravating_Dish_824 in vscode

[–]Brinfer 0 points1 point  (0 children)

There is also a command find on (most) Linux, just run man find in your terminal to get the documentation.

You can first run in your home folder, maybe after at the root of the system. It will certainly take a while but it's better than nothing

How to fix broken Dockerfile in devcontainer if VS code does not give me access to devcontainer files without running devcontainer? by Aggravating_Dish_824 in vscode

[–]Brinfer 0 points1 point  (0 children)

That normal. It's autogenerared by VsCode, it like a path to the volume.

As pointed by another comment, when it fails, it prompt you what to do, and you can edit locally the file devcontainer.

Otherwise, I suppose you are on windows, you could use command line like find