Is it possible to change the cypress.config.ts/cypress.config.js location instead of have it on the root of the project? - cypress

Is a way to change thecypress.config.ts file's location instead of having it in the root of the project along with the package.json, tsconfig.json?
I changed the file (cypress.config.ts) location but it doesn't work I got an error message :
Could not find a Cypress configuration file in this folder:
/Users/Mycomputer/cypressDemoPomExample

I figure out how to fix it
You can simply run the command :
npx cypress open --config-file theNewCypressConfigPath

Related

Ambiguous organization in existing files:{ .... }. The --org command line argument must be specified to recreate project

While trying to run my existing flutter app on windows, got the following exeption - "Exception: No Windows desktop project configured. See https://flutter.dev/desktop#add-desktop-support-to-an-existing-flutter-app to learn about adding Windows support to a project".
After i entered the given url and trying to run the command: "flutter create --platforms=window,macos,linux ." it says: "Ambiguous organization in existing files: {il.co.project.pos, com.example}. The --org command line argument must be specified to recreate project."
Here trying to run on windows
Here trying to run the create command
choose the package name:
package_name = com.xxx
flutter create --org com.xxx .
run flutter create --org your_package_name project_name
You can try this command in your projects root folder
flutter create --platforms=windows --org=com.example.org_name .
You Probably re-use the code for new project and changed the package name that's why its causing conflict with your project
use
flutter create --org package_name .
For those wondering, you will also get this error by having a parent directory name using dashes like: this-will-fail should be: thiswillfail
After that run: flutter create --org=com.project.web .
if you run inside terminal for web if you want for iOS then simple change web on iOS like flutter create --platforms=web. if then show error like this kind of error Ambiguous organization in existing files: {com.ecobuy, com.eco_buy}. The --org command line argument must be specified to recreate project.
then simply write below line
flutter create --platforms=web --org=com.example.org_name

SCSS file watcher cannot open file - WebStorm

I can't get WebStorm's SCSS file watcher to compile the Bootstrap SCSS files.
I have downloaded sass-dart for Windows and have tried pointing WebStorm's file watcher to dart-sass\sass.bat and dart-sass\src\dart.exe
The file watcher is enabled, it's not the common issue I've seen in other questions here where the file watcher keeps disabling itself.
Here is the file watcher setup I am using in WebStorm:
When I use dart-sass\src\dart.exe the result is:
Could not load "bootstrap-grid.scss:bootstrap-grid.css": Unknown scheme (bootstrap-grid.scss) for bootstrap-grid.scss:bootstrap-grid.css
null
and when I use dart-sass\sass.bat the result is:
Error reading bootstrap-grid.scss:bootstrap-grid.css: Cannot open file.
Obviously I'd prefer it to run with no errors and spit out correctly compiled CSS files!
Works fine for me using similar watcher setup. What Working directory: did you specify for your file watcher? Please make sure that it's set to $FileDir$:

E0611 error on import when I know the file exists

With pylint, I'm getting an E0611 error on an import when I know the file exists and the script runs fine. Suggestions? I annotated the image below with the error.
Try this:
In VS Code Preferences > Settings, change the "python.linting.pylintPath" to the virtual env path "/bin/pylint"
https://github.com/Microsoft/vscode-docs/blob/master/docs/python/linting.md
Removing all ignored files (in the __pycache__-folder, etc.) using the command git clean -dfx fixed the issue for me. (Warning: Ensure you do not have any important git-ignored files which you want to keep before executing this command.)

Relative path in configuration file

I created a shortcut to my application:
'C:\Program Files\Tools\Dir\Exe\Starting.exe'
My structure is like this:
Tools->Dir->Exe
Tools->Dir->Applications
In Exe folder I have a config file that should start an app from Applications folder.
I tried this in configuration file:
'.\Applications\MyFirstApp\MyFirstApp.exe', but its not working.
I need a relative path that is working for:
'C:\Program Files\Tools\Dir\Applications\MyFirstApp\MyFirstApp.exe'
Thanks
You almost have the answer. The correct code to jump back to another folder is :
..\Applications\MyFirstApp\MyFirstApp.exe

PHPUnit needs an absolute path to phpunit.xml

I am trying to use phpunit through the CLI in order to migrate from Netbeans to Sublime Text.
I have the weirdest issue when giving phpunit the path to the phpunit.xml file : it only accepts absolute path et refuses any relative path.
Any relative path given to the phpunit.xml file leads to this error :
Could not read "phpunit.xml"
Example :
Maximes-MacBook-Pro:Frontoffice mbritto$ pwd
/Users/mbritto/Documents/Frontoffice
Maximes-MacBook-Pro:Frontoffice mbritto$ phpunit -c phpunit.xml
Could not read "phpunit.xml".
The phpunit.xml is present in this folder and is readable by my user.
It actually works if I don't give the path to the file :
Maximes-MacBook-Pro:Frontoffice mbritto$ phpunit
PHPUnit 3.7.28 by Sebastian Bergmann.
Configuration read from /Users/mbritto/Documents/Frontoffice/phpunit.xml
#Preparing Application Unit Tests
.^C
Or if I give the absolute path to the file :
Maximes-MacBook-Pro:Frontoffice mbritto$ phpunit -c /Users/mbritto/Documents/Frontoffice/phpunit.xml
PHPUnit 3.7.28 by Sebastian Bergmann.
Configuration read from /Users/mbritto/Documents/Frontoffice/phpunit.xml
#Preparing Application Unit Tests
..^C
I need this in order to use the phpunit plugin in Sublime Text which gives the phpunit.xml file to the command line with the path to the file to test.
My config :
OSX 10.9.1
PHP 5.4.24 (via brew)
PHPUnit 3.7.28 (via brew) (also tested with a phar)
Any idea why it would do that ?
I finally found out what was wrong with my tests; in my bootstrap.php file I was doing this :
chdir(dirname(__FILE__) . "/../src/");
So that classes and autoload would find actual classes that are separated from my test classes.
If I remove this line, the tests crashes because it can't find my classes but at least my tests are executed.
I'll work on the include path rather than changing directory so my tests will be working again.

Resources