Visual Studio extension work not so well under subsection script

when type parameters outside subsection,it works well, but can not help code completion when in subsection blocks.

this is the example, expect “Model name” but “model” instead.

Hi @gaoxinlei, sorry to hear the extension is causing trouble for you. I have been using it for a while now and it always seem to work as expected, i.e. the auto-completion inside subsections should work.

In order to find out why it isnt working for you, could you check and post the following items:

  • The version of your VS code (any version newer than 1.89.1 should work, the most recent one is 1.96.0)
  • The version of your ASPECT VS code extension (it should show v1.1.3 next to the name of the extension in the VS code extension menu)
  • Please make sure the file your are working on has the ending .prm
  • Please check if the extension is activated when you open prm files. In order to that, check if you see the following:
    • in the bottom right corner of your VS code, you should see ‘aspect’ show up as the selected ‘Language’ for this file
    • In the bottom left or bottom center status bar, you should see text like this: ‘Current aspect version: 2.5.0’ this indicates that the ASPECT extension is active and is using the correct aspect input parameter schema

If all that is the case and you are still having problems, then we will need to think a bit more about it, but for now let me know if all that is working for you.

Best,
Rene

Hi, My macbook works well but windows does not.

All checked, here is the effect when coding outside subsection block:


and here is inside subsection:

I want “Model name” this case, but I can only get “model” or “Model” and a word that typed before
BR

Oh, so it may be related to the Windows operating system? I do not know if the VS code extension was extensively tested under Windows, maybe one of the other users of the forum has used it before under Windows?

It may be useful to open an issue report in the repository of the VS code extension here: Issues · Vscode extensions / vscode-aspect · GitLab . This way the developers of the extension will be made aware of the issue (I do not know if they check this forum).

Best,
Rene

Thanks a lot, I just open an issue right there and I will track this.
BR

Hi , I found this “parameters.xml” from apsect code repository, does it contains all paramaters and subsections?

I think I could create a gui through that file, which would list all available parameters and subsections under root or nested subsection. maybe a webpage is suitable for most operating system.

BR

Hi BR,
Yes that file contains all ASPECT parameters (every ASPECT model you run also creates this file). We already use this file to produce the following website: https://aspect.geodynamics.org/doc/parameter_view/parameters.xml (It is linked from the ASPECT homepage under “Parameters”).
Is this what you had in mind?

Yeah that is exactly what I need , and it is really helpful, I would make my toolkit myself by it.
thanks a lot !
BR