-
Notifications
You must be signed in to change notification settings - Fork 1.7k
tla-toolbox@1.7.4: Use stable version, internal java & persist config #16803
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
base: master
Are you sure you want to change the base?
Changes from all commits
e63f210
03f91b7
8017449
c268ce5
9a7fe3a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| { | ||
| "version": "1.7.4", | ||
| "description": "An IDE for Leslie Lamport's TLA+ (Temporal Logic of Actions) language and its tools", | ||
| "homepage": "https://lamport.azurewebsites.net/tla/toolbox.html", | ||
| "license": "MIT", | ||
| "notes": "Specify full path for the spec inputfile when running `tlc`.", | ||
| "suggest": { | ||
| "pretty printer": [ | ||
| "miktex", | ||
| "latex" | ||
| ] | ||
| }, | ||
| "url": "https://github.com/tlaplus/tlaplus/releases/download/v1.7.4/TLAToolbox-1.7.4-win32.win32.x86_64.zip", | ||
| "hash": "sha1:10b011fa0b31bc58d771f6b4cd9dd30b446d6d9d", | ||
| "extract_dir": "toolbox", | ||
| "pre_install": [ | ||
| "$JDKDIR = Get-ChildItem -Attributes directory -Filter \"plugins/*openjdk*\" $dir |", | ||
| " Resolve-Path -Relative -RelativeBasePath $dir", | ||
| "@(", | ||
| " \"@pushd `\"$dir`\"\"", | ||
| " '@set TOOLS_JAR=.\\tla2tools.jar'", | ||
| " \"@set THISJAVA=`\"${JDKDIR}\\jre\\bin\\java`\"\"", | ||
| " '@%THISJAVA% -cp %TOOLS_JAR% %*'", | ||
| " '@popd'", | ||
|
Comment on lines
+20
to
+24
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Consider avoiding directory changes in the wrapper script to improve usability. The A better design would use absolute paths for the Java executable and JAR file without changing directories, allowing users to work with relative paths naturally. 🔎 Alternative implementation without directory changes "@(",
-" \"@pushd `\"$dir`\"\"",
-" '@set TOOLS_JAR=.\\tla2tools.jar'",
+" \"@set TOOLS_JAR=`\"$dir\\tla2tools.jar`\"\"",
" \"@set THISJAVA=`\"${JDKDIR}\\jre\\bin\\java`\"\"",
" '@%THISJAVA% -cp %TOOLS_JAR% %*'",
-" '@popd'",
") | Set-Content \"$dir\\tla2tools.cmd\" -Encoding ASCII",Note: This still depends on fixing
🤖 Prompt for AI Agents |
||
| ") | Set-Content \"$dir\\tla2tools.cmd\" -Encoding ASCII", | ||
| "Write-Output \"`nChecking if class-modules exist for use with 'tla2tools':\"", | ||
| "@( 'tlc2.TLC', 'tlc2.REPL', 'pcal.trans', 'tla2tex.TLA', 'tla2sany.SANY' )", | ||
| " | ForEach-Object -PipelineVariable modulename { $_ }", | ||
| " | ForEach-Object { ($_ -replace '\\.', '/') + '.class' }", | ||
| " | Resolve-Path -Relative -RelativeBasePath \"$dir/plugins/*tlatools*/\"", | ||
|
goyalyashpal marked this conversation as resolved.
|
||
| " | ForEach-Object { \"`t* $modulename -> $_\" }" | ||
| ], | ||
| "bin": [ | ||
| "toolbox.exe", | ||
| "tla2tools.cmd", | ||
| [ | ||
| "tla2tools.cmd", | ||
| "tlc", | ||
| "tlc2.TLC" | ||
| ], | ||
| [ | ||
| "tla2tools.cmd", | ||
| "pcal-trans", | ||
| "pcal.trans" | ||
| ], | ||
| [ | ||
| "tla2tools.cmd", | ||
| "tla2sany", | ||
| "tla2sany.SANY" | ||
| ], | ||
| [ | ||
| "tla2tools.cmd", | ||
| "tla2tex", | ||
| "tla2tex.TLA" | ||
| ] | ||
| ], | ||
| "shortcuts": [ | ||
| [ | ||
| "toolbox.exe", | ||
| "TLA+ Toolbox" | ||
| ] | ||
| ], | ||
| "persist": "configuration", | ||
| "checkver": { | ||
| "github": "https://github.com/tlaplus/tlaplus" | ||
| }, | ||
| "autoupdate": { | ||
| "url": "https://github.com/tlaplus/tlaplus/releases/download/v$version/TLAToolbox-$version-win32.win32.x86_64.zip", | ||
| "hash": { | ||
| "url": "https://api.github.com/repos/tlaplus/tlaplus/releases/tags/v$version", | ||
| "regex": "$sha1\\|$basename" | ||
| } | ||
|
goyalyashpal marked this conversation as resolved.
|
||
| }, | ||
| "##": [ | ||
| "PowerShell's Quoting_Rules (*install fields): https://technet.microsoft.com/en-us/library/hh847740.aspx", | ||
| "https://github.com/tlaplus/tlaplus/blob/c8a59811fc90755b8f32f242f48ceca50c9a404b/README.md?plain=1#L16-L30" | ||
| ] | ||
| } | ||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.