python_stubs directory placed in wrong location (PyCharm 3.4) - directory

my current Win7 environment has the user home set to a network drive. Because of that PyCharm startup is taking a long time. Therefore I changed idea.properties to these values:
idea.config.path=c:/config/.PyCharm30/config
idea.system.path=c:/config/.PyCharm30/system
All is working fine and startup is much faster now. But a background process is rebuilding the skeleton files (which takes a long time) and is placing them here:
<myNetworkDrive>:\.PyCharm30\system\python_stubs\-1234567890\
It seems that this skeleton process doesn't follow the settings in idea.properties. Or is there any other setting I have to make?
Thanks,
Best regards,
Michael
I copied and adapted this from here because it is unanswered, thanks to Marcel for that question:
http://forum.jetbrains.com/thread/PyCharm-1971

Not sure if this is the write way. I've changed file config/options/jdk.table.xml.
It worked for me.
I've changed line
<root type="simple" url="file://$USER_HOME$/.PyCharm30/system/python_stubs/1167955305" />
to
<root type="simple" url="file://$APPLICATION_HOME_DIR$/system/python_stubs/1167955305" />

Related

Zsh: tab completion for files not in the current directory?

I'm new to zsh and I'm trying to figure out how to get tab completion to work so that when I typed part of the name of a file that's not in the current directory zsh will complete it.
The idea is that I have some scripts in ~ and c:\MyStuff\bin and I'd love for zsh to try and complete those (executable) scripts when I'm in other directories.
Being able to complete files that are anywhere in my path would be nice, but if it's easier to complete files using a list of directories set in my .zshrc, well, that would work fine too.
If anyone has any pointers for resources about how to do this, or even advice like "This will / won't work in zsh" that would be great. zsh seems open-ended enough that it ought to be able to do this AND ALSO I've searched long enough without finding anything that I wouldn't be surprised if there's nothing at the end of this rabbit hole :)
Thanks in advance!
So I decided to invest the time and actually try and read the (very, very thorough) zsh completion docs. There's a lot there, including a section which says that zsh actually does this out of the box:
8 Command Execution
"...the shell searches each element of $path for a directory containing an executable file by that name..."
Turns out this does work for me, it just takes a long time (more than a second or two) and so I thought it wasn't working.
Next up: looking at why it's taking so long - perhaps it's my very long $path variable :)

Saving <file.php>: Running 'phpcbf' Formatter (configure)

I've recently set up WP coding standards in VSCode by following https://www.edmundcwm.com/setting-up-wordpress-coding-standards-in-vs-code/.
With this setup files aren't getting saved and shows this message at the bottom right:
Saving ‘plugin.php’: Running ‘phpcbf’ Formatter (configure).
The only way to save is to press Cancel when this appears.
Any idea?
Please use which phpcs & which phpcbf to find the paths.
which phpcs
e.g. "C:\Users{Your username}\AppData\Roaming\Composer\Vendor\bin\phpcs
which phpcbf
e.g. C:\Users{Your username}\AppData\Roaming\Composer\Vendor\bin\phpcbf
once you find the paths to the executables, open your vscode json settings and add double check that the executable settings for phpcs & phpcbf match the paths.
Examples:
"phpcs.executablePath": "C:\Users\{Your username}\AppData\Roaming\Composer\Vendor\bin\phpcs.bat",
"phpcbf.executablePath": "C:\Users\{Your username}\AppData\Roaming\Composer\Vendor\bin\phpcbf.bat",
I think this issue is pretty widespread despite the lack of answers in this thread. Setting the paths as above does not fix things. For me, this happens when saving a file and there is nothing for the formatter to fix.
There is an open pull request for this issue that has been open for over a year now.
A fork of the project has popped up that specifically fixes this issue. Look for phpcbf in VSCode and find the one by Simone Baldini.
Try installing that to see if it resolves the problem.

Prevent Atom Editor from auto creating files

at the moment I try to experiment a little bit with Atom for writing an API documentation with RAML. Everything works fine but one damn thing:
Everytime I type some file paths (e.g. !include schemas/file.schema Atom auto creates the file when I'm not quick enough with typing. So, in some cases I have a hole bunch of file-zombies in my schema folder. That's kind of annoying.
My setup is standard Atom on MacBook, with api-workbench plugin, which includes linter as well. I already had a look at all those settings concerning auto completion - nothing found there. Also, Google doesn't show any hints. Any Tips?
Best regards,
Chris
It looks like this is a defect in the api-workbench package:
Api workbench creates new schemas, while i type their paths. For example below, i can see two-three files created while i type full name:
E.g:
schemas:
- myschema: !include schemas/myschema.json
Will create following files:
schemas/my
schemas/mysche
schemas/myschema
schemas/myschemas.json - this file is existing, i've created it before. all other files are redudant and i have to delete them.
Bug is not reproduced with examples, which i can also include in my document. Having issues while edition RAML 0.8 files.
If you want to help the package maintainers fix the defect, can I suggest you put together a minimal but complete example that reproduces the issue, this will make it easier for them to identify and resolve the issue.

Doxygen with classic ASP (VBscript)

Is it possible to use Doxygen on classic-asp-files (written in VBscript)?
I found something called vbfilter.py, but I don't know how to use it. Can somebody please help me?
Finally, i could get it running.
requirements:
python 2.x
https://code.google.com/p/doxy-filter/source/browse/trunk/vbfilter.py?spec=svn1&r=1
download the vbfilter.py from Basti Grembowietz
in vbfilter.py modify def filter. you have to add a line for "asp".
then save the file in the root directory of the project
in Doxygen-settings, in the expert/input-area you have to set input_filter to vbfilter.py and the file_patterns to *.asp
(if you have python 3.x, there is another version, but take care. it's optimized for japanese usage. somewhere in that vbfilter.py codepage is set to CP932 and you have to set it to IS-8859-15 or whatever you need )
Looks like you will have to ask the developer to add support for classic ASP. The "vbfilter.py" you found is Python, really not relevant as far as I can tell.
In the official page he says:
You can submit enhancement requests in the bug tracker.

Flex 3 Localization: Removing a Locale

Although I'm still poking around in the docs and online, I figured I'd ask this one here, for future folks who run into it.
Using copylocale for localization, I made a typo (e.g., "en_FR" instead of "fr_FR") and mistakenly created a locale I don't want. What's the proper way to remove it? Is it enough to simply delete it from my framework directory, or is there a helper app somewhere that handles the cleanup if there's more to it than that?
Thanks in advance!
you should be able to simply delete it from the locale directory. The copylocale just creates a copy, nothing more. Just nuke it and you should be good to go. More information here:
http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Runtime_Localization

Resources