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

Selection Expand does not work with unsaved files #20

Open
jpgrosen opened this issue May 30, 2023 · 0 comments
Open

Selection Expand does not work with unsaved files #20

jpgrosen opened this issue May 30, 2023 · 0 comments

Comments

@jpgrosen
Copy link

Open Nova, Create a new File, Invoke Selection Expand shows the following in Extension Console

Text Tools[8:26:12.636000] Extension encountered an uncaught exception:
/Users/jp/Library/Application Support/Nova/Extensions/biati.texttools/Scripts/main.dist.js (Line 1.295, Column 38)
Error: Path argument must be a string
    @[native code]
    getExtension@file:///Users/jp/Library/Application%20Support/Nova/Extensions/biati.texttools/Scripts/main.dist.js:1295:38
    expand@file:///Users/jp/Library/Application%20Support/Nova/Extensions/biati.texttools/Scripts/main.dist.js:1309:38
    @file:///Users/jp/Library/Application%20Support/Nova/Extensions/biati.texttools/Scripts/main.dist.js:3891:20

Error comes from this

class SelectionExpander {
  getExtension(editor) {
    let filePath = editor.document.path;
    let extension = nova.path.extname(filePath).substring(1); ## Line 1.295 BOOM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant