Giter Club home page Giter Club logo

Comments (22)

ice1000 avatar ice1000 commented on June 4, 2024

What's your zig version? Where is the zig executable located?

from intellij-zig.

ice1000 avatar ice1000 commented on June 4, 2024

https://github.com/ice1000/intellij-zig/blob/master/src/org/ziglang/project/utils.kt#L44-L45

from intellij-zig.

CDHon avatar CDHon commented on June 4, 2024

What's your zig version? Where is the zig executable located?

zig-windows-x86_64-0.10.0.zip
"C:\Program Files\zig\zig.exe"

I changed it to "C:\Program Files\zig\bin\zig.exe" and typed "C:\Program Files\zig", but it still dose not work.

from intellij-zig.

CDHon avatar CDHon commented on June 4, 2024

I tried "C:/Program Files/zig" and dose not work too.

from intellij-zig.

CDHon avatar CDHon commented on June 4, 2024

By the way, my system is window11, IDE is clion 2021.2.3.

from intellij-zig.

ice1000 avatar ice1000 commented on June 4, 2024

I checked again. The message is generated by

if (!validateZigLib(installPath)) {
// usefulText.isVisible = true
return ValidationInfo(ZigBundle.message("zig.project.invalid-install-path"))
}

which uses the check
// https://github.com/zig-lang/zig/blob/7350181a4a778f9d03186e5123beffdf80f58606/src/main.cpp#L140-L173
fun validateZigLib(libPath: String) = sequenceOf("zig.zig", "index.zig", "std.zig").any { file ->
Files.exists(Paths.get(libPath, "lib", "zig", "std", file))
}

So you need to make sure that directory exists. I'm unsure if Zig has updated the dist format.

from intellij-zig.

ice1000 avatar ice1000 commented on June 4, 2024

The code was changed to https://github.com/ziglang/zig/blob/78f26b970e1c5c288e45d0edd2ab2f229e6fe924/src/introspect.zig#L8-L34

So the plugin also needs to be updated

from intellij-zig.

ice1000 avatar ice1000 commented on June 4, 2024

It's a surprise that Zig has changed their naming convention

from intellij-zig.

ice1000 avatar ice1000 commented on June 4, 2024

可以帮我改改代码吗 谢谢茄子

from intellij-zig.

CDHon avatar CDHon commented on June 4, 2024

可以帮我改改代码吗 谢谢茄子

惭愧,我目前是个云程序员,不太懂编程

from intellij-zig.

ice1000 avatar ice1000 commented on June 4, 2024

@anatol can you help 🥺🙏

from intellij-zig.

anatol avatar anatol commented on June 4, 2024

@CDHon, what version of zig do you use? What version of the plugin do you use?

from intellij-zig.

anatol avatar anatol commented on June 4, 2024

@CDHon I am not familiar with this part of the plugin. Please provide exact steps on how to reproduce the problem.

from intellij-zig.

ice1000 avatar ice1000 commented on June 4, 2024

@CDHon I am not familiar with this part of the plugin. Please provide exact steps on how to reproduce the problem.

You basically reimplement the logic of validating the Zig SDK. It was just checking the existence of some files, but Zig changed the layout of the SDK and the logic of validation is also changed. The job is to adapt the changes.

from intellij-zig.

ivanjaros avatar ivanjaros commented on June 4, 2024

bump
zig version 0.11.0-dev.85+694d8831c
plugin 0.1.1

from intellij-zig.

ivanjaros avatar ivanjaros commented on June 4, 2024

Last release is still from Apr 26, 2019

from intellij-zig.

ice1000 avatar ice1000 commented on June 4, 2024

Last release is still from Apr 26, 2019

I have uploaded an update.

from intellij-zig.

ivanjaros avatar ivanjaros commented on June 4, 2024

you have committed changes but haven't made a release.

from intellij-zig.

ice1000 avatar ice1000 commented on June 4, 2024

you have committed changes but haven't made a release.

It's only accessible to me unless JetBrains has approved it, my dear Commercial Director.
image

from intellij-zig.

ivanjaros avatar ivanjaros commented on June 4, 2024

you have committed changes but haven't made a release.

It's only accessible to me unless JetBrains has approved it, my dear Commercial Director. image

ah, right. i was talking about git repo release in here, so that we could manually install the plugin right away.

from intellij-zig.

ice1000 avatar ice1000 commented on June 4, 2024

you have committed changes but haven't made a release.

It's only accessible to me unless JetBrains has approved it, my dear Commercial Director. image

ah, right. i was talking about git repo release in here, so that we could manually install the plugin right away.

I am unsure but maybe you can download the artifact from Circle CI.
In a few days, you should be able to download it from IntelliJ marketplace.

from intellij-zig.

ice1000 avatar ice1000 commented on June 4, 2024

I think it's probably unnecessary to upload release into two different places :)

from intellij-zig.

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.