-
Notifications
You must be signed in to change notification settings - Fork 13
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
node/no-missing-require errors with relative paths #14
Comments
I'm seeing this error too. Notice the repeated |
I've modified linter.py def communicate(self, cmd, code=None):
"""Run an external executable using stdin to pass code and return its output."""
if '__RELATIVE_TO_FOLDER__' in cmd:
relfilename = self.filename
window = self.view.window()
print("relfilename 1", relfilename) # DEBUG MESSAGE HERE
# can't get active folder, it will work only if there is one folder in project
if int(sublime.version()) >= 3080 and len(window.folders()) < 2:
vars = window.extract_variables()
if 'folder' in vars:
relfilename = os.path.relpath(self.filename, vars['folder'])
print("relfilename 2", relfilename) # DEBUG MESSAGE HERE
cmd[cmd.index('__RELATIVE_TO_FOLDER__')] = relfilename
print("relfilename 3", relfilename) # DEBUG MESSAGE HERE
elif not code:
cmd.append(self.filename) then in project with only one folder I got output:
I don't know python, so can't create PR with fix 😢 UPD: Node v9.4.0 OS: Ubuntu 17.10 |
Running
eslint_d
in terminal output nothing (no errors)but in sublime its reports about missing files
P.S. "missing" files exist and
eslint
dont report any errorsThe text was updated successfully, but these errors were encountered: