File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed
clion-plugin/src/main/kotlin/org/utbot/cpp/clion/plugin/settings Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ class UTBotAllProjectSettings(val project: Project) {
46
46
val isRemoteScenario: Boolean
47
47
get() {
48
48
val isLocalHost =
49
- projectIndependentSettings.serverName == " localhost" || projectIndependentSettings.serverName == " 127.0.0.01 "
49
+ projectIndependentSettings.serverName == " localhost" || projectIndependentSettings.serverName == " 127.0.0.1 "
50
50
return ! (storedSettings.remotePath == UTBotProjectStoredSettings .REMOTE_PATH_VALUE_FOR_LOCAL_SCENARIO && isLocalHost) || isWindows
51
51
}
52
52
@@ -60,13 +60,6 @@ class UTBotAllProjectSettings(val project: Project) {
60
60
storedSettings.remotePath = UTBotProjectStoredSettings .REMOTE_PATH_VALUE_FOR_LOCAL_SCENARIO
61
61
storedSettings.buildDirRelativePath = UTBotProjectStoredSettings .DEFAULT_RELATIVE_PATH_TO_BUILD_DIR
62
62
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)
70
63
}
71
64
72
65
companion object {
Original file line number Diff line number Diff line change @@ -148,15 +148,6 @@ class UTBotConfigurable(private val myProject: Project) : BoundConfigurable(
148
148
pane.isModified()
149
149
}.label(UTBot .message(" settings.project.sourcePaths" ), LabelPosition .TOP )
150
150
}.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" )
160
151
}
161
152
162
153
private fun Panel.createCMakeSettings () {
You can’t perform that action at this time.
0 commit comments