Dictionary Location 2020 2.1 RC
I believe I have found the location of the dictionary file, I just want to confirm this is the dictionary: C:\Users\developer.RICHWARE\AppData\Roaming\JetBrains\PhpStorm2020.2\options\cachedDictionary.xml. The dictionary use to be in the .idea folder for the project but appears to be gone now. File dictionaries (note, no 'xml' extension) contains the following:
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectDictionaryState">
<dictionary name="developer" />
<dictionary name="Developer" />
</component>
</project>
There is no dictionary file by the name of developer or Developer in the .idea folder of the project.
I took a old dictionary file and copied all the <w>...</w> to the cachedDictionary.xml and all my 'misspelllings' went away.
Is this now the new standard for the dictionary?
Please sign in to leave a comment.
Where your words are getting saved actually depends on what you chose at Settings | Editor | Proofreading | Spelling | Use single dictionary for saving words.
For application-level, they are getting saved to the file you edited.
For project-level, to the .idea/dictionaries folder.
That makes sense since I had re-set my IDE settings, my previous setting were gone. Thank you.
Well, I have some bad news, you cannot set a project-level dictionary. Under settings, I went to Proofreading > Spelling
I set the project level dictionary and selected the edit Icon and received an error dictionary not found:
There is no dictionaries folder, however there is a file called dictionaries (contents indicate an XML file type, but there is no extension). Here is my .idea folder structure:
In my humble opinion, the file dictionaries should be dictionaries.xml allowing the directory dictionaries to be created. I believe I have reported this issue, but apparently has not been resolved as of yet.
@Rich Rohde
Delete that "dictionaries" file in ".idea" folder (the one selected on your last screenshot). Then create a FOLDER named "dictionaries". The dictionary file USERNAME.xml ("developer.xml" in your case) will be created there next time you try to save a word.
I'm doing that every time I create a new project... (as long as I'm trying to save a file into a project level dictionary). I don't remember when it started .. but definitely affects both 2020.x versions.
For whatever reason IDE tries to create a file instead of a folder: either dev used wrong function there... or they passing a file name with dictionary part in it (e.g. "dictionaries\developer.xml") and the corresponding routine fails to create missing folder for such request...
Andriy Bazanov
I could have sworn I reported this as soon as I discovered the issue when in early testing of 2020, but I am unable to find the issue, so it occurred to me the issue was resolved. Apparently not, thanks Andriy, I thought I was going crazy... :)
@Rich Rohde
https://youtrack.jetbrains.com/issue/WI-51988 ?
The same mentioned in https://youtrack.jetbrains.com/issue/WI-49513 and https://youtrack.jetbrains.com/issue/WI-48508
The ticket to watch after is https://youtrack.jetbrains.com/issue/IDEA-243254
Andriy Bazanov
Yep, issue WI-51988
save 'ychecker' to project-level dictionary is not working
I remember, created a new project and that is what started the issue. March of this year is when I ran into it.
@Dmitry Tronin
Is who said: Thanks for the update. Unfortunately I can't say if this will be addressed before 2020.1 is out.
I am sure you will stay on top of this little issue. Thanks!