MopeSWTP-SS21 / MopeSWTP

MIT License
1 stars 0 forks source link

User stories for Prototype 2 - "File-aware error reporter" #39

Closed CSchoel closed 3 years ago

CSchoel commented 3 years ago

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:

manuEbg commented 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...

CSchoel commented 3 years ago

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.

manuEbg commented 3 years ago

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.

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

CSchoel commented 3 years ago

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:

manuEbg commented 3 years ago

Maybe we should use publishDiagnostics instead of ResponseError to tell the Client about ModelicaCodeErrors

manuEbg commented 3 years ago

@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...

CSchoel commented 3 years ago

No objections, go ahead. :+1: