-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[theiaext] Suspicious PATH concatenation in theiaext #3738
Comments
kittaakos
added
question
user / developer questions
quality
issues related to code and application quality
labels
Dec 5, 2018
Maybe it is a leftover before we switched from |
kittaakos
pushed a commit
that referenced
this issue
Dec 5, 2018
- Removed the flawed `PATH` entry concatenation. It is unused. - Fixed the linter errors. - Logged the `err` object with the stack trace if possible. Signed-off-by: Akos Kitta <kittaakos@typefox.io>
kittaakos
pushed a commit
that referenced
this issue
Dec 5, 2018
Closes: #3738. Signed-off-by: Akos Kitta <kittaakos@typefox.io>
kittaakos
pushed a commit
that referenced
this issue
Dec 5, 2018
- Removed the flawed `PATH` entry concatenation. It is unused. - Use a shallow copy of the `env`. - Fixed the linter errors. - Logged the `err` object with the stack trace if possible. Signed-off-by: Akos Kitta <kittaakos@typefox.io>
kittaakos
pushed a commit
that referenced
this issue
Dec 6, 2018
- Removed the flawed `PATH` entry concatenation. It is unused. - Use a shallow copy of the `env`. - Fixed the linter errors. - Logged the `err` object with the stack trace if possible. Signed-off-by: Akos Kitta <kittaakos@typefox.io>
Closed via #3741. |
bogthe
pushed a commit
to ARMmbed/theia
that referenced
this issue
Jan 21, 2019
- Removed the flawed `PATH` entry concatenation. It is unused. - Use a shallow copy of the `env`. - Fixed the linter errors. - Logged the `err` object with the stack trace if possible. Signed-off-by: Akos Kitta <kittaakos@typefox.io> Signed-off-by: Bogdan Stolojan <petre.stolojan@arm.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First off, I do not think the current logic can work on Windows.
https://github.com/theia-ide/theia/blob/14078b4e3c1e783ea938c641fb5694ca6c60ec11/dev-packages/ext-scripts/theiaext#L40
The delimiter is
;
instead of:
on Windows. We should usepath.delimiter
instead.Secondly, the additional path (on macOS) does not seem good either:
/Users/akos.kitta/git/theia/packages/core/../../node_modules/.bin
We should normalize it.Finally, we have to escape the path. Otherwise, it will not work with whitespaces.
Any thoughts on this, @akosyakov? If we do not use this additional PATH entry, maybe we can remove it. I can make the required changes if this is accepted as a bug.
The text was updated successfully, but these errors were encountered: