Skip to content

Commit

Permalink
Fixes for latest errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
jfilby committed Dec 8, 2024
1 parent 6c5e865 commit 8982cf0
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ export WEB_APP_INVITE_ONLY=Y
export WEB_APP_LOG_LEVEL=INFO
export WEB_APP_PORT=5000

export NIM_COMPILE_OPTIONS="--path:.. --path:$DOCUI_SRC_PATH --path:$EXS_SRC_PATH -d:ssl -d:chronicles_log_level:$WEB_APP_LOG_LEVEL -d:chronicles_line_numbers -d:chronicles_colors:NativeColors -d:chronicles_sinks:json[file]"
export NIM_COMPILE_OPTIONS="--path:../.. --path:$DOCUI_SRC_PATH --path:$EXS_SRC_PATH -d:ssl -d:chronicles_log_level:$WEB_APP_LOG_LEVEL -d:chronicles_line_numbers -d:chronicles_colors:NativeColors -d:chronicles_sinks:json[file]"

2 changes: 1 addition & 1 deletion env.template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ export WEB_APP_INVITE_ONLY=Y
export WEB_APP_LOG_LEVEL=INFO
export WEB_APP_PORT=5000

export NIM_COMPILE_OPTIONS="--path:.. --path:$DOCUI_SRC_PATH --path:$EXS_SRC_PATH -d:ssl -d:chronicles_log_level:$WEB_APP_LOG_LEVEL -d:chronicles_line_numbers -d:chronicles_colors:NativeColors -d:chronicles_sinks:json[file]"
export NIM_COMPILE_OPTIONS="--path:../.. --path:$DOCUI_SRC_PATH --path:$EXS_SRC_PATH -d:ssl -d:chronicles_log_level:$WEB_APP_LOG_LEVEL -d:chronicles_line_numbers -d:chronicles_colors:NativeColors -d:chronicles_sinks:json[file]"

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import strformat, strutils
import nexus/cmd/service/generate/models/model_utils
import nexus/core/service/format/case_utils
import types/types
import nexus/cmd/service/generate/models/model_utils
import nexus/cmd/types/types


# Forward declarations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ proc listFieldNames*(
listFields: seq[string]) =

debug "listFieldNames()",
fields = fields
listFields = listFields

var first = true

Expand Down
2 changes: 1 addition & 1 deletion src/nexus/cmd/service/generate/models/gen_model_utils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ proc getModel*(modelYaml: ModelYAML,
isRef: bool): Model =

debug "getModel()",
modelName = model.name
modelName = modelYaml.name

# Set moduleImport
# warn "to do"
Expand Down
8 changes: 2 additions & 6 deletions src/nexus/cmd/service/generate/tmp_dict/tmp_dict_utils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,9 @@ proc updateTmpDictFileWritten*(
proc writeTmpDict*(tmpDict: Table[string, string],
filename: string) =

{.hint[XCannotRaiseY]: off.}
# {.hint[XCannotRaiseY]: off.}

var output =
dump(tmpDict,
tsRootOnly,
asTidy,
defineOptions(style = psMinimal))
let output = Dumper().dump(tmpDict)

writeFile(filename,
output)
Expand Down

0 comments on commit 8982cf0

Please sign in to comment.