You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Extra modules path doesn't work for single files. #259
Configure extra module paths (I've been using Blender modules - /usr/share/blender/2.78/scripts/modules)
Open a single file (no project loaded)
Trigger autocompletion for the external modules
Expected behavior: The external modules should be present in the list.
Actual behavior: Nope. The extraPaths are actually blanked out, so the config value is not used.
The issue is in interpreters-lookup.coffee. The modPaths array is only populated if projects are present.
Currently
applySubstitutions: (paths) ->modPaths= []
log.debug'paths', paths
for p in paths
for project inatom.project.getPaths()
[..., projectName] =project.split(path.sep)
p=p.replace(/\$PROJECT_NAME/i, projectName)
p=p.replace(/\$PROJECT/i, project)
log.debug'sub path', p
ifpnotin modPaths
modPaths.push p
return modPaths
Better
applySubstitutions: (paths) ->modPaths= []
log.debug'paths', paths
for p in paths
for project inatom.project.getPaths()
[..., projectName] =project.split(path.sep)
p=p.replace(/\$PROJECT_NAME/i, projectName)
p=p.replace(/\$PROJECT/i, project)
log.debug'sub path', p
ifpnotin modPaths
modPaths.push p
return modPaths
Activity
fix variable substitution for interpreter path