Coder Social home page Coder Social logo

Comments (8)

JesusFreke avatar JesusFreke commented on May 13, 2024

Hmmm. I'm not really sure. Maybe something to do with the windows user having restricted permissions or something?

Does that path that's it's giving a permission denied on actually exist on your machine?

from fusionidea.

d-marquina avatar d-marquina commented on May 13, 2024

I also initially thought about permissions, and tried to change them, but to no avail, that folder says "Read only".
That path does exist, I also checked it. I even reinstalled PyCharm to a new location, but nothing happens.

from fusionidea.

JesusFreke avatar JesusFreke commented on May 13, 2024

I just tried it with the same version of pycharm, and it's working fine for me. I'm also on the same version of windows, and fusion.

from fusionidea.

spiralfuzet avatar spiralfuzet commented on May 13, 2024

Hi, I had the same issue, and debuged the add-in and the plugin to get to this conclusion:
When you start the IDE, the "Run/Debug in Fusion 360" is disabled:
image

To enable the "Run in Fusion 360" option you should run it first with any configuration. It will fail, but the "Run in Fusion 360" option will be available after that.

The problem is that it seems if you have run configuration set up, you had to fill it out properly even if you don't run that but you run.
image
You have to provide "script" in the configuration, otherwise the plugin will send the "jbr/bin" folder as script, which is not a file but a folder hence "Permission Denied" error is generated.

Set it up, to point your script file, and it will work.

from fusionidea.

JesusFreke avatar JesusFreke commented on May 13, 2024

Interesting, thanks for digging into it. Were you using PyCharm as well? I'll see if I can reproduce and hopefully fix/improve this.

from fusionidea.

spiralfuzet avatar spiralfuzet commented on May 13, 2024

Yes:

PyCharm 2022.3.2 (Community Edition)
Build #PC-223.8617.48, built on January 24, 2023
Runtime version: 17.0.5+1-b653.25 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 750M
Cores: 20
Non-Bundled Plugins:
    org.jf.fusionIdea (0.6.5)

from fusionidea.

d-marquina avatar d-marquina commented on May 13, 2024

I confirm my problem was solved following your advice, thank you very much.

from fusionidea.

JesusFreke avatar JesusFreke commented on May 13, 2024

I'm not able to reproduce the problem here. When I follow the steps at https://github.com/JesusFreke/fusionIdea/wiki/Getting-started-with-PyCharm-(Windows), the "Run in Fusion 360" and "Debug in Fusion 360" options in the editor context menu and in the run menu are enabled and work fine.

The only thing I can think of is that the plugin checks for either an adsk.core or adsk.fusion import, and the presence of a top level run() function, and doesn't show/enable the "Run/Debug in Fusion 360" options for that file if it doesn't find them.

from fusionidea.

Related Issues (20)

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.