I'm trying to create synonym relationships between 3 similar words
cesarian > luscs
caesarian > cesarian
caesarian > luscs
but if I try this I get this when trying to index
WARNING: duplicate wordform found - skipped ( current='caesarian > luscs',
stored='caesarian > cesarian' ). Fix your wordforms file 'lib/wordforms.txt'
Any thoughts on how to do this?
Perhaps try it with just two of those (so each word is covered at least once).
Related
Here's an example:
My search term is myTermABC
I have 100 files in my project
10 files contain myTermABC
Only two of those files contain myTermABC more than once (the other 8 contain it only once)
I only want VS Code to return the two files that contain myTermABC more than once.
How to do this?
Is this even possible?
Maybe there's an extension that enables this functionality?
In vscode search across files you have to specifically tell it to include newlines. The dot doesn't do this in a search in vscode.
So this find should work: (myTermABC[.\n]*){2,}
For instance, when I have the following files:
pro0.cpp
pro1.cpp
pro2.cpp
pro3.cpp
pro10.cpp
pro11.cpp
I expect to see them in the above-mentioned order. But Eclipse would sort them like the following:
pro0.cpp
pro1.cpp
pro10.cpp
pro11.cpp
pro2.cpp
pro3.cpp
I made a lookup but I failed to find any related information about that issue. Is not it an issue at all? Or did this problem only occurred to me?
This is working as intended. These views just sort the file names using the result of the Java String.compareTo method. This just compares the strings character by character left to right. It does not try and look for numbers in the strings. This gives the result you see.
Some file viewers (macOS Finder for one) do look for numbers in the file names and sort using the whole number. This is quite a bit more complex and the Eclipse views don't try to do this.
I want to find and edit Debug statements in my file. I would like to know if I can edit all those files simultaneously using wildcards in the replace function of MonoDevelop.
MonoDevelop offers a search based on regex (not wildcards):
You can use it to search things such as Debug\.Log.+ which will match things like:
Debug.LogError
Debug.LogWarning
is there a way to get a file list recursively based on one file collection that points to a directory in fileadmin?
Currently I only got it to work with files directly in that directory, not also with files in sub-directories of that directory.
So instead of setting lots of file collections for each (sub directory)
I'd like to set only the "top"level directory (here "Kurs77") and have the files, even from sub directories, displayed.
Reason is, editors may add an unknown amount of (sub)sdirectories, and I'd like to have the files automagically displayed in the file list in the front end -- without the need to create an increasing amount of file collections.
cheers,
Tom
it seems that this is a missing feature. Check out https://forge.typo3.org/issues/61238. It seems that the underlaying API is able to do that.
So one solution would be to use TypoScript to make that work.
To give the correct answer now: The recursive option is of course available but it is part of the sys_file_collection record.
In TYPO3 9 this is working out of the box. pity is not showing folder as title, but recursive works:
Is there a pluging/feature to count the number of lines in a project?
This may be what you're looking for: http://metrics2.sourceforge.net/
A very simplistic way is to do a regular expression search for '\n' in your project. It will give you a good idea on the number of lines in your project without installing any extra plug-ins.
Instead of installing a new eclipse plugin; If you are on a linux system:
cd to the eclispe project source directory(workspace/project-name/src)
and enter in termianl:
wc -l *.java
This will show you total number of lines as well as number of lines in each file
A quick way to do it is based on this tutorial I found: http://stephendnicholas.com/posts/eclipse-quick-line-count
To summarize, do the following (to use search in Eclipse press Ctrl+H):
Find the total amount of lines: Search your code for \n using 'regular expression' under your code files (e.g. if you develop in java only then search only *.java files).
Find the total amount of blank lines: Search your code for ^\s*\n
Find the total amount of commented lines: search your code for //.*(\n{1})?
Finally: Get the total amount of lines of code by subtracting 2 and 3 from 1.