-
Notifications
You must be signed in to change notification settings - Fork 245
fix: sqlite always not work and another things #613
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
Conversation
f2fca1f
to
644c09b
Compare
dd9bb6d
to
3f58147
Compare
@fwcd Can you take a look? I think I have fixed many thing.. and also induced some features, when I am debugging... because this days I have maintain another fork.. for if this one won't active |
} ?: Pair(System.`in`, System.out) | ||
|
||
val server = KotlinLanguageServer() | ||
if (args.fullLog) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this will enable something like tracing, when I am debug, I think it is useful, so ..
@Parameter(names = ["--tcpClientHost", "-h"]) | ||
var tcpClientHost: String = "localhost" | ||
|
||
@Parameter(names = ["--tcpDebug"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if open tcpDebug, the log will always on stderr, then it won't be redirected lsplog
sourceFile(uri).prepareCompiledFile() | ||
|
||
// Compile changed files | ||
private fun compileAndUpdate(changed: List<SourceFile>, kind: CompilationKind): BindingContext? { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is not good to put a function inside another function, so I split it
// Combine with past compilations | ||
val same = sources - allChanged | ||
val combined = listOf(buildScriptsContext, sourcesContext).filterNotNull() + same.map { it.compiledContext!! } | ||
val same = sources - allChanged.toSet() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is changed under the help of idea.. yes , many changes are by idea
val superClassTypeArguments = getSuperClassTypeProjections(file, it) | ||
classDescriptor.getMemberScope(superClassTypeArguments).getContributedDescriptors().filter { classMember -> | ||
(classMember is FunctionDescriptor && classMember.modality == Modality.ABSTRACT && !overridesDeclaration(kotlinClass, classMember)) || (classMember is PropertyDescriptor && classMember.modality == Modality.ABSTRACT && !overridesDeclaration(kotlinClass, classMember)) | ||
(classMember is FunctionDescriptor && classMember.modality == Modality.ABSTRACT && !overridesDeclaration( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idea thought this will be better
|
||
private val GRADLE_DSL_DEPENDENCY_PATTERN = Regex("^gradle-(?:kotlin-dsl|core).*\\.jar$") | ||
|
||
private val ResolveImportList = listOf( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
too long, so I split it
configuration = KotlinCompilerConfiguration().apply { | ||
val langFeatures = mutableMapOf<LanguageFeature, LanguageFeature.State>() | ||
for (langFeature in LanguageFeature.values()) { | ||
for (langFeature in LanguageFeature.entries) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the lint by idea
I need to fix the db problem.. ..but how..
71633bc
to
a4e3e84
Compare
done, it seems been many commit here.. |
096ff06
to
7ee67ac
Compare
Small commits are good, but please also group them into separate PRs. What I had in mind was a bunch of small PRs along the lines of:
|
I have committed a lot during this time,.. and update deps also will change some code.. now they all mixing up. I feel it will be difficult to split them.. The big problem is that I induced the typos ci and made a huge change there Detekt configure and baseline is mixed together with typos... and after I do some format detekt find more problem so then I edit the detekt... seems they are hard to split.. but may you please let me just split the cli feature one? I can make that in another pr.. |
7ee67ac
to
684890f
Compare
Then this pr just for bump the version of exposed, but also some changes in ci.. I will split the cli part, can this be accept? |
684890f
to
39975ef
Compare
a2a48f6
to
357822b
Compare
ok.. I will put this pr here and open other pr instead, this will just be used as reference |
@fwcd I have already split them into other prs, can you please take a look? after those been merged, I will continue to tidy up the code, and remove the deprecated part of hte use of exposed |
this is a huge pr.. before I think this project won't maintain anymore so I work myself, and follow another fork.. but that one also inactive
I will pr for this
This pr induced typos ci, dependabot, bump a lot of dependencies, make format, remove deperate function and etc
I think the most important part of this pr is:
bump the version of exposed, which solved the problem of it will through error during save the dependencies, which made kls throw all dependencies, cause the editer been whole red.
Then it induced some other ci, like dependencies bot, and some style change, during the time that I am maintaining it.
Also induced some changes for the log which I think been good to my debugging. I love that change because I can see the logs when debugging it. it is quite difficult for me to get the lsplog in neovim, so I found a way to keep the log to stderr. And I made the log can do the things like tracing in rust