Comments (2)
For the webapp, it might make sense to consult the type of the file stored in the index first, something like it is done in FileController#getContentPlain()
, and if not found fall back to the AnalyzerGuru
approach.
from opengrok.
The change done in PR #4476 added basically a genre check to HistoryGuru#hasAnnotation()
. The main problem is that this kind of genre check merely checks the file prefix/suffix via AnalyzerGuru#find(String)
(unlike AnalyzerGuru#find(InputStream in, String file)
which uses file content as well - that would be undesired however because it would introduce additional I/O when listing directory contents) so files that do fail this match, like README.md
will have the annotate capability disabled in the UI and actually also when creating annotation cache, because no analyzer has a filename match.
from opengrok.
Related Issues (20)
- cannot find any projects.
- Can I resuse common repostitories across different project?
- About "Date" in History when using Git HOT 1
- Rename master branch to main as per lastest github standards
- help config provides suggester config in every element HOT 3
- displaying annotation leads to NPE HOT 2
- Dockerfile requests a vulnerable version of Apache Tomcat HOT 1
- replace docker build with modern alternative
- No module named 'opengrok_tools' in Docker HOT 5
- Installing opengrok-tools.tar.gz fails from 1.12.24 HOT 2
- configuration.xml gets truncated in 1.12.26 HOT 1
- Support retrieving function definitions for a project path HOT 5
- Test Python Package fails HOT 8
- `READONLY_CONFIG_FILE` doesn't work in docker containers HOT 1
- make the "is-annotatable" check more precise
- Opengrok web application isn't accessible during reindex HOT 8
- OpenGrok Indexer. FileNotFoundException while indexing directories HOT 8
- Fix typo in CONTRIBUTING.md file HOT 1
- cannot remove suggester data for extended period of time due to pending rebuilds
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opengrok.