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

Use relative paths for files #49

Closed
jpkrowe opened this issue Mar 8, 2023 · 2 comments
Closed

Use relative paths for files #49

jpkrowe opened this issue Mar 8, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@jpkrowe
Copy link

jpkrowe commented Mar 8, 2023

I use relative paths to my files (e.g. data and restart files) and this always gives an error as vscode is looking for the file relative to the workspace directory.

It would be nice for the file to be searched for relative to the directory that the input script is in, in addition to being looked for relative to the workspace directory

@jpkrowe jpkrowe added the enhancement New feature or request label Mar 8, 2023
@ThFriedrich
Copy link
Owner

Hi @jpkrowe . 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. I will close the issue. Please reopen if problems persist. The update will ship with the next release shortly.

ThFriedrich added a commit that referenced this issue Aug 3, 2023
* move gh-pages config to seperate branch

* Fix synchronisation workflow

* Scheduled sync of lammps_vscode with Lammps documentation 2021-12-19

* 1.5.1

* Bump markdown-it from 11.0.0 to 12.3.2

Bumps [markdown-it](https://github.com/markdown-it/markdown-it) from 11.0.0 to 12.3.2.
- [Release notes](https://github.com/markdown-it/markdown-it/releases)
- [Changelog](https://github.com/markdown-it/markdown-it/blob/master/CHANGELOG.md)
- [Commits](markdown-it/markdown-it@11.0.0...12.3.2)

---
updated-dependencies:
- dependency-name: markdown-it
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Scheduled sync of lammps_vscode with Lammps documentation 2022-02-01

* 1.5.2

* Scheduled sync of lammps_vscode with Lammps documentation 2022-03-01

* 1.5.3

* Bump plist from 3.0.2 to 3.0.4

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.2 to 3.0.4.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update sync.yml

* Bump minimist from 1.2.5 to 1.2.6

Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump plist from 3.0.4 to 3.0.5

Bumps [plist](https://github.com/TooTallNate/node-plist) from 3.0.4 to 3.0.5.
- [Release notes](https://github.com/TooTallNate/node-plist/releases)
- [Changelog](https://github.com/TooTallNate/plist.js/blob/master/History.md)
- [Commits](https://github.com/TooTallNate/node-plist/commits)

---
updated-dependencies:
- dependency-name: plist
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

* Scheduled sync of lammps_vscode with Lammps documentation 2022-04-01

* 1.5.4

* Bump ansi-regex from 3.0.0 to 3.0.1

Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](chalk/ansi-regex@v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix addition of linked commands as extra entries

* Scheduled sync of lammps_vscode with Lammps documentation 2022-05-01

* 1.5.5

* Scheduled sync of lammps_vscode with Lammps documentation 2022-06-01

* 1.5.6

* Create FUNDING.yml

* Scheduled sync of lammps_vscode with Lammps documentation 2022-07-01

* 1.5.7

* Bump terser from 5.7.0 to 5.14.2

Bumps [terser](https://github.com/terser/terser) from 5.7.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Scheduled sync of lammps_vscode with Lammps documentation 2022-08-01

* 1.5.8

* Update sync.yml

* Revert automatic commit

* Revert automatic commit

* Update sync.yml

* Scheduled sync of lammps_vscode with Lammps documentation 2022-09-01

* 1.5.8

* Scheduled sync of lammps_vscode with Lammps documentation 2022-10-01

* 1.5.9

* Scheduled sync of lammps_vscode with Lammps documentation 2022-11-01

* 1.5.10

* Bump loader-utils from 1.4.0 to 1.4.1

Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.1/CHANGELOG.md)
- [Commits](webpack/loader-utils@v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump loader-utils from 1.4.1 to 1.4.2

Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](webpack/loader-utils@v1.4.1...v1.4.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump minimatch and mocha

Bumps [minimatch](https://github.com/isaacs/minimatch) to 3.1.2 and updates ancestor dependency [mocha](https://github.com/mochajs/mocha). These dependencies need to be updated together.


Updates `minimatch` from 3.0.4 to 3.1.2
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Commits](isaacs/minimatch@v3.0.4...v3.1.2)

Updates `mocha` from 7.2.0 to 10.1.0
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](mochajs/mocha@v7.2.0...v10.1.0)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
- dependency-name: mocha
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* Rollback failed release version bump

* Scheduled sync of lammps_vscode with Lammps documentation 2022-12-01

* 1.5.10

* Bump decode-uri-component from 0.2.0 to 0.2.2

Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](SamVerschueren/decode-uri-component@v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump qs from 6.5.2 to 6.5.3

Bumps [qs](https://github.com/ljharb/qs) from 6.5.2 to 6.5.3.
- [Release notes](https://github.com/ljharb/qs/releases)
- [Changelog](https://github.com/ljharb/qs/blob/main/CHANGELOG.md)
- [Commits](ljharb/qs@v6.5.2...v6.5.3)

---
updated-dependencies:
- dependency-name: qs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Scheduled sync of lammps_vscode with Lammps documentation 2023-01-01

* 1.5.11

* Bump json5 and ts-loader

Removes [json5](https://github.com/json5/json5). It's no longer used after updating ancestor dependency [ts-loader](https://github.com/TypeStrong/ts-loader). These dependencies need to be updated together.


Removes `json5`

Updates `ts-loader` from 7.0.5 to 9.4.2
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md)
- [Commits](TypeStrong/ts-loader@v7.0.5...v9.4.2)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
- dependency-name: ts-loader
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix status badge

* Bump json5 from 2.2.0 to 2.2.3

Bumps [json5](https://github.com/json5/json5) from 2.2.0 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](json5/json5@v2.2.0...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Scheduled sync of lammps_vscode with Lammps documentation 2023-02-01

* 1.5.12

* End package archiving

Relase artifact uploading repeatedly caused crashes of the CI pipeline,
which needs manual rollback of the automatically committed version updates
to the package.json and package-lock.json. Since VSCODE keeps previous
versions archived anyway, this functionality was dropped. No more new
Releases will be archived on GitHub from now on.

* Scheduled sync of lammps_vscode with Lammps documentation 2023-02-14

* 1.5.12

* Update CHANGELOG.md

* Rendering Angstrom symbols
This "fixes" Mathjax-nodes inability to render Angstrom symbols. It's really an ugly af hack, but it works.

* Scheduled sync of lammps_vscode with Lammps documentation 2023-03-01

* 1.5.13

* Bump webpack from 5.37.0 to 5.76.0

Bumps [webpack](https://github.com/webpack/webpack) from 5.37.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](webpack/webpack@v5.37.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* Scheduled sync of lammps_vscode with Lammps documentation 2023-04-01

* 1.5.14

* Scheduled sync of lammps_vscode with Lammps documentation 2023-05-01

* 1.5.15

* Scheduled sync of lammps_vscode with Lammps documentation 2023-06-01

* 1.5.16

* Update doc_obj generation scripts

- Changed the way to split the rst into sections to improve stability
- Added checks for minimal entries found (e.g. Syntax, Description, Examples)
- Updated for new rst-directives (tabs, admonition, deprecated, only html, figure, versionadded)
- several smaller bugfixes and formatting improvements

* Update doc_obj

* Update minor version to 1.6.0

* fixed inconsistent formatting

* Scheduled sync of lammps_vscode with Lammps documentation 2023-07-01

* 1.6.1

* Formatting and eslint-auto-fixes

* upgrade dependencies, update doc_Obj

* update debug settings and task definitions

* disable some linting errors

* disable lint warning

* Add Symbol provider for Outline-Tab #52

* Make path check rel. to script not cwd  #49 #51

* Update Changelog, Release 1.6.0

* fix sponsor link

* Bump word-wrap from 1.2.3 to 1.2.4

Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update FUNDING.yml

* Scheduled sync of lammps_vscode with Lammps documentation 2023-08-01

* 1.6.1

* Update README.md

Updated the "Last Update" Badge to account for the fact, that Releases are no longer created on Github, but directly published to the VS Marketplace.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: thfriedrich <thfriedrich@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Thomas Friedrich <thomas.friedrich@uantwerpen.be>
@Fratorhe
Copy link

Hi,
Same happens when trying to run a task.
If the task requires data and it is located in the same folder, VSCode looks at the scope relative to the workspace and gives error when trying to run the task.
Any suggestions on this?
Thanks a lot!

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

No branches or pull requests

3 participants