Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS Code problem #352

Open
dmradcilff opened this issue Dec 2, 2024 · 1 comment
Open

VS Code problem #352

dmradcilff opened this issue Dec 2, 2024 · 1 comment

Comments

@dmradcilff
Copy link

dmradcilff commented Dec 2, 2024

I have a .toml file but every time I start VS Code I get this error. Any idea what I am doing wrong?

I do not have a .toml file in my home directory. It is instead at the top level of my project directory.

Error while loading HOME folder configuration file: The 'work' library is not a valid library.
Hint: To use a library that contains all files, use a common name for all libraries, i.e., 'defaultlib'

# File names are either absolute or relative to the parent folder of the
# vhdl_ls.toml file and supports glob-style patterns.
[libraries]
simulation.files = [
  'testbench/**/*.v'
]
module.files = ['modules/**/*.vhd']
ip.files = [
  'dpram/**/*.v',
  'rx/**/*.v',
  'tx/**/*.v'
]
top.files = [
  'source/**/*.v',
]

# Libraries can be marked as third-party to disable some analysis warnings, such as unused declarations
UNISIM.files = [
  '/opt/Xilinx/Vivado/2020.2/data/vhdl/src/unisims/unisim_VCOMP.vhd',
]
UNISIM.is_third_party = true
UNIMACRO.files = [
  '/opt/Xilinx/Vivado/2020.2/data/vhdl/src/unimacro/*.vhd',
]
UNIMACRO.is_third_party = true
@JHertz5
Copy link

JHertz5 commented Dec 3, 2024

Hi @dmradcilff, it's a bit difficult to read your toml file because it's been mixed up by the github markdown.
If you put three backticks (```)on the line above and below your snippet, it will format the snippet as a code block, making it much easier to read, e.g.

here is my code
# no markdown formatting

Judging by the error message, I would check that your toml file doesn't create a library called "work". If you can post the toml file as a code snippet then I could try to see whether I can recreate your problem.

Is the toml file that you posted located in your home directory?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants