ThFriedrich / lammps_vscode

VSCODE extension for language support of LAMMPS scripts
https://thfriedrich.github.io/lammps_vscode/
GNU General Public License v2.0
44 stars 14 forks source link

The file does not exist #51

Closed cmbsnr closed 1 year ago

cmbsnr commented 1 year ago

Describe the bug There is an error "The file *.data does not exist" but the file exist. And the script can be run correctly by LAMMPS.

To Reproduce Steps to reproduce the behavior:

  1. Go to VSCode and start to write a LAMMPS script with the extension.
  2. Copy a *.data to the directory. image
  3. Write the command "read_data".
  4. See error. image

Expected behavior If the input file does not exist, report the error. But DOES NOT report the error when the input file exist.

Screenshots Above.

Desktop (please complete the following information):

ThFriedrich commented 1 year ago

Hi @cmbsnr . Thanks for your Bug-Report. I've just pushed an update that changes the path-checks to relate to the script-path, rather than the current working directory. This was indeed clearly a bug. I am not a 100% sure this will fix your issue, but I suspect it will. I will close the issue. Please reopen if problems persist. The update will ship with the next release shortly.