Closed CSchoel closed 3 years ago
The following ScriptingApiMethods might be useful to provide some "ClassCompletion". I am putting them here because its a hustle to search for them everytime...
Don't forget that there are two sources where the Scripting API is documented. In the OpenModelica System Documentation there are also getPackages()
, and getClassNames()
, which operate on the package hierarchy and are both lightning fast and show only the top-level/direct subpackages, which may be exactly what you want for code completion.
Don't forget that there are two sources where the Scripting API is documented. In the OpenModelica System Documentation there are also
getPackages()
, andgetClassNames()
, which operate on the package hierarchy and are both lightning fast and show only the top-level/direct subpackages, which may be exactly what you want for code completion.
I have not forgotten... I think I never knew:)
For MY Interest: Scripting API doku under 2.3
BTW This whole OpenModelicaThing is absolute Madness 😂 I absolutely see why you want to simplify the whole gettingstartedprocess
Jup, the Scripting API is not exactly user friendly. :see_no_evil:
If you have any questions, feel free to ask, as I probably already went through most of the common troubles that the API has to offer.
But I have make the pedanic remark that you could have known about the OM System Documentation. I tried to compile all resources for you at the beginning of the project to minimize the development pain. :wink:
Maybe we should use publishDiagnostics instead of ResponseError to tell the Client about ModelicaCodeErrors
@CSchoel do you mind if i mark this issue as 'obsolete' and close it? I think all Points are done or in the next Prototype Issue...
No objections, go ahead. :+1:
User stories for Prototype 2 - "File-aware error reporter"
I have dubbed the second prototype the "file-aware error reporter", since apart from technical issues, the main new features are file-awareness (in the sense that the server can be used when the client only knows about files and not about the model structure) and error reporting (i.e. answering a loadModel/checkModel request with LSP-compliant list of structural error messages). This prototype includes the following user stories:
f
will fail, if I call it with a list that is not fully sorted as its first parameter". You should be able to formulate such a hypothesis as a short sentence for each test you write and actually write that hypothesis down as a comment in the test code. This will help you to define meaningful test cases and to quickly identify which new hypotheses you haven't covered yet.data
field.loadModel
FooBar
Modelica.FooBar
checkModel
loadModel
andcheckModel
(if applicable). (part of #20)