Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider increasing MAX_FQNAME_LENGTH #575

Open
dimtion opened this issue May 20, 2024 · 1 comment
Open

Consider increasing MAX_FQNAME_LENGTH #575

dimtion opened this issue May 20, 2024 · 1 comment

Comments

@dimtion
Copy link

dimtion commented May 20, 2024

When resolving classpath I got the following message:

Could not resolve classpath using Cached + (Stdlib + ([] or (((((([] + Maven) + Gradle) + Shell) + Maven) + Gradle) + Shell)) or Backup): Value '/home/..../258-char-long-path/..../....jar' can't be stored to   database column because exceeds length (255)"

Would it be possible to increase the length of MAX_FQNAME_LENGTH to something larger than 255, for example 511 or 1023? Any negative impact of doing so?

I can open a PR if necessary.

@fwcd
Copy link
Owner

fwcd commented May 22, 2024

That seems odd, the MAX_FQNAME_LENGTH is a limit for fully-qualified class names, not file system paths (which should fall under the larger MAX_URI_LENGTH limit. Yet for some reason your log indicates that we store a path somewhere under the smaller limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants