systemap / smallworld-magik-vscode Goto Github PK
View Code? Open in Web Editor NEWVisual Studio Code extension for Smallworld Magik
License: MIT License
Visual Studio Code extension for Smallworld Magik
License: MIT License
I found a problem. When I start a session, the compiler executes an external terminal. What's wrong??
Originally posted by @alexhenriquepv in #6 (comment)
Just a quick question. Is Smallworld 4.x supported, or can you think of any workaround to get the extension running with this older version?
Thank's a lot!
When you have a Magik file active in the editor and when you type in another text entry, the Magik editor may add keywords from the text in the text editor to the Magik file even though you are not typing in that window.
Steps to reproduce:
I am attaching a screen shot that shows this. I have a small magik file with a comment. As I type a commit message, keywords are added to the magik source code file from the git commit message text box.
From my VS Code the default PowerShell terminal recognizes the %SMALLWORLD_GIS% to be the module, it throws the error.
Our team suggestion:
add the one line code to setup the default terminal to be Command Prompt into setting.json of official documentation.
`
{
"terminal.integrated.defaultProfile.windows": "Command Prompt"
"Smallworld.gisPath": "//appserver/Smallworld/CST519/core/bin/x86/gis.exe",
"Smallworld.startup": [
"set JAVA_HOME=%SMALLWORLD_GIS%/jdk-11.0.1",
"set PROJECT_DIR=//appserver/SW_Upgrade_5",
"call %PROJECT_DIR%/set_my_environment.bat",
"set SW_DB_CONTEXT_DIR=%PROJECT_DIR%/db_context",
"if not exist %SW_DB_CONTEXT_DIR% mkdir %SW_DB_CONTEXT_DIR%"
],
"Smallworld.gisCommand": [
"-p C:/Smallworld/core -a %SMALLWORLD_GIS%/../cambridge_db/config/gis_aliases cambridge_db_open",
"-a C:/Smallworld/cambridge_db/config/gis_aliases cambridge_db_open"
],
"Smallworld.sessions": [
{
"session": "Project 1 Test code on SW 5.1.9 on jdk 11",
"gisPath": "C:/SW519/core",
"startup": [ "set JAVA_HOME=C:/jdk-11.0.1","set PROJECT_DIR="C:/tst/project_1"],
"command": "-a %PROJECT_DIR%/config/gis_aliases db_open"
},
{
"session": "Project 1 Development on SW 5.2.0 on jdk 12",
"gisPath": "C:/SW520/core",
"startup": ["set JAVA_HOME=C:/jdk-12.0.2","set PROJECT_DIR="C:/dev/project_1"],
"command": "-a %PROJECT_DIR%/config/gis_aliases db_open"
},
{
"session": "Project 1 Production on SW 5.1.8 on jre 8",
"gisPath": "C:/SW518/core",
"startup": ["set JAVA_HOME=C:/jre","set PROJECT_DIR="C:/prd/project_1"],
"command": "-a %PROJECT_DIR%/config/gis_aliases db_open"
}
],
"files.autoGuessEncoding": true,
"terminal.integrated.scrollback": 5000,
}`
With version 1.2.0 when trying to start a new session, sometimes vsCode gives the error that it is unable to open powershell.
This happens when there is already any kind of terminal open in vsCode.
After Closing all terminals in vsCode it is possible again to start a smallworld session.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.