vscode | Visual Studio Code | Code Editor library
kandi X-RAY | vscode Summary
kandi X-RAY | vscode Summary
Visual Studio Code
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vscode
vscode Key Features
vscode Examples and Code Snippets
Community Discussions
Trending Discussions on vscode
QUESTION
Flutterfire just added a CLI for us to use but I'm having a problem with the flutterfire configure command
. I keep getting this error:
i Found 0 Firebase projects. Selecting project liveasy-1. FirebaseCommandException: An error occured on the Firebase CLI when attempting to run a command. COMMAND: firebase --version ERROR: The FlutterFire CLI currently requires the official Firebase CLI to also be installed, see https://firebase.google.com/docs/cli#install_the_firebase_cli for how to install it.
Even though I've installed the firebase CLI and can run firebase --version
with no issues . I installed the standalone binary and when that didn't work I installed it with npm as well. I can login and see my projects list but running flutterfire configure
seems to be an issue. I can't also access any firebase commands in vscode.
I'm I supposed to add something to the PATH in environmental variables? I've already added the cache/bin/ where flutterfire resides but I don't know how to do the same for firebase.
...ANSWER
Answered 2021-Dec-20 at 05:58For solving the standalone issue part of your question:
1 copy the downloaded .exe to your flutter project folder
2 rename it from firebase-tools-instant-win to just firebase (exe)
3 run "firebase login" from cmd line in the folder where you put the .exe and continue with flutterfire configure
This is a quick setup for a single project, if you plan to use firebase cli across multiple projects, you need to rename and move the .exe to a suitable location and fix env/paths issues.
QUESTION
If i search the same question on the internet, then i'll get only links to vscode website ans some blogs which implements it.
I want to know that is jsconfig.json
is specific to vscode
or javascript/webpack
?
What will happen if we deploy the application on AWS / Heroku, etc. Do we have to make change?
...ANSWER
Answered 2021-Aug-06 at 04:10This is definitely specific to VSCode.
The presence of jsconfig.json file in a directory indicates that the directory is the root of a JavaScript Project. The jsconfig.json file specifies the root files and the options for the features provided by the JavaScript language service.
Check more details here: https://code.visualstudio.com/docs/languages/jsconfig
You don't need this file when deploy it on AWS/Heroku, basically, you can exclude this from your commit if you are using git repo, i.e., add jsconfig.json
in your .gitignore
, this will make your project IDE independent.
QUESTION
When I launch in VSCode dlv dap debug, I get this message:
...ANSWER
Answered 2021-Aug-13 at 15:50You might have some luck switching the delveConfig to use legacy mode:
QUESTION
I am using React-native for my app. I have named my name reactamplify
. I want to deploy my app to Google play-store. For automation deployment I am using first time fastlane
. I found this documentation, follow the steps and give API grant access. In my React native app, I navigate to android
folder then run this command fastlane init
. Give json_key_file
path my downloaded auth json file. But I got confused about package name. I search my app name in vscode com.reactamplify
replace them into com.example.todo
. Then run android folder fastlane supply init
, I am getting this error: [!] Google Api Error: Invalid request - Package not found: com.example.todo.
I really don't know how to fix it :(. Really lost TBH.
When I run fastlane supply
. I got this image
PS: It would be awesome if someone gives me example with images
...ANSWER
Answered 2021-Oct-29 at 04:46I found the reason. I need to upload at least one build to google Play store app manually. That’s why I got package name error.
QUESTION
router.get('/cells', async (req, res) => {
try {
const result = await fs.readFile(fullPath, { encoding: 'utf-8' });
res.send(JSON.parse(result));
} catch (err) {
if (err.code === 'ENOENT') { // Object is of type 'unknown'.ts(2571) (local var) err: unknown
await fs.writeFile(fullPath, '[]', 'utf-8');
res.send([]);
} else {
throw err;
}
}
...ANSWER
Answered 2021-Oct-03 at 06:44In JavaScript/TypeScript you can throw anything, not only errors. In theory it could be anything in the catch block. If you want to prevent the type error it could make sense to check if the unknown
value is a system error before checking the code.
QUESTION
This problem started a few weeks ago, when I started using NordVPN on my laptop. When I try to search for an extension and even when trying to download through the marketplace I get this error:
EDIT: Just noticed another thing that might indicate to what's causing the issue. When I open VSCode and go to developer tools I get this error messege (before even doing anything):
"(node:19368) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Use Code --trace-deprecation ...
to show where the warning was created)"
The only partial solution I found so far was to manually download and install extensions.
I've checked similar question here and in other places online, but I didn't find a way to fix this. So far I've tried:
- Flushing my DNS cache and setting it to google's DNS server.
- Disabling the VPN on my laptop and restarting VS Code.
- Clearing the Extension search results.
- Disabling all the extensions currently running.
I'm using a laptop running Windows 10. Any other possible solutions I haven't tried?
...ANSWER
Answered 2021-Dec-10 at 05:26December 10,2021.
I'm using vscode with ubuntu 20.04.
I came across the XHR errors from yesterday and could not install any extensions.
Googled a lot but nothing works.
Eventually I downloaded and installed the newest version of VSCode(deb version) and everything is fine now.
(I don't know why but maybe you can give it a try! Good Luck!)
QUESTION
how I can fix it? I've tried to create "soft link" like sudo ln /snap /var/lib/snapd/snap
and also sudo ln /var/lib/snapd/snap /snap
--> but it doesn't work. I just want to install VSCode in Manjaro
ANSWER
Answered 2021-Jul-29 at 13:43I use Manjaro too and have the same problem today, it happens after update some pkgs. And snapd can't install vscode for now.
And if you have the same problem as my, you should uninstall the vscode first and delete the .desktop file located on /home/your_username/.local/share/applications
To install I downloaded the .deb version on Visual Studio Code website, and converted it to something pacman could install.
Now a little tutorial on how to do that
How to install .deb on manjaro (arch linux)The package that convert .deb is debtap, but it is only available on AUR. So first u'll need to install pacaur
QUESTION
ANSWER
Answered 2022-Feb-28 at 16:45Your specific case - a series of Arabic characters - might no longer be highlighted in vscode (even with the following settings enabled) as vscode is getting a little smarter about strings of characters it would otherwise highlight.
Contextual Unicode HighlightingTo report fewer false positives, ambiguous and invisible unicode characters are no longer highlighted if the surrounding characters visually indicate a non-ASCII script.
Thus, in trusted workspaces, only characters that are invisible or can be confused with ASCII characters are highlighted, except those that are contained in a word of non-ASCII characters where at least one character cannot be confused with an ASCII character.
Try disabling one or more of these settings (set to false
):
Editor > Unicode Highlight: Non Basic ASCII
Editor > Unicode Highlight: Ambiguous Characters
also see https://stackoverflow.com/a/70293571/836330 for more on the Unicode Highlighting options. And https://stackoverflow.com/a/70297896/836330 and https://github.com/microsoft/vscode/issues/138767.
There is also a way in vscode v1.64 to add another locale to your environment so that its characters will not be highlighted as questionable unicode characters.
New setting: Editor > Unicode Highlight: Allowed Locales
Use this when your display language is something other than the language you are using in your files, like French, Russian, Japanese, etc. that is causing the unwanted unicode warning highlights.
Download the language pack you need:Search in the Extensions view for "language packs". I believe only the Microsoft language packs are supported in the Allowed Locales
at this time. The picture above shows the French Language Pack. Install it.
Allowed Locales
setting.
To find the right "code", the easiest is to open your Command Palette after installing the language pack and search for
Configure Display Language
. You don't want to change your display language but it will show the available language codes:
We see we need fr
as the code.
It will make a setting like this in your settings.json
:
QUESTION
I get the following error when i want to start my vue 3 typescript project:
...ANSWER
Answered 2021-Nov-21 at 18:01That actually is a bug.
See, they use import()
function on a string, that is the result of path.resolve()
call. As you have already noticed, the import()
function only works with file://
and data://
URLs, but path.resolve()
only returns an absolute path (not a URL), which on Windows environment usually starts with the name of the local disk (e.g., C:
).
QUESTION
First, the question: is there a way to choose the platform (e.g. x86_64, AMD64, ARM64) for a GitHub Codespace?
Here's what I've found so far:
Attempt 1 (not working):
From within GitHub.com, you can choose the "machine" for a Codespace, but the only options are RAM and disk size.
Attempt 2 (EDIT: not working): devcontainer.json
When you create a Codespace, you can specify options by creating a top-level .devcontainer
folder with two files: devcontainer.json
and Dockerfile
Here you can customize runtimes, installed packages, etc., but the docs don't say anything about determining architecture...
...however, the VSCode docs for devcontainer.json
has a runArgs
option, which "accepts Docker CLI arguments"...
and the Docker CLI docs on --platform say you should be able to pass --platform linux/amd64
or --platform linux/arm64
, but...
When I tried this, the Codespace would just hang, never finishing building.
Attempt 3 (in progress): specify in Dockerfile
This route seems the most promising, but it's all new to me (containerization, codespaces, docker). It's possible that Attempts 2 and 3 work in conjunction with one another. At this point, though, there are too many new moving pieces, and I need outside help.
- Does GitHub Codespaces support this?
- Would you pass it in the Dockerfile or devcontainer.json? How?
- How would you verify this, anyway? [Solved:
dpkg --print-architecture
oruname -a
] - For Windows, presumably you'd need a license (I didn't see anything on GitHub about pre-licensed codespaces) -- but that might be out of scope for the question.
References:
https://code.visualstudio.com/docs/remote/devcontainerjson-reference
https://docs.docker.com/engine/reference/commandline/run/
https://docs.docker.com/engine/reference/builder/
https://docs.docker.com/desktop/multi-arch/
https://docs.docker.com/buildx/working-with-buildx/
ANSWER
Answered 2021-Dec-17 at 21:44EDIT: December 2021
I received a response from GitHub support:
The VM hosts for Codespaces are only x86_64 and we do not offer any ARM64 machines.
So for now, setting the platform does nothing, or fails.
But if they end up supporting multiple platforms, you should be able to (in Dockerfile)
RUN --platform=arm64|amd64|x86-64 [image-name]
,
Which is working for me in the non-cloud version of Docker.
Original answer:
I may have answered my own question
In Dockerfile
:
I had RUN alpine
changed to
RUN --platform=linux/amd64 alpine
or
RUN --platform=linux/x86-64 alpine
checked at the command line with
uname -a
to print the architecture.
Still verifying, but seems promising. [EDIT: Nope]
So, despite the above, I can only get GitHub codespaces to run x86-64. Nevertheless, the above syntax seems correct.
A clue:
In the logs that appear while the codespace is building, I saw target OS: x86
Maybe GitHub just doesn't support other architectures yet. Still investigating.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vscode
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page