GithubHelp home page GithubHelp logo

Comments (12)

tjarvstrand avatar tjarvstrand commented on June 25, 2024

Thanks for the report. I'm aware of the issue, and it's very annoying indeed. It's due to the fact that eproject contains a definition for a basic git-project which will be preferred over edts if it is further up in the file tree. I have been thinking about how to solve this for a while but I haven't yet found a satisfying solution that can either be incorporated into edts without forking eproject or that will be accepted into upstream eproject :( Any ideas would be very welcome.

from edts.

tjarvstrand avatar tjarvstrand commented on June 25, 2024

Actually I think I might have an acceptable solution for this. Will look into it when I get back from vacation.

from edts.

altrg avatar altrg commented on June 25, 2024

Awesome! Great work, Thomas!

from edts.

tjarvstrand avatar tjarvstrand commented on June 25, 2024

I believe this should now be fixed. The fix is slightly hackish but seems to work :)

Please re-open this issue if your problems persist.

from edts.

bboozzoo avatar bboozzoo commented on June 25, 2024

Did you forget to push? :) I don't see the fix in current master

from edts.

tjarvstrand avatar tjarvstrand commented on June 25, 2024

Yup it's right there. The relevant code is in edts-setup and edts-project-selector.

There's even an integration test called edts-project-selector-test.

Are you experiencing problems with it?

from edts.

bboozzoo avatar bboozzoo commented on June 25, 2024

Reverting 5dcb9ab fixes things for me and project is properly picked up as edts, otherwise it's incorrectly identified as generic-git. Funny that eproject-project-type has overridden values, and (eproject--all-types) returns:(edts-temp edts-otp edts generic).
Value of eproject-attributes-alist:
(("/home/mborzecki/work/test.project/" :type generic-git :name "test.project" :irrelevant-files ("^[.]" "^[#]" ".git/") :relevant-files (".*") :irrelevant-files ("^[.]" "^[#]") :file-name-map ...))

Seems like eproject hooks are run before erlang-mode hooks.

Emacs version: GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.8.2) of 2013-08-14 on buildvm-15.phx2.fedoraproject.org

from edts.

tjarvstrand avatar tjarvstrand commented on June 25, 2024

Will try to look into this tonight.

from edts.

tjarvstrand avatar tjarvstrand commented on June 25, 2024

@bboozzoo
Could you try with the branch advice-to-limit-project-types and see if that works for you?

from edts.

bboozzoo avatar bboozzoo commented on June 25, 2024

I think that fed315f is bad. All projects will be classified as edts-temp as it appears as a last entry and all project definitions have same list of relevant files.

There's something weird going on. If project directory has dots (ex. some.test.project) then .edts is not loaded, project is incorrectly classified as generic-git and erlang node cannot be started. Removing the dots, the problem disappears.

from edts.

tjarvstrand avatar tjarvstrand commented on June 25, 2024

If that commit is in your history you're on the wrong branch :)

from edts.

bboozzoo avatar bboozzoo commented on June 25, 2024

Thomas Järvstrand writes:

You're on the wrong branch :)
True. It works now. Project type is correct, .edts was picked up, node
name is correct and node is up and running.

Thanks!

Maciek Borzęcki

from edts.

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.