I am not sure what has changed but now ElixirLS does not work for me anymore. I am using the latest vscode (1.77.3) and the latest elixir ls extension (0.14.3). I have elixir 14.2 and OTP 25 installed through asdf. I get the following messages when starting with the command code . :
ElixirLS - asc_enfusion client: couldn't create connection to server.
The ElixirLS - asc_enfusion server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.
I was just firing up elixir on a new laptop with a fresh install of VSCode and ran into this same problem with ElixirLS. I also had to revert back to v0.13.0. If I upgrade to even v0.14.0, it breaks again. Pretty weird.
I removed the elixir install and reinstalled using the embedded elixir approach. - however there is a dependency (documented here: [WSL - mix deps.get] The application "crypto" could not be found - #9 by thelucassampaio) - which is that you need to install libssl first and then use asdf to install-compile erlang and then elixir.
I started using stm32 MCU's on my university. There we used the CubeIDE. Now I have a board at home for own projects. I wanted to use VSCode with the new extension, because i prefer it over Eclipse / CubeIDE. Now I have two questions. I can debug my program via vscode, but I found no option to just flash it onto the board without debugging. (Where) can I do that?
Another questions that came into my mind related to that is, if I could just build my project without flashing it like you can do it on CubeIDE. When I press CTRL + P in vscode and press run build task i get an error:
A short answer: the VS Code extension looks nice and promising - but it is not quite mature yet. The debugger is the most crucial and valuable part of the developer environment. So, if you know Eclipse at all and can use it, please do yourself a favor and do so. Be productive and (almost) happy. Use the VS Code stuff when it is ready for prime time (or when you feel like improving it and contribute to the community
Of course, many users do this many times every day. Just create a "Run" configuration in CubeIDE, it is similar to "Debug" but stops after loading the program. Another way: use the CubeProgrammer, ether GUI or command line variant. It is a special tool for putting the program on the MCU.
After some working, i finalized a launch.json tha actually flash the microcontroller and then disconnects, but due to early exit of the script VSCode warns about "GDB exited unexpectedly". It works but this script ends with this warning.
We released yesterday a new version of the VS Code extensions. The previous version was not very stable / mature and had far too many dependencies. The new version (2.0.1) strips a lot of dependencies and thereby gets rid of "magic stuff" going on under the VS Code hood. Nobody likes "magic black boxes". Hopefully the new version is much more transparent vs previous version.
Feel free to give it a try. This is a new start and a breaking change. Porting existing projects is a bit messy but described in the Userguide.md (part of VS Code extension). Starting a new project from scratch should however be much more simple than before.
Pre-requisites: STM32CubeMX 6.11.0 and STM32CubeCLT 1.15.0
As Pavel phrased it the question is how to be "productive and (almost) happy".
I think the new VS Code extension will be a much better starting point. It does not bring all advanced debug features. But STM32CubeIDE can be used side-by-side to only benefit from its debug features while managing the code base (edit/compile) from VS Code. I just dropped a screenshot on how to do that here:
The goal of this section is to ensure that the right version of Python and dbt are always available right away when you open your dbt project in VSCode. Sounds simple, but below is a one-time setup guide on how to make it work. More context is that some folks have bundled this set up process into bash scripts and Docker containers.
This is huge because now all your terminals in the VSCode will always have your dbt package available. However, this behavior will not persist the next time you open this repo in VSCode. To make this auto-env selection persist, you must do two things:
A worksapce settings file has the extension .code-workspace and encapsulates all the configuration you might find in a .vscode/ dir into a single file. This file also works as a shortcut that you can double click or navigate to to bring up all your settings.
Its been a while since this thread has been updated, and I just wanted to say that the best way (IMHO) to setup dbt to work with vscode has been to install the dbt-power-user extension along with some other extensions like sqlfluff, vscode-dbt, rainbow-csv etc.
Please note that you do not need to install PlatformIO Core (CLI) separately ifyou are going to use PlatformIO IDE for VSCode. PlatformIO Core (CLI) is built intoPlatformIO IDE and you will be able to use it within PlatformIO IDE Terminal.
Git: If you are going to use Git for installing upstream development platforms, cloningexternal projects, installing library dependencies from a repository, please ensurethat git --version command works from a system terminal. Otherwise, pleaseinstall a Git client.
The menu item Terminal > Run Task... opens up a list of VSCodetasks for PlatformIO. In the line PlatformIO: Build, press thegear icon on the far right side of the list. This creates or opensthe file .vscode/tasks.json with some template code.
You can work with multiple project folders in Visual Studio Code withmulti-root workspaces. This can be very helpful when you are working onseveral related projects at the same time. Read more in the documentationMulti-root Workspaces.
Custom PATH for the platformio command. Paste here the result of echo $PATH(Unix) / echo %PATH% (Windows) command by typing into your system terminalif you prefer to use a custom version of PlatformIO Core (CLI). The default value is null, meaning PlatformIO looks for the platformio command in the system path.
Configure your own PlatformIO Toolbar with your own buttons and attach commands to them.There is no limitation to command scope. You can use Built-in VSCode Commandsor commands from your 3rd party favorite extensions.
The button can be text, an icon, or a mix of them. The list of supported icons is documented in VSCode Icon Listing.You can have different toolbars per workspace thanks to the User and Workspace Settings.
There exist a number of cases of the same situation online but I've never stumbled on the problem with VSCode specifically.
I know the "problem" is with the keyring but why only on VSCode I get this?
That is e.g. the case for chrome/ium or ssh-agent. I don't know what vscode/ium is doing in your case, maybe it tries to access some git repository via ssh connection (so, it might be actually ssh-agent trying to access an ssh-key(?)) or it wants to access some saved git or ssh passwords in the keyring. It might also come from a plugin, e.g. I saw reports that Live Share can cause this.
Until this misbehaving app gets fixed, simply run code --password-store=basic - works at least with code v1.80. It instructs the embedded electron to use its own password store instead of the gnome-keyring stuff.
Another not so good idea is to rename the app used to get the passphrase, on Ubuntu 20.04 e.g. sudo mv /usr/libexec/gcr-prompter /usr/libexec/gcr-prompter.disabled. Other apps which wanna use gnome-keyring would not be able to get the passphrase this way, too.
If you do not care about gnome-keyring at all, you may remove the package gcr (e.g. sudo apt-get purge gcr), which probably removes other packages you may need. So study its output before saying 'yes' ;-).
I'm trying to connect to our databricks instance using the vscode extension. However, when following this guide we cannot get the configuration to proceed past the point that it asks for our instance URL.
First, check the URL and authentication token for accuracy. Ensure there are no network or firewall problems. You can also try using the databricks-cli tool, a different internet connection, or an alternative authentication method like Azure AD credentials.
The error message suggests that there might be an issue with the connection or token. Make sure the host URL is correct and ensure that the token is still valid. It's also a good idea to verify your network connection and any firewall settings that might be blocking the connection to your Databricks instance.
The "Edit" button should launch VSCode. But now, it doesn't. I found it with my Windows 11, and verified with Windows 11 Enterprise Evaluation (here) on VirtualBox 7.0.12. VSCode has been changed something?
The same happened to me today. I believe it was a change in the just released v2024.4.0 of the VSCode python extension. Unfortunately, downgrading the extension to the previously working v2024.2.1 did not solve the problem for me. Luckily it was a fairly simple fix for me so we don't have to wait for Fusion to be updated.
All we have to do is edit the pre-run.py file to change "pythonFiles" to "python_files". This script can be found in Fusion by opening Preferences > API and navigating to the "Default Path for Scripts and Add-Ins." From here, we just need to navigate to the ./Python/vscode directory where the script is stored. On a Mac, the full path may look like "/Users//Library/Application Support/Autodesk/Autodesk Fusion 360/API/Python/vscode/pre-run.py". Edit this file and find "pythonFiles" when setting msPythonPath and change it to "python_files". Restart Fusion and you should be good to go with v2024.4.0 of the ms-python.python extension. Here's the full difference:
The Start with a Stripe Sample button allows you to browse through the catalog and select the right language for your integration. The extension clones and opens the Sample in a new workspace, automatically populating your API keys in the .env file of the Sample.
d3342ee215