Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add hint for disabled fuzzing control #1411
  • Loading branch information
Vassiliy-Kudryashov committed Nov 25, 2022
commit f471845c295fd4955377c57454d624f09b3aab10
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.utbot.framework

import com.jetbrains.rd.util.LogLevel
import java.io.File
import mu.KotlinLogging
import org.utbot.common.AbstractSettings
import java.lang.reflect.Executable
Expand All @@ -9,12 +10,12 @@ private val logger = KotlinLogging.logger {}
/**
* Path to the utbot home folder.
*/
internal val utbotHomePath = "${System.getProperty("user.home")}/.utbot"
internal val utbotHomePath = "${System.getProperty("user.home")}${File.separatorChar}.utbot"

/**
* Default path for properties file
*/
private val defaultSettingsPath = "$utbotHomePath/settings.properties"
private val defaultSettingsPath = "$utbotHomePath${File.separatorChar}settings.properties"
private const val defaultKeyForSettingsPath = "utbot.settings.path"

/**
Expand All @@ -26,6 +27,9 @@ object UtSettings : AbstractSettings(
logger, defaultKeyForSettingsPath, defaultSettingsPath
) {

@JvmStatic
fun getPath(): String = System.getProperty(defaultKeyForSettingsPath)?: defaultSettingsPath

/**
* Setting to disable coroutines debug explicitly.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ class SettingsWindow(val project: Project) {
addToRight(symLabel)
}().constraints(CCFlags.growX)
}
if (!UtSettings.useFuzzing) {
row("") {
comment("Fuzzing is disabled in ${UtSettings.getPath()}, see the key 'useFuzzing'" )
Comment thread
Vassiliy-Kudryashov marked this conversation as resolved.
Outdated
}
}
}

fun isModified(): Boolean {
Expand Down