Issue with FTP-Sync, using command "ftp-sync:init" I get error message: "Cannot read property '0' of undefined" - visual-studio-code

I have downloaded vs code to my mac and am trying to connect to the server using the ftp-sync extension built into vs code. After installing ftp-sync, I tried to use the command ftp:sync-init and the following error appears:
"Command 'Ftp-sync: Init' resulted in an error (Cannot read property '0' of undefined)".
I'm a beginner at using VS Code and don't know how to fix the problem and need to get my server going asaap to access files.

You have to first open a folder either empty o or an existing project so the .vscode can be created.

Related

VS Code Error: "You don't have an extension for debugging YAML. Should we find a YAML extension in the Marketplace?"

I'm trying to compile a program, and when I try to debug and run the script I get an error that reads "You don't have an extension for debugging YAML. Should we find a YAML extension in the Marketplace?"
I opened VS Code and tried to run the script, but I got the error.
Assuming you already have the necessary language support, and the program you are attempting to compile is in dart, you may be encountering this issue.
As stated in the linked thread, select main.dart so it's the currently active file, then attempt to debug and run. One cause of this error seems to stem from having pubspec.yaml as the current file open in VS Code.

Machine not connecting to Github

I'm trying to follow along with a tutorial video and I am unable to get past the 1st step of creating the project using react next js. Within Visual Studio Code I enter the following then am giving the response -
after opening vscode and opening a terminal I type
-npx create-next-app -e with-tailwindcss ( then my projects name )
After I press enter, the files start to download, but then I receive an error as stated below
-Downloading files for example with-tailwindcss. This might take a moment.
? Could not download "with-tailwindcss" because of a connectivity issue between your machine and GitHub.
Do you want to use the default template instead? ยป (Y/n)
I am unable to start the project because I am receiving the error that there is a connectivity issue between my machine and github. I do not understand why because I have never seen this error before prior to using the command npx- create-next-app -e with-tailwindcss
If I type npx create (project name) I do not receive an error and there is no connectivity issue between my machine and github.
Does anyone know how to solve this? I have been browsing everywhere and cannot find the solution. Thank you !

"Weird, but the extension you are currently using could not be found" when debugging VSCode extension

Attempting to run my VSCode extension locally shows the command I added to the menu, but for some reason fails to find the extension after attempting to invoke the command?
Edit: Found the culprit! Missed a replacement of the old publisher and the mismatch was causing issues. It was in the extension.ts under KnownExtensionNames. Not having the new publisher name before the extension name was causing it to be unable to find the extension even though the functionality was still there.

avr-g++.exe: error: device-specs/specs-avr2: No such file or directory

I'm trying to install Marlin on an Ender 3. But Arduino IDE is giving me this error:
C:\Users\Michael.Heredia\Downloads\Marlin-2.0.x\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h: In member function 'void U8GLIB_SSD1309_128X64_HAL::init(pin_t, pin_t, pin_t)': C:\Users\Michael.Heredia\Downloads\Marlin-2.0.x\Marlin-2.0.x\Marlin\src\lcd\dogm\HAL_LCD_class_defines.h:134:5: error: 'init' is not a member of 'U8GLIB'
U8GLIB::init(&u8g_dev_ssd1309_hw_spi, (uint8_t)cs, (uint8_t)a0, (uint8_t)reset);
I've decided to try auto build Marlin on VSCode but cannot get past this error:
avr-g++.exe: error: device-specs/specs-avr2: No such file or directory
I've looked across many forums and the most common issue seems to be adding or deleting something in the path. Judging by the fact that it is a No such file or directory error, I need to add something to the path, but all the solutions I've found seem to have different things, and none of them seem to explain where I find the directory to add to the path.
How can I solve this?
Close VSC and go to C:\Users\yourname and delete the .platformio folder.
Restart VS Code and you should get a fresh install of Platformio.
This should get you going.

Correct reference to VS120COMNTOOLS is lost when refreshing EntityFramework 6 .1 model from database

I have tried previous solution of manually setting the variable VS120COMNTOOLS to correct location using Visual Studio 2013 command prompt. I then started the VS using 'devenv' command.
When Visual Studio opens and try to build my project, I don't get the original error stating the required EntityFramework DLL is not found. Instead I get errors in DBModel.cs and Model.context.cs. In each file there is one line 'ErrorGeneratingOutput'
I am locked in a loop as follows.
I update model from database (refresh or adding a new table)
The build does not work giving the following error.
The host threw an exception while trying to resolve the assembly reference
'%VS120COMNTOOLS%..\IDE\EntityFramework.dll'. The transformation will not be run. The following Exception was thrown:
System.ArgumentException: Illegal characters in path.
at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
at System.IO.Path.IsPathRooted(String path)
at Microsoft.VisualStudio.TextTemplating.VSHost.TextTemplatingService.ResolveAssemblyReference(String assemblyReference)
at Microsoft.VisualStudio.TextTemplating.Engine.ResolveAssemblyReferences(ITextTemplatingEngineHost host, TemplateProcessingSession session) C:\tmp\PatternSpyGUI\PatternSpyGUI\Model.tt 0 0 PatternSpyGUI
I quit VS and using the command prompt set VS120COMNTOOLS correctly and start VS.
Now when I try to build, I get the above stated errors in DBModel.cs and Model.context.cs.
How can I get out of this situation?
I had the same problem. As per instructions online, I ran the command to change the location of VS120COMNTOOLS and received the same error. Turns out I was encasing the path in quotes. Running the same command without quotes as below fixed the issue for me.
set VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7
My edmx files seem to be working after that.