Giter Club home page Giter Club logo

Comments (6)

LutzWestermann avatar LutzWestermann commented on May 31, 2024 1

If I understood correctly, a possible solution for this would be to create a dummy project in GAMS Studio that is always open and then any file I opened would be associated with this dummy project. Is that correct? I already changed the setting in GAMS Studio to "Open file in current project by default".

Yes, that is correct.

from studio.

LutzWestermann avatar LutzWestermann commented on May 31, 2024

Maybe GAMS Studio is scanning and indexing all GAMS files when it opens for the first time?

Not sure, if I got this right, but GAMS is not scanning your system for compatible files. It only cares about files it "knows", which means that they belong to one of the open projects (aka. they can be seen in the Project Explorer). Are the files you are concerned about here part of one of your projects?

from studio.

pfra001 avatar pfra001 commented on May 31, 2024

Thanks for the reply and sorry that the description was unclear (I will admit I am not sure too if I got this right...).

I will say that I rarely define projects explicitly when using GAMS Studio. I typically create a .gms file directly and start editing it. Or I open a .gdx output in a folder to examine it. So maybe previous versions of GAMS Studio that I was using were creating the projects implicitly and the new version was now going through all of them (and for some reason triggering Box Drive to sync the gdx files).

A possibly related issue: after finally being able to open GAMS Studio, I noticed that it created .gsp files in many different folders in our team's shared Box Drive folder. Apparently, if I have ever opened a .gms/.gdx file in some directory, GAMS Studio now created a .gsp file there. This is a behavior previous versions did not have.

from studio.

LutzWestermann avatar LutzWestermann commented on May 31, 2024

Whenever you open a file, Studio creates a project for that on the fly (or adds it to an existing project, if you defined it like that in the settings). And when you close a tab in the main Window, the project is still "alive" with the file(s) belonging to the project. If you really want to remove a file and/or project, you need to do it from the context menu of the Project Explorer. You could also do that for many projects at once by marking them first:

grafik

A possibly related issue: after finally being able to open GAMS Studio, I noticed that it created .gsp files in many different folders in our team's shared Box Drive folder. Apparently, if I have ever opened a .gms/.gdx file in some directory, GAMS Studio now created a .gsp file there. This is a behavior previous versions did not have.

Studio does that not for every file ever opened, but for every project still open in Studio / in the Project Explorer. This is new with Studio 1.13 (GAMS 42). So could it be, that you actually have many projects open, maybe unnoticed, since you usually do not have the Project Explorer visible? If that is the case, you can "fix" this behavior by closing the unwanted project from the context menu of the Project Explorer.

from studio.

pfra001 avatar pfra001 commented on May 31, 2024

Thanks a lot! This makes a lot of sense.

The opened projects was exactly the issue. The new GAMS studio probably got the list of opened projects from previous versions and then started this whole process.

I never opened the Project Explorer pane before... I will make sure to pay more attention to it moving forward.

It is not always that we view a gms/gdx file in the context of a project in GAMS Studio (in my case, I would say never). A frequent use case here would be to navigate to a colleague's folder and open a gdx or gms file to look at results or code. We may not want to open the whole GAMS project (maybe it does not even exist). So, we would not like that, every time we do this, GAMS Studio creates a new gsp file in the current folder.

If I understood correctly, a possible solution for this would be to create a dummy project in GAMS Studio that is always open and then any file I opened would be associated with this dummy project. Is that correct? I already changed the setting in GAMS Studio to "Open file in current project by default".

from studio.

LutzWestermann avatar LutzWestermann commented on May 31, 2024

I think, this can actually be closed now. If you disagree, please reopen.

from studio.

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.