Skip to content

Commit e9d1b7f

Browse files
committed
remove 'Detect path' button
1 parent c0567f0 commit e9d1b7f

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

clion-plugin/src/main/kotlin/org/utbot/cpp/clion/plugin/settings/UTBotAllProjectSettings.kt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class UTBotAllProjectSettings(val project: Project) {
4646
val isRemoteScenario: Boolean
4747
get() {
4848
val isLocalHost =
49-
projectIndependentSettings.serverName == "localhost" || projectIndependentSettings.serverName == "127.0.0.01"
49+
projectIndependentSettings.serverName == "localhost" || projectIndependentSettings.serverName == "127.0.0.1"
5050
return !(storedSettings.remotePath == UTBotProjectStoredSettings.REMOTE_PATH_VALUE_FOR_LOCAL_SCENARIO && isLocalHost) || isWindows
5151
}
5252

@@ -60,13 +60,6 @@ class UTBotAllProjectSettings(val project: Project) {
6060
storedSettings.remotePath = UTBotProjectStoredSettings.REMOTE_PATH_VALUE_FOR_LOCAL_SCENARIO
6161
storedSettings.buildDirRelativePath = UTBotProjectStoredSettings.DEFAULT_RELATIVE_PATH_TO_BUILD_DIR
6262
storedSettings.targetPath = UTBotTarget.autoTarget.path
63-
64-
val cmakeRunConfiguration = CMakeAppRunConfiguration.getSelectedConfigurationAndTarget(project)?.first
65-
val buildConfigurationSources = cmakeRunConfiguration?.cMakeTarget?.buildConfigurations?.map { it.sources }
66-
//TODO: why do we use firstOrNull here?
67-
val cmakeConfiguration = buildConfigurationSources?.firstOrNull() ?: emptySet()
68-
69-
storedSettings.sourceDirs = getSourceFoldersFromSources(cmakeConfiguration)
7063
}
7164

7265
companion object {

clion-plugin/src/main/kotlin/org/utbot/cpp/clion/plugin/settings/UTBotConfigurable.kt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,6 @@ class UTBotConfigurable(private val myProject: Project) : BoundConfigurable(
148148
pane.isModified()
149149
}.label(UTBot.message("settings.project.sourcePaths"), LabelPosition.TOP)
150150
}.bottomGap(BottomGap.SMALL).rowComment(UTBot.message("paths.sourceDirectories.description"))
151-
152-
153-
row {
154-
label("Try to get paths from CMake model: ")
155-
button("Detect Paths") {
156-
myProject.settings.predictPaths()
157-
myProject.settings.fireUTBotSettingsChanged()
158-
}
159-
}.rowComment("Queries CMake configurations to get source paths and build path. Also predicts tests folder")
160151
}
161152

162153
private fun Panel.createCMakeSettings() {

0 commit comments

Comments
 (0)