The cypress folder isn't generating, I've tried npx cypress open, ./node_modules/.bin/cypress open and it's still not generating.
Also uninstalled and reinstalled cypress multiple times, clearing the cypress folder in %appdata% every time, but it still won't generate. Any ideas?
This is all that generates
You have to first initialise the project using npm init.
Then install cypress using npm install cypress, as of the today the current version is 10.3.0, that should be installed.
Then You have to run the command npx cypress open, then you should see a window like this:
Click on E2E Testing and then cypress will give you a bunch of default configs that it's gonna add.
Click on Continue button, you should get the Browser selection page.
Click on Start E2E testing in Chrome and you get Create your first spec page.
Click on Scaffold Example Specs and then Okay, I got it. This will add all the example specs to your e2e folder.
After this you should see all the required files and cypress folder is created:
Related
I am trying to format my code using Prettier, but when I try to format it by saving the file, by clicking "Format document with" or by any other way it just doesn't format and the Prettier button turns red and appears this ! icon.
I reinstalled VS Code and Prettier hundreds of times. Any idea of how I can fix this?
Here are the images of what is happening:
Image of the red button:
When I click, it returns to its normal color, but nothing happens
There are two cases here, you're either working on a:
non-Node project (doesn't have package.json) - delete any unnecessary package.json files from current folder and immediate parent folders.
Node.js project (contains package.json file) - Run npm install, or npm install prettier --save-dev (in the terminal at the folder level) if it still doesn't work.
I had the same problem. In my case, I had a useless package.json file in the parent folder, which was causing all the issue. I was working on a simple HTML, CSS and JS project.
I am doing leetcode exercises on vscode, using this extension:
However vscode keeps sending error notifications about the golang codes written locally lack of main module
How can I disable vscode error notifications? As those golang codes are used to run remotely, so there are no needs to compile locally
Check first if you can disable the Go extension, just for your current (leetcode) workspace.
If you don't want to permanently remove an extension, you can instead temporarily disable the extension by clicking the gear button at the right of an extension entry.
You can disable an extension globally or just for your current Workspace.
You will be prompted to reload VS Code after you disable an extension.
By disabling it just for the workspace, you can still use Go for Go projects in a separate workspace in the same VSCode.
On the first compile the project is build correctly and running on both device or simulator. After that if I apply a change on the code and try the Hot Restart and rebuild the app doesn't rebuild and does not show the new modification.
Even if I try flutter clean in order to clean the solution, Deleting the 'build/' path and flutter run after but the same issue occurs again.
Or rm -rf build && flutter run
I've updated both the Visual Studio Code and Flutter (version 1.9) in order to be up to date retry but does not make any change at all.
I have tried to run the app from Xcode too after flutter clean and get the same issue.
Below I'm attaching a simple print screen in order to show a simple change I've applied on a demo project on the title string value and the solution on the simulator (the same one I get on physical device too) with the code modification, and the app that doesn't rebuild.
P.s: I've check this one too https://github.com/flutter/flutter/issues/17155
And this one https://github.com/flutter/flutter/issues/18736 deleting files in ios/ and android/, running flutter clean, flutter create . in order to recreate the files and at the end flutter run
In your screenshot, the main.dart file appears to be unsaved (it has a dot in the tab). If the changes aren't saved, reloading in the terminal won't apply those changes.
That said, there is a much better way than running flutter run from the Terminal - use F5 (or Debug -> Start Debugging). When running that way, not only to you get a full debugger, you will get hot-reload-on-save as well as other debug functionality and easy access to DevTools!
There's more info on running and debugging in VS Code here:
https://flutter.dev/docs/development/tools/vs-code#running-and-debugging
So my understanding from the documentation to perform a publish is I need to call 'electronize build /target win'. This builds the project. However, there are some issues I'm unsure how to address.
The content path when I try to run it says the content root is C:\Windows\system32 instead of the actual working directory where the .exe resides. That isn't correct. Any ideas why? I think some of the other issues are caused by this.
Edit: I found out #1 uses the correct directory if it is ran as administrator. Unsure why.
How does one hide the command menu that comes up? all i want is the electron window to show on publish.
I see an electron window come up like when i run 'electronize start' but not after publishing. Any ideas?
Please try the latest version of Electron.NET. During development, a development menu is displayed. A standard behavior of Electron if you not have your own menu. With a build, the development menu is hidden again.
So, when my Cypress app opens up, all the folders are defaulted to open, I couldn't find a configuration to have them in a closed state when it launches.
How do you default the folders to a closed state, in cypress?
This does not appear to be possible. Settings are stored per-project in the cypress.json file at the root of your project folder. I went through that file and I can confirm that there is not a setting for this.
If you would like to see this in Cypress in the future, consider submitting a feature request on github. I did a quick search and did not see this suggested anywhere.