V Language Document Type
V Language Document Type
I didn't see the V language in Options->Document Types, so tried to create one. But I got an error that it already existed. In looking at c:\Program Files (x86)\Zeus\zConfig I see: [Zeusv-keywords.ext , Zeusv-template.ext ]. But there is no compiler, general or coloring file.
- Attachments
-
- Zeus_DocumentTypes_no_V.png (43.74 KiB) Viewed 36196 times
Last edited by Dataflex on Thu Nov 02, 2023 6:39 am, edited 1 time in total.
Re: V Language Document Type
The error message is telling you that v file extension is already mapped so you can't create a new document type for that file extension.
Because the file extension is used as the key to identify the matching document type, that extension can only ever live in one document type.
And in this case the error message is correct because that v file extension is mapped to the Verilog Document Type.
So there are three options:
PS: An easy way to check which file extension is mapped to which document type is to open a file with that extension and then use the Options Properties menu to display the document type for that file extension:
Because the file extension is used as the key to identify the matching document type, that extension can only ever live in one document type.
And in this case the error message is correct because that v file extension is mapped to the Verilog Document Type.
So there are three options:
- Use the Options, Document Types menu to delete the Verilog Document Type and then create your own replacement.
- Edit the Verilog Document Type, adding in the required compiler details to that document type.
- Edit the Verilog Document Type and remove the v file extension from the General tab. That will then let you then create a new V Document Type for that file extension.
PS: An easy way to check which file extension is mapped to which document type is to open a file with that extension and then use the Options Properties menu to display the document type for that file extension:
Re: V Language Document Type
I decided to choose option 3 (deleting the V file extension from Verilog) even though I will never use the Verlog document type... But I was unable to create a V document type as it still said it existed. I exited Zeus, came back in and checked the Verilog Document Type and it showed only v2k as a file extension. But still couldn't add a V document type. I notice that there are two zConfig files that appear to be for a V language or V extension: Zeusv-keywords.ext and Zeusv-coloring.ext.
- Attachments
-
- Zeus_DocumentTypes_V_exists_explorer.png (34.53 KiB) Viewed 36192 times
Re: V Language Document Type
When I create a new V document type for the v file extension this is the message I got:
That then lets me create the new document type and you can see the dummy file extension has been used to create the document type: And looking in the config folder we see these original Verilog document type files:
And the newly created document type using that dummy file extension to avoid the file name collision:
Cheers Jussi
What this message is saying is a configuration file for that file extension already exists and Zeus will add a dummy file extension to allow the document type to be created and saved to disk (more about this later).That then lets me create the new document type and you can see the dummy file extension has been used to create the document type: And looking in the config folder we see these original Verilog document type files:
Code: Select all
02/11/2023 06:19 PM 252 Zeusv-general.ext
17/09/2020 05:34 PM 364 Zeusv-keywords.ext
10/09/2020 11:23 PM 348 Zeusv-template.ext
Code: Select all
02/11/2023 06:21 PM 243 Zeusz_v-general.ext
Re: V Language Document Type
Looking at your images, I am not sure why you are not getting the same error message that I am getting.
In any case the work around would be to create a new document type with these file extensions:
After the document type is created, you can then edit that new document type and remove the dummy file extension:
Cheers Jussi
In any case the work around would be to create a new document type with these file extensions:
Code: Select all
z_v;v;
Code: Select all
v;
Re: V Language Document Type
I added z_v and now I have a V Document Type. Thanks! (I did notice that after I removed the z_v the files in zConfig for them remained, even after restarting Zeus. But I was able to deleted them in File Explorer.)
Re: V Language Document Type
As you have found, it is safe to use Explorer to delete these configuration files.But I was able to deleted them in File Explorer.)
My only suggestion is to occasional backup the whole zConfig folder and the easiest way to do this zipping the entire zConfig folder and then renaming the zip file to include date information.
Cheers Jussi