Change the default directory for Brackets - adobe-brackets

I have tons of files in my home directory (~), and each time I open Brackets, it tries to load and index all the files there. Eventually, after freezing for a minute, it throws the error:
Error Indexing Files: The maximum number of files have been indexed.
I can of course switch directories after this freeze, but how do I set the default directory for Brackets to be another directory (not the home directory), thus avoiding this freeze each time Brackets is initiated?

Brackets should be remembering whichever project you had open last. Your state settings file may be corrupt. Try these steps:
Quit Brackets
Navigate to the following folder:
Mac: ~/Library/Application Support/Brackets
Linux: ~/.config/brackets
Find the state.json file and change the projectPath parameter to a new default path
If state.json cannot be found, make sure this folder has write permissions for your user account
If the above did not work, try opening the state.json to see if it's corrupted (possibly by a buggy extension). If all fails delete the file altogether and restart.

Related

How to permanently change the default working path of julia?

I was able to temporarily change it with the following command, but after reboot the working path still changes to C drive.
cd("D:\\jl files”)
As it is explained in the Julia Manual Getting Started section the simplest thing to do is to add the:
cd("D:\\jl files")
line to your ~/.julia/config/startup.jl file (this is a Linux path; if the file does not exist then you should create it with this single line). Since you are on Windows then ~ part should be replaced by default is your user profile folder (it should be possible to check it with ENV["USERPROFILE"] command in Julia). However, if you have a custom installation the .julia folder can be placed in some other folder so you need to check it on your system.

What is the reason that kernel need execution permission to traverse in directories?

In *nix it is being said that, everything is considered as file (even it is a directory). Then, If directory is a file which does not contain any binary or any executable data, but only contain inode number and file name, then what is the need of "execute" permission for directory file ???
Here i attached screen-shot, that showing directory has execute permission
also i have seen(on another site) directory's Execute permission means:
"Execute bit = You can make this directory your working directory".
but just making "directory as our working directory" is it the only one reason to provide "Execute" permission for directory ??
please can any one provide the exact reason for "execute" permission.

Checking if a folder is currently being used

How can I check if a directory is currently being used in Qt? By "being used", I mean that a file in this folder is open (a .exe for example, as I am working on Windows).
I tried with QFileInfo::IsWritable() but it doesn't seem to work on directory, plus it's only to know if you can rename the file apparently (I tried this on my .exe and the result was true, even if my .exe was being... executed).
Any idea?

Working directory error

I am working with PyCharm 4.04. Since I installed it, every time I open it, as default directory I get this:
C:\Users\Laura\AppData\Local\Temp\main.py1.tmp>cd
Which gives me an error when trying to use the console:
Error:Cannot start process, the path specified for working directory
is not a directory
But even if I change the directory, the message does not disappear.
The terminal, though, it does work and I can run projects, but I would like to use the console.
Another solution is to close the project, run rm -rf .idea and re-open it. Apparently Pycharm gets confused by some direct folder manipulation and doesn't reflect it properly in his .idea/*.xml files
I also got this error, and it got resolved by setting the default working directory. Follow the below path, and set the Working Directory to the folder where your code resides.
File > Settings > Build, Execution, Deployment > Console > Python Console > Working Directory ...
I finally solved the problem.
I think it all started because the first project that I opened with pycharm was in my "download" folder, so the working directory was automatically set to a temporal folder by default and allthough I moved the project to another folder and I manually changed the working directory from the terminal, it was not working.
The solution was creating a new project and giving a correct path to the new project. It seems very easy but it was not that obvious.
In the upper right corner click on small ▼ next to your main to run (look to the left from green right-pointing triangle)
Select Edit configurations.
In ▼ Python select the proper configuration name.
Look at the Configuration panel.
Fix items Script and Working directory.
pycharm
I had this same problem and just had to reinstall pycharm. It's a quickfix and I can't ensure it won't happen again.
I solved this by replacing all instances of the old filename and old directory with the new one in .idea/workspace.xml
It can be done with PyCharm running.
#user1068430 has the answer in the comments to the question:
When you open a project open the directory not a specific python file.
Instead of ~/Documents/myProject/main.py open ~/Documents/myProject
If you "open" the .py file then you'll have to set the working directory (File > Settings > Build, Execution, Deployment > Console > Python Console > Working Directory) every time. If you "open" the directory containing the .py file, then PyCharm will open and all of your .py files will be available in the left window. Select one of them and you're good to go.
i had the same issue, the error comes up when i want to upgrade my packages and when i run my project "this FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\youruser\AppData\Local\Temp\gen_py\3.7\__init__.py'" i found that the Temp file in C:\Users\youruser\AppData\Local was corrupt and it was fixed by deleting the "Temp" file, once deleted it will automatically create a new one with "gen_py" in it
To anyone with similar issues: Python interpreter virtual environment is where your python.exe sits. The working directory is where your script sits. To make everything easier, open a new project, scroll to location where you script is stored, and select. Click the interpreter option, click existing (if old one worked) or choose the python.exe. When asked, open the project in a new window, close old one to avoid confusion.
source = banging my head against the console for past few hours.
if the above mentioned solutions are not working, you can restart a new project.
file > New project...
then,
create a new project.

how do I skip files and the directories that contain them with the skip directive in msdeploy?

We are deploying a website to a DFS share. DFS creates shortcut files with the name .DFSFolderLink.lnk in various locations. Admins on the box do not have rights to delete this shortcut file. So if any exist I need to exclude them from deployment, so that they will not be deleted.
I can already exclude the .DFSFolderLink by passing -skip:File=.DFSFolderLink.lnk to msdeploy. However, if the directory that contains the shortcut file does not exist in the package being deployed, then an error is raised because it tries to delete the folder but cannot because the shortcut file still exists.
How can I get it to exclude the shortcut file and the directory that contains it without knowing ahead of time what the directory name is?
If you don't know the name of the directory, you can't skip it. What you can do is tell msdeploy to ignore the "directory not empty" error using the ignoreErrors provider setting:
msdeploy -verb:sync -source:... ^
-dest:auto,ignoreErrors=80070091,computerName=... ^
-skip:File=\.DFSFolderLink.lnk

Resources