-
Notifications
You must be signed in to change notification settings - Fork 14
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
No longer working 'ffp no filepaths found' #16
Comments
Hi bencrinkle. Could you send me your Sublime Text build and Windows version too (About: Sublime Text)? Thank you for your feedback. |
And i am curious if it is a problem with FFP. No filepaths found means FFP cannot match the given trigger. Is it possible you changed your syntax, import statements, etc? Could you also post the scope and import declaration you are trying to autocomplete? Thanks again. |
hi sagold it's Windows 10 pro Sublime Text 3083. The syntax is set as JavaScript and i'm trying to do...
|
Hi bencrinkle. I tested your setup on a fresh install and it worked out of the box. I would suggest to remove and install FuzzyFilePath again via package control. If the problem persists, the following points might help:
Let me know if you got some more details. |
@sagold Same problem here. And for the points: {
"AUTO_TRIGGER": true,
"BASE_DIRECTORY": false,
"DEBUG": false,
"DISABLE_AUTOCOMPLETION": false,
"DISABLE_KEYMAP_ACTIONS": false,
"ESCAPE_DOLLAR": "\\$",
"EXCLUDE_FOLDERS": [
"node\\_modules",
"bower\\_components/.*/bower\\_components"
],
"FFP_SETTINGS_FILE": "FuzzyFilePath.sublime-settings",
"INSERT_ACTION": [
"commit_completion",
"insert_best_completion"
],
"LOG": false,
"POST_INSERT_MOVE_CHARACTERS": "^[\"'\\);]*",
"PROJECT_DIRECTORY": "",
"TRIGGER": [{
"auto": true,
"base_directory": false,
"extensions": ["js"],
"prefix": ["require", "define"],
"relative": true,
"replace_on_insert": [["\\.js$", ""], ["([^.])\\/index$", "\\1"] ],
"scope": "source\\.js.*string"
}, {
"auto": true,
"base_directory": true,
"extensions": ["png", "gif", "jpg", "jpeg"],
"prefix": ["src"],
"relative": true,
"scope": "source\\.js.*string"
}, {
"auto": true,
"extensions": ["js"],
"prefix": ["from"],
"relative": true,
"scope": "source\\.js"
}, {
"auto": true,
"base_directory": true,
"extensions": ["js", "png", "gif", "jpeg", "jpg", "svg"],
"prefix": ["src", "url"],
"relative": true,
"scope": "meta.tag.*string.*\\.html"
}, {
"auto": true,
"extensions": ["css"],
"prefix": ["href"],
"relative": true,
"scope": "meta\\.tag.*string.*\\.html",
"tagName": ["link"]
}, {
"auto": true,
"base_directory": true,
"extensions": ["png", "gif", "jpeg", "jpg", "woff", "ttf", "svg", "otf"],
"prefix": ["url"],
"relative": true,
"scope": "meta\\.property.*\\.css"
}, {
"auto": true,
"extensions": ["css", "scss", "less"],
"prefix": ["import"],
"relative": true,
"replace_on_insert": [["\\.(scss|less)$", ""] ],
"scope": ".*\\.(css|sass|less)"
}, {
"auto": false,
"extensions": ["js", "html", "css", "scss", "less", "png", "gif", "jpeg", "jpg", "svg"],
"relative": true,
"scope": "source"
}],
"TRIGGER_ACTION": ["auto_complete", "insert_path"],
"TRIGGER_STATEMENTS": ["prefix", "tagName", "style"]
}
When trying to type path in |
Strange. Even with the latest changes, FFP runs fine on my virtual-box/win10/ie11 install with the latest Sublime Text (portable) version. I will look into it. Your project settings might help. In the meantime you could add "debug": true,
"log": true, to your FFP-User-Settings and check the console for any hints. |
@sagold Well, I think I find out what's going on there. It works fine with the Well, in
However, when in
Hopefully that would help. |
@sagold I'm not working within a defined sublime project just an open folder which is how i've always done it. log just says... FFP | => no valid files found for needle: a |
@sagold Well, it turns out the scope of
I think that's why it does not complete the path there. It applied this scope here:
Also, |
Hi. We have to different problems here. @bencrinkle Did you set debug to true? This should output the number of cached files. It may be that no files are indexed and thus no completions can be found. I would like to solve this issue, but as long as i cannot reproduce it locally i need some more information. I am also considering to add some more debugging helpers for this case. @zmLGBBM the regex should match. Nevertheless i will try it out locally. Could you post a simple code example for using "src" in javascript? Thank you for your help. |
@sagold I've noticed in the settings file, you've provided:
to match the given scope (at least on my machine it says this)
I don't think that would match. Yeah, sure, a sample <head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title></title>
<!-- compiled css output -->
<link href="css/ionic.app.css" rel="stylesheet">
<!-- ionic/angularjs js -->
<script src="lib/ionic/js/ionic.bundle.js"></script>
<!-- cordova script (this will be a 404 during development) -->
<script src="lib/ngCordova/dist/ng-cordova.js"></script>
<script src="cordova.js"></script>
<!-- your app's js -->
<script src="js/app.js"></script>
<script src="js/app.all.js"></script>
</head> |
@sagold just had a look at the console again and I'm getting a filenotfound error
can i manually exclude the coverage folder? how do i clear the cache? |
@sagold don't worry...i read the manual :D added coverage to the excluded folders array and it now works as before! not sure what's causing the issue? maybe the path is too long? |
@bencrinkle Thank you for sharing the insights and offering your workaround |
@zmLGBBM I opened a specific issue for the script import here #20 |
myself and a few other colleagues who have been using this package for a while have all recently noticed that it no longer works? It seems to be running but always fails with a 'no filepaths found' error bottom left. All using sublime text 3 on Windows.
The text was updated successfully, but these errors were encountered: