Giter Club home page Giter Club logo

Comments (15)

laughedelic avatar laughedelic commented on May 28, 2024

Hi @rcavalcanti.
I'm using Sublime3 and it works for me.. Try it also from the command palette: Preferences: LoadFileToRepl Settings.
Which OS are you using and what's in the console (`ctrl+``) output?

from loadfiletorepl.

ericbenwa avatar ericbenwa commented on May 28, 2024

@laughedelic When I try Preferences: LoadFileToRepl Settings from the command palette, the palette window closes and nothing happens. On OSX 10.9.

from loadfiletorepl.

laughedelic avatar laughedelic commented on May 28, 2024

ok, can you tell me if there is something in the console output? open the console with ctrl-``, then try this Preferences: LoadFileToRepl Settings` command again and show me what appears in the console.

from loadfiletorepl.

ericbenwa avatar ericbenwa commented on May 28, 2024

This is what I see.

Traceback (most recent call last): File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 509, in run_ return self.run() File "LoadFileToRepl in /Users/myname/Library/Application Support/Sublime Text 3/Installed Packages/Load file to REPL.sublime-package", line 47, in run File "/Applications/Sublime Text.app/Contents/MacOS/sublime.py", line 126, in load_resource raise IOError("resource not found") OSError: resource not found

from loadfiletorepl.

laughedelic avatar laughedelic commented on May 28, 2024

Thanks @ericbenwa! I've discovered what was the problem and fixed it. Try to update the plugin and reopen the issue if it still doesn't work.

from loadfiletorepl.

octonato avatar octonato commented on May 28, 2024

I can now open the User Settings files and save it.
But the settings still don't work. For instance, I set "split" : "vertically", but it's still horizontally.

Moreover, keybindings are lost after adding a user defined settings file. I can't send the file to the REPL using alt+enter anymore. I have to do it via menu.

from loadfiletorepl.

ericbenwa avatar ericbenwa commented on May 28, 2024

I'm now able to open the preferences but I think I'm having the same issue as @rcavalcanti. Unable to use alt+enter.

from loadfiletorepl.

laughedelic avatar laughedelic commented on May 28, 2024

@rcavalcanti @ericbenwa thanks for the feedback. I'll take a look once I have time.
I can't reproduce it, but I have an idea why the keybinding may not work. However about not working changes in preferences — I don't know. So if you notice any useful messages in the console or something else, please write me.

from loadfiletorepl.

ericbenwa avatar ericbenwa commented on May 28, 2024

Thanks!
Will do.

from loadfiletorepl.

octonato avatar octonato commented on May 28, 2024

@laughedelic my preferences seems to work now. I don't know how. I think it was a bad manipulation I did.

The keybinding is indeed not working once I edit the preferences for the first time.
I notice this property:
"use_load_file_to_repl_keybindings" : true

Maybe something related to that? Looks like this value is not being read and it defaults to false.

from loadfiletorepl.

octonato avatar octonato commented on May 28, 2024

Hi guys,

It works if you do the follow:

On the settings file, set keybinding to false.
"use_load_file_to_repl_keybindings" : false

On the keybinding file add the following:

[
    { "keys": ["alt+enter"],       "command": "load_file_to_repl",
      "context":
        [ {"key": "panel_has_focus", "operand": false} ]
    },

    { "keys": ["alt+shift+enter"], "command": "load_file_to_repl",
      "args": {
        "clear": true,
        "save_focus": false
      },
      "context":
        [ {"key": "panel_has_focus", "operand": false} ]
    }
]

from loadfiletorepl.

ericbenwa avatar ericbenwa commented on May 28, 2024

Thanks @rcavalcanti ... that fix for the keyboard shortcut works for me too.

from loadfiletorepl.

laughedelic avatar laughedelic commented on May 28, 2024

Thanks for the pointer. I've pushed a fix (hopefully). So in some time an update will appear in package control. Please, try it (don't forget to change the use_load_file_to_repl_keybindings back to true) and tell me if it work.
Regarding not working settings, I think, it could just start working after reloading Sublime Text or something like that.

from loadfiletorepl.

octonato avatar octonato commented on May 28, 2024

@laughedelic Just installed the latest version and it is working as expected.

Thanks!

from loadfiletorepl.

laughedelic avatar laughedelic commented on May 28, 2024

Great! ")

from loadfiletorepl.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.